Search found 92 matches

by sectorbets
Wed Aug 07, 2019 2:35 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Uptick rule
Replies: 0
Views: 284

Uptick rule

Is there any way to query IB to see if a stock is trading under the uptick rule?

Thank you
Rick
by sectorbets
Wed Mar 27, 2019 8:20 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Failure on production machine
Replies: 9
Views: 1133

Re: Failure on production machine

The problem appears to be fixed -- we had a successful trade transmitted from TradeStation to IB just before the close --
by sectorbets
Wed Mar 27, 2019 6:23 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Failure on production machine
Replies: 9
Views: 1133

Re: Failure on production machine

It appears that other TradeStation customers are having a similar problem according to IB. They have isolated the problem to users on their Greenwich servers -- our failing system is on those servers. They are not seeing the problem on their other servers, and as it turns out, our other systems are ...
by sectorbets
Wed Mar 27, 2019 5:43 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Failure on production machine
Replies: 9
Views: 1133

Re: Failure on production machine

We will contact IB, of course, but I want to emphasize that the machine that is failing has code that has been locked down for many months, so there are only three possibilities-- the API interface has changed, server 2012 has changed, or your code has changed. I think we can assume your code has no...
by sectorbets
Wed Mar 27, 2019 4:40 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Failure on production machine
Replies: 9
Views: 1133

Re: Failure on production machine

And yet another trade failed in the same manor -- let me remind you that exactly the same code is running on our development machine and it is working correctly. The production code has been running for months with no issues, including just yesterday, so we don't know where to look.
by sectorbets
Wed Mar 27, 2019 4:35 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Failure on production machine
Replies: 9
Views: 1133

Re: Failure on production machine

There has been an additional trade (VXXB) and it failed with the same messages about the algo not allowed.
by sectorbets
Wed Mar 27, 2019 4:33 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Failure on production machine
Replies: 9
Views: 1133

Re: Failure on production machine

There has been an additional trade (VXXB) and it failed with the same messages about the algo not allowed.
by sectorbets
Wed Mar 27, 2019 4:14 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Failure on production machine
Replies: 9
Views: 1133

Failure on production machine

We run TWSLink on a production machine that hasn't seen any changes in months as well as on a development machine. Today the production machine failed to make a couple of trades -- here is the log. It basically looks like there is a problem between the API and the IB algo we are using. I want to emp...
by sectorbets
Wed Sep 05, 2018 4:30 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Python 3.6 wrapper issue
Replies: 4
Views: 1183

Re: Python 3.6 wrapper issue

I would like to eventually switch to Python -- everything looks pretty straightforward, but I don't understand how to read in market data -- do you get it from IB or from some other source, and would you be able to show how you do it ??

Thank you
Rick
by sectorbets
Wed Sep 05, 2018 4:04 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Two machines with same code giving different return codes
Replies: 7
Views: 1450

Re: Two machines with same code giving different return codes

Yes everything works fine on Windows 7 & 10 -- just not on Server 2012. It's good to have a workaround like TWS 960. Best I can tell that is the only old release that is available for download, so I suggest everyone do that just in case even newer releases stop working on Windows 7 & 10 at some poin...
by sectorbets
Wed Sep 05, 2018 11:56 am
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Two machines with same code giving different return codes
Replies: 7
Views: 1450

Re: Two machines with same code giving different return codes

We can confirm that there is a problem when using TWSLink with the most recent release of TWS 972.1 when running with Windows server 2012. When we went back to TWS 960 everything runs as it has for the last year or so, so that is what we are doing on that machine. This is likely to be a problem only...
by sectorbets
Fri Aug 31, 2018 9:23 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Two machines with same code giving different return codes
Replies: 7
Views: 1450

Re: Two machines with same code giving different return codes

The problem is certainly with TWS 972.1

I went back to TWS 960, and everything seems to have gone back to normal -- I can't tell for sure of course until Tuesday when the market is open, but I am optimistic
by sectorbets
Fri Aug 31, 2018 5:33 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Two machines with same code giving different return codes
Replies: 7
Views: 1450

Re: Two machines with same code giving different return codes

All the software is running the same versions except for Windows -- it is Windows 7 on the machine that is working correctly and Server 2012 on the other machine. There was an automatic update from IB a couple of days ago and I may roll it back to see if that fixes the problem We have been running f...
by sectorbets
Fri Aug 31, 2018 12:25 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Two machines with same code giving different return codes
Replies: 7
Views: 1450

Two machines with same code giving different return codes

First, I have made zero changes on either machine -- one continues to operate correctly while the second is: 1) Not finding the open positions -- it returns two messages saying that position info is not available yet 2) REGISTER_CONTRACT2 is returning 0 I had hoped that the problem was just a timing...
by sectorbets
Thu May 03, 2018 12:37 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: WAITDLL
Replies: 6
Views: 1543

Re: WAITDLL

I didn't describe the situation well enough. The wait_for_filled works fine, but sometimes IB has not reported back the BP even though it has reported back a fill, so when the next order is placed, there isn't enough BP and the order is rejected. Here is our code: -- it may be complicated since we a...
by sectorbets
Thu May 03, 2018 11:47 am
Forum: Twslink - universal Interactive Brokers API plugin
Topic: WAITDLL
Replies: 6
Views: 1543

Re: WAITDLL

Yes, we want to wait until an order is filled -- we have tried using wait_for_filled with many different times and it works most of the time, but some times it times out even at 20 seconds!! We have also tried get_acc_val to be sure there is enough BP -- this almost always goes into an infinite loop...
by sectorbets
Wed May 02, 2018 8:27 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: WAITDLL
Replies: 6
Views: 1543

Re: WAITDLL

Thank you -- are there any nuances such as the computer still has the proper time and the market data is all there and the DLL will pick up where it left off talking to IB??
by sectorbets
Wed May 02, 2018 7:45 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: WAITDLL
Replies: 6
Views: 1543

WAITDLL

Could you tell me how it works ?? Does everything stop, or does the TradeStation code keep running until it comes to the next DLL function ?? Is this in effect a pause ?? What happens if multiple cores are running??

Thank you
Rick
by sectorbets
Tue Apr 10, 2018 3:57 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Best way to confirm buying power before issuing order??
Replies: 18
Views: 3324

Re: Best way to confirm buying power before issuing order??

We do a two step reversal -- we have been using your WAIT_FOR_FILLED function, but most of the time it reports back "1" before IB reports back the cash available to trade which isn't a problem in a margin account, but we have a few IRA cash accounts and the second step (trade) gets rejected more oft...
by sectorbets
Tue Apr 10, 2018 3:11 pm
Forum: Twslink - universal Interactive Brokers API plugin
Topic: Best way to confirm buying power before issuing order??
Replies: 18
Views: 3324

Re: Best way to confirm buying power before issuing order??

All reversals in cash accounts -- not just shorts -- get rejected if IB hasn't reported back the available cash even though it has reported back that the order was filled. -- I will turn on the IB log to see what I can learn -- thank you.