Re: easiest way to tell if contract is trading today?
contractDetails returned from reqContractDetails has the total hours a contract is trading for the current day. It should say "CLOSED" if it's not trading, unfortunately it's not 100% reliable.
Josh
By
Josh
·
#35629
·
|
Re: reqExecutions not returning any data when used in IBGW
Yes I just meant that the current days executions are available with either IB Gateway or TWS and reqExecutions.
Additionally with TWS the prior weeks executions can be found by choosing "Show trades
By
Josh
·
#35628
·
|
Re: easiest way to tell if contract is trading today?
thanks for the replies. Just thought it would be cleaner if it was available from api instead of maintaining a calendar that needs to be periodically updated. Also, looked at NewContractDetails,
By
andrewdavischan@...
·
#35627
·
|
Re: reqExecutions not returning any data when used in IBGW
Actually, it was easy to test using a python notebook. It does return executions for the current day only.
This is the warning in the new docs, I think this is new as we used to be able to get
By
btw12342001 <no_reply@...>
·
#35626
·
|
Re: reqExecutions not returning any data when used in IBGW
reqExecutions will only return data for days which are checked in the trade log window. Obviously Gateway has no way to set these. I was under the impression that the current day was always checked.
By
btw12342001 <no_reply@...>
·
#35625
·
|
Re: reqExecutions not returning any data when used in IBGW
Realtime execution information is returned in the exec details and order status callbacks.
reqExecutions amounts to a request for historical trade executions. You don't need this at all if you
By
Nick <news1000@...>
·
#35624
·
|
Re: reqExecutions not returning any data when used in IBGW
Hi Josh,
So are you saying IB Gateway doesn't record trade executions at all? I was
going to rely on that feature to process successful BUY and SELL orders.
How else would I retrieve information
By
Matt Wlazlo <mwlazlo@...>
·
#35623
·
|
Re: reqExecutions not returning any data when used in IBGW
Hi Matt,
The API is designed to return executions from the current day using reqExecutions. It does have a peculiar feature whereby if connected to TWS with the trade log open with all days checked
By
Josh
·
#35622
·
|
reqExecutions not returning any data when used in IBGW
Hi,
I have code which returns trade data when connected to TWS, but not with IB
Gateway.
Anyone ever seen this before? I'm thinking it could be a settings problem
but I can't put my finger on
By
Matt Wlazlo <mwlazlo@...>
·
#35621
·
|
Re: easiest way to tell if contract is trading today?
agree w Nick.
Below are useful details:
Gd luck
S
NYSE holidays:
Jan 1, 3rd Mon of Jan (luther-king day), 3rd Mon of Feb (Washiongton b-day), good friday, last Mon of May (memorial day), Jul 4, 1st
By
souqmate@...
·
#35619
·
|
Re: easiest way to tell if contract is trading today?
Info returned in NewContractDetails includes market availability.
?
By
Joseph Higgs
·
#35620
·
|
Re: easiest way to tell if contract is trading today?
If you are talking about cme futures, there aren't many holidays in a year. You can create a list of holidays and have the program check the list. It's low-tech but pretty reliable.
By
Nick <news1000@...>
·
#35618
·
|
easiest way to tell if contract is trading today?
What is the easiest why to tell if a contract's markets are open today?
I'm just beginning to use the API and was think of writing a loop that every day check's to see if the market for a
By
andrewdavischan@...
·
#35617
·
|
Re: Placing Orders via API
Thanks for the response. I just read that section. So it¡¯s just a convenience this feature provides. I was hoping they would price the commission on the ¡°combined group¡± number of shares to get
By
walter stevenson
·
#35616
·
|
Re: Just got notice of new API documentation on GitHub - V 9.72
In regards to the new documentation guide-
I haven't personally seen any problems with the bandwidth on Github. If you would like a hard copy of the documentation guide though I think it would be
By
Josh
·
#35615
·
|
Re: reqExecutions will cancel global pending orders
Yes, reqGlobalCancel seems called in the log, but I didn't invoke the function reqGlobalCancel explicItly in the program. Any setting will enable global cancel?
BR
-Jack
By
jack_tan9@...
·
#35614
·
|
Re: Placing Orders via API
Hi,
Yes it would require a Financial Advisor (FA) account master username. Take a look at the section of the TWS User's Guide dealing with placing orders from FA accounts- It's possible to submit
By
Josh
·
#35613
·
|
Re: Just got notice of new API documentation on GitHub - V 9.72
Is this what you're talking about? http://interactivebrokers.github.io/tws-api/index.html#gsc.tab=0 http://interactivebrokers.github.io/tws-api/index.html#gsc.tab=0
If not, please post link.
By
keithjmiklas@...
·
#35612
·
|
Just got notice of new API documentation on GitHub - V 9.72
But¡..it is not downloadable.
IMHO online documentation really sucks:
1) Sometimes slow to retrieve
2) No way to annotate it with your own notes and comments
By
msimmsx
·
#35611
·
|
Placing Orders via API
Hi,
I have been placing orders via API for a while with no problems. I have been doing it on a particular single account number though. I was wondering if one could place an order, say buy 300 shares
By
walter stevenson
·
#35610
·
|