Locked
No documentation for new manualCancelOrderTime in cancelOrder?
I saw this has been added, but did not see documentation for it (in client.py):
def cancelOrder ( self , orderId : OrderId , manualCancelOrderTime : str ):
"""Call this function to cancel an
By
Joel Gross <joelrgross@...>
·
#49816
·
|
Re: TypeError: TestApp.error() takes 4 positional arguments but 5 were given
Well, if your code was written against a version 9 API, you might want to stay with the stable API? 9.81 track for now. You can still run your code against all (even the latest and beta) TWS and IBGW
By
J¨¹rgen Reinold
·
#49815
·
|
Re: TypeError: TestApp.error() takes 4 positional arguments but 5 were given
Wow, thanks guys! Tons of major changes it looks like.
I have not been developing much... is it worth it to upgrade or should I switch from Latest to Stable?
By
Joel Gross <joelrgross@...>
·
#49814
·
|
Re: TypeError: TestApp.error() takes 4 positional arguments but 5 were given
Nope. The advancedOrderRejectJson field was introduced in API version 10.14.01 in January 2022 and went through beta and is, obviously, in the current "latest" version 10.17.01.
Version 10 has many
By
J¨¹rgen Reinold
·
#49813
·
|
Re: TypeError: TestApp.error() takes 4 positional arguments but 5 were given
On Thu, Aug 11, 2022 at 06:28 PM, Joel Gross wrote:
My guess is you are using a new api version where error takes an extra param (advancedOrderRejectJson)
Either change back to an older api version or
By
btw
·
#49812
·
|
Re: TypeError: TestApp.error() takes 4 positional arguments but 5 were given
I came across this the other day. I believe that IB has been making major changes to the API (in minor patch releases).
Look for your definition of error(). It now takes 5 arguments and not 4.
So
By
@sbank
·
#49811
·
|
TypeError: TestApp.error() takes 4 positional arguments but 5 were given
I have been running TWS API with Python for years without many issues. Suddenly my code that worked yesterday is no longer working. Any file I run, I get an error like this:
Traceback (most recent
By
Joel Gross <joelrgross@...>
·
#49810
·
|
Re: Tick-by-tick data is coming in bursts
Please keep in mind that time stamps in TickByTick callbacks have a resolution of 1 second. Therefore, liquid instruments can have many trades per second, each trade would be reported as a separate
By
J¨¹rgen Reinold
·
#49809
·
|
Tick-by-tick data is coming in bursts
Hi everyone,
I've recently started messing around with the Java API, specifically the 'reqTickByTickData' method. But I noticed some unexpected behavior and would like to know why this is and if
By
3ryancarty@...
·
#49808
·
|
Re: Timestamp is missing milliseconds in tickByTickAllLast
It does take a bit of time for the server to take a snapshot of the time to the closest millisecond, compose the message, send it down the pipe to your computer. By the time is does all of this, time
By
Ray Goudie
·
#49807
·
|
Re: Timestamp is missing milliseconds in tickByTickAllLast
I'm comparing the ms timestamp that IB sends in RT_TRD_VOLUME (presumably exchange time) to the time my computer receives that message from the API.? IB's timestamp is always earlier than my
By
Millie Joyner
·
#49806
·
|
Re: Invalid value in field # 541
Thank you for the response.? Interesting thing this morning.? I opened TWS and ran my program and no error this morning.? Not sure what happened, but I haven't changed anything.
--
Thanks,
Tom
By
tlr4vdr@...
·
#49805
·
|
Re: Timestamp is missing milliseconds in tickByTickAllLast
Thank you, Millie!
Time drift is something interesting. Just to make sure that I understand, when you said "1 second behind", do you mean behind exchange time?
By
GreenGreen
·
#49804
·
|
Re: How to check connection to TWS?
The specific issue in your code below is that nextValidID() is a function called by EWrapper with the next valid orderId as a parameter ¨C it is not a variable that holds the orderId, and it is not a
By
David Walker
·
#49803
·
|
Re: Invalid value in field # 541
TWS talks with IBKR with the Financial Information Exchange protocol (FIX). Field #541 in that protocol is defined as "MaturityDate" and needs to have the format "yyyymmdd".
Any chance you are
By
J¨¹rgen Reinold
·
#49802
·
|
Re: How do I place a trailing order just like in TWS app?
That is all described in the API Reference documentation in the Orders ( https://interactivebrokers.github.io/tws-api/orders.html ) section.
You should specifically re-read the sections:
* Available
By
J¨¹rgen Reinold
·
#49801
·
|
How do I place a trailing order just like in TWS app?
Hi. I know this is a newbie question but I could not find any function that places trailing order in the API document nor searching this group messages.
Can someone please enlighten me how I can
By
@tpl
·
#49800
·
|
Re: How do I run my code on while closing TWS application?
Hello,
Tws is the most common interface to IB, and most people will use it or the
gateway (no UI version) for connecting. You'll need something running to
connect to IB from. As for jupyter I expect
By
mark collins
·
#49799
·
|
Re: Software version upgrade, recommendations?
Thanks J¨¹rgen! After hunting high and low, was able to find 981.3g on Ninjatrader's website. In case anyone else needs it, here is the
By
Kcking
·
#49798
·
|
Re: Software version upgrade, recommendations?
While we use the direct links for automated downloads of TWS and IBGW installers, we check this site for the current official version numbers for the "stable", "latest", and "beta" tracks:
*
By
J¨¹rgen Reinold
·
#49797
·
|