Hi,
Reading on how WL7 can drive an API into TWS for trades at IBKR.
Do these trades includes buying to open and selling to close of options?
Is the $49.99 a one time fee?
It seems using TWS API requires a $0 balance account at IBKR.
Whereas REST API requires a minimum balance.
Was this the reason for the choice of TWS API?
Thanks
Reading on how WL7 can drive an API into TWS for trades at IBKR.
Do these trades includes buying to open and selling to close of options?
Is the $49.99 a one time fee?
It seems using TWS API requires a $0 balance account at IBKR.
Whereas REST API requires a minimum balance.
Was this the reason for the choice of TWS API?
Thanks
Rename
Hi,
All Extension purchases are one time (i.e. not subscription-based).
QUOTE:
Is the $49.99 a one time fee?
All Extension purchases are one time (i.e. not subscription-based).
QUOTE:Yes. Follow the instructions to enter the contract symbol and properties the first time you refer to a futures or option contract symbol. The way I do it to make sure I'm hitting the right contract is enter the extended data to request a chart, e.g., CSCO210618C47;OPT;USD;SMART
Do these trades includes buying to open and selling to close of options?
Once you've verified the contract, you can use just the symbol part, e.g., CSCO210618C47, for future chart requests or orders.
Re: REST API
Interesting. I wasn't even aware that it existed until now. Since you can use the current adapter with the IB Gateway too, I don't see any striking advantages yet, but when we run out of things to do...
Try to get historical option date of CSCO210618C47 from IB and get error
"4/23/2021 16:30:10:803" "Interactive Brokers" "Error getting History (CSCO210618C47): Object reference not set to an instance of an object." "Object reference not set to an instance of an object."
at (Object )
at
.
(Object ,
)
at WealthLab.InteractiveBrokers.IBDataProvider.
(String , HistoryScale , DateTime , DateTime , Int32 , Boolean , Contract , MarketDetails )
at WealthLab.InteractiveBrokers.IBDataProvider.RequestHistory(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars, Boolean includePartialBar)
at WealthLab.InteractiveBrokers.IBDataProvider.GetHistoryInternal(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars)
at WealthLab.Data.DataProviderBase.GetHistory(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars, GetHistoryControlBlock cb)
at ProcCollection.ValidateHelper(Object , String , HistoryScale , DateTime , DateTime , Int32 , GetHistoryControlBlock , ProcCollection )
at WealthLab.Data.HistoricalDataValet.ResetDic(String reference, HistoryScale col, DateTime field, DateTime setup2, Int32 token3_counter, IHistoryProvider reg4, GetHistoryControlBlock ord5)
"4/23/2021 16:30:10:803" "Interactive Brokers" "Error getting History (CSCO210618C47): Object reference not set to an instance of an object." "Object reference not set to an instance of an object."
at (Object )
at
.
(Object ,
)
at WealthLab.InteractiveBrokers.IBDataProvider.
(String , HistoryScale , DateTime , DateTime , Int32 , Boolean , Contract , MarketDetails )
at WealthLab.InteractiveBrokers.IBDataProvider.RequestHistory(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars, Boolean includePartialBar)
at WealthLab.InteractiveBrokers.IBDataProvider.GetHistoryInternal(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars)
at WealthLab.Data.DataProviderBase.GetHistory(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars, GetHistoryControlBlock cb)
at ProcCollection.ValidateHelper(Object , String , HistoryScale , DateTime , DateTime , Int32 , GetHistoryControlBlock , ProcCollection )
at WealthLab.Data.HistoricalDataValet.ResetDic(String reference, HistoryScale col, DateTime field, DateTime setup2, Int32 token3_counter, IHistoryProvider reg4, GetHistoryControlBlock ord5)
I can't duplicate that, but make sure:
1. You're entitled to the data. If you can see it in TWS, you can get it in WL7 too.
2. the first time you enter an option symbol, define the contract like this: CSCO210618C47;OPT;USD;SMART
I already had the 47 defined, but here's what I get by entering CSCO210618C45 first:
But then entering CSCO210618C45;OPT;USD;SMART
And, thereafter you can now just enter CSCO210618C45:
Let us know if you're still having trouble.
1. You're entitled to the data. If you can see it in TWS, you can get it in WL7 too.
2. the first time you enter an option symbol, define the contract like this: CSCO210618C47;OPT;USD;SMART
I already had the 47 defined, but here's what I get by entering CSCO210618C45 first:
CODE:
--------------------------- Wealth-Lab 7 --------------------------- Could not obtain historical data for symbol: CSCO210618C45 --------------------------- OK ---------------------------
But then entering CSCO210618C45;OPT;USD;SMART
And, thereafter you can now just enter CSCO210618C45:
Let us know if you're still having trouble.
Strangely, I'm having trouble getting the Daily bars. Looking into that! Try with intraday scales for now - and remember it takes a LONG time for IB to return 1-minute data via the API, so be patient with those requests. I'd recommend 30-minute bars to get started.
Edit:
Tools > Log Viewer has part of the answer (always a good idea to check that for data errors) -
IBConnection
162: Historical Market Data Service error message:No data of type EODChart is available for the exchange 'BEST' and the security type 'Option' and '5 y' and '1 day'
It turns out that IB doesn't provide Daily bars for Options - try it in TWS - the "Daily" intervals are not available for option charts.
Edit:
Tools > Log Viewer has part of the answer (always a good idea to check that for data errors) -
IBConnection
162: Historical Market Data Service error message:No data of type EODChart is available for the exchange 'BEST' and the security type 'Option' and '5 y' and '1 day'
It turns out that IB doesn't provide Daily bars for Options - try it in TWS - the "Daily" intervals are not available for option charts.
In the next Build of the IB Broker Provider, we'll avoid the Daily bar request for options and quickly return this message to the Log Viewer:
--------
4/24/2021 06:12:56:242
Interactive Brokers
CSCO 210618C00045000: Daily bars are not available for Option contracts
--------
--------
4/24/2021 06:12:56:242
Interactive Brokers
CSCO 210618C00045000: Daily bars are not available for Option contracts
--------
Your Response
Post
Edit Post
Login is required