Open aries1998 opened 8 years ago
Thanks @aries1998, I understand the new tick type, but what is the new defaultProperty in the Ticker class? Could you attach a code snippet, and I can get it integrated into the library?
thanks, -Rob
defaultProperty is IHistoricalDataProvider.ShowProperty.xxxxx normally we use IHistoricalDataProvider.ShowProperty.TRADES, but for forex , cfd or maybe other types of instruments , we can only use IHistoricalDataProvider.ShowProperty.BID for the data
ah, ok. I'll try to get this integrated this week.
Initial support for a CFDTicker has been added. I've written unit tests, but have not actually tested yet with IB's API in the demo or paper trade account.
1 add cfdTick : cfd is quite popular is ib today 2 add member variable defaultProperty in Ticker : will be more convenient cause some ticker type like cfd can only require bid/ask data , no trades data.
i have made this change of my local pc. Becasue Ticker and ShowProperty are in different package , add dependency of differnt package will make it ugly so i didn't make a pull request. Hope you can tweak it nicely.
And thanks for your great work .