Re: Expiring Limit order
I believe this should work in C# for a start: order.Tif = "GTD"; order.GoodTillDate = "20210228 12:00:00"; Note that this will refer to TWS default timezone. Another timezone can be specified with the
By
ds-avatar
·
#46646
·
|
Excel VBA Code for downloading Interactive Brokers price history and Option Chains
Does anyone have excel VBA code that downloads interactive brokers price history and current option chains?
By
thurman.aerospace@...
·
#46645
·
|
Re: Expiring Limit order
ds-avatar, can you please put an example with order expiring at noon? Thanks a lot!
By
LJ
·
#46644
·
|
Re: Expiring Limit order
Setting order's expiry time using the field GoodTillDate with Tif="GTD" will usually be much less cumbersome and limiting in many ways than attaching the condition. Despite the name, this option
By
ds-avatar
·
#46643
·
|
Expiring Limit order
I'd like to place a limit order that expires in 60 seconds. I'm using the ib-insync Python module. After reading docs, googling and some experiments I figured that this works: order =
By
Alex Gorbachev
·
#46642
·
|
Re: FXCONV support in API?
Hi Josh, Where is supported? in market data streaming or in orders? I don't see any mention of it in API. Is it spelled as fxconv? For virtual positions reporting you mean settings of TWS or settings
By
Bruce B
·
#46641
·
|
Re: Getting full list of Exchange Listings via API.
There are 253 now on IBKR. You can request this from API using *reqMktDepthExchanges().* https://interactivebrokers.github.io/tws-api/market_depth.html#reqmktdepthexchanges - Bruce
By
Bruce B
·
#46640
·
|
What are smart-routing groups?
Hi, From contract details, what is a "smart-routing group"? I see that some bonds and forex have 4, 7, 12, etc...returning as AggGroup and most rest of the market don't have a number attached to them.
By
Bruce B
·
#46639
·
|
Re: Getting full list of Exchange Listings via API.
Unfortunately no there¡¯s nothing like that from the API. The website should be up to date with available exchanges, there are quite a few on there.
By
Josh
·
#46638
·
|
Re: How can I get yesterday's volume at some moment of time for a stock?
You would need to call reqHistoricalData from the equivalent period from the prior day and sum the volume of the returned bars.
By
Josh
·
#46637
·
|
Re: FXCONV support in API?
Yes it¡¯s supported, you just have to set the exchange field that way (instead of ¡®IDEALPRO¡¯). By the the way, you can also turn off the virtual positions reporting through the settings if you
By
Josh
·
#46636
·
|
Re: Excel RTD "DelayedLast"
just as an fyi the PlPrice is the mark price, a calculated theoretical price of an instrument (which is why it¡¯s free), not always exactly equal to the last traded price.
By
Josh
·
#46635
·
|
Re: How place orders before AND after market hours?
The ¡°Outside Rth¡± setting in the API applies to both before and after regular trading hours. You just have to make sure you have the ¡°Pre-Open session¡± flag unchecked in the TWS settings
By
Josh
·
#46634
·
|
Re: question about server support and login best practice
Thank you Richard for pointing that out and huge thanks for maintaining IBC (and all your prior efforts in IBController as I learned).
By
Alex Gorbachev
·
#46633
·
|
Re: question about server support and login best practice
Sorry for the delayed reply.. It worked out of the box for me but it uses an old version of the gateway. I tweaked it to adjust to the latest gateway version but I am currently just using a
By
Alex Gorbachev
·
#46632
·
|
Re: How place orders before AND after market hours?
That isn't working.? Can you elaborate?? Calling outsideRth(true) does not allow me to trade both before and after market hours.? Details above in my first message.? This apparently requires the
By
FreeGoldRush
·
#46631
·
|
Re: How place orders before AND after market hours?
You have to set the parameter rth. Only works for supported markets/products
By
Diego Lages
·
#46630
·
|
Re: How place orders before AND after market hours?
Just wanted to give this one more chance to find some expertise.? Is anyone placing orders through the API both before and after market hours?
By
FreeGoldRush
·
#46629
·
|
Re: "update order" VS "cancel and creating order"
Well, I made the formula up based upon the US portion of the fee table and the examples from the IB fees description page ( https://www.interactivebrokers.com/en/accounts/fees/cancelModifyExamples.php
By
J¨¹rgen Reinold
·
#46628
·
|
Re: "update order" VS "cancel and creating order"
On Wed, Feb 24, 2021 at 12:10 PM, JR wrote Thanks for these facts. Can you provide any IB link to the description of this *formula* ? You say, the above formula is only valid for direct routed orders,
By
tegicof991@...
·
#46627
·
|