Nautilus CFD Subscriber #1438
Replies: 3 comments 3 replies
-
Hey @skalaydzhiyski For Interactive Brokers this should work the same way as for other instrument classes, unless CFD's aren't implemented. Maybe @benjaminsingleton knows more? |
Beta Was this translation helpful? Give feedback.
-
@skalaydzhiyski I haven't experimented with CFD's, so let play around this week, and I'll share my findings. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, you are correct that CFDs are not currently supported in the IB adapter in nautilus-trader. We should update the docs, so CFD is not used as an example here. Here is a simple example script to fetch the NVIDIA CFD contract / instrument, which fails despite the TWS API returning valid data:
The following error is returned:
TWS API returns: ![]() So it looks like a change needs to be made here: https://github.com/nautechsystems/nautilus_trader/blob/master/nautilus_trader/adapters/interactive_brokers/parsing/instruments.py#L128 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I am pretty new to nautilus trader, but I have managed to set it up with interactive brokers with STKs and it works like a charm. Hands down the best back testing platform I have tried + the ability to trade the same strategies live is just great.
Anyway all is good with Stocks and with the examples on the repo, but for Interactive Brokers I mainly need to be able to trade CFD contracts, but there is literally nothing I managed to find online.
Can someone please show me a very tiny working example of a "subscriber" kind of a strategy running live in nautilus_trader where it prints the current price of NVDA for example ?
Have been struggling with this whole day for the last 2 weeks so any help is welcome...
Originally posted by @skalaydzhiyski in #1416
Beta Was this translation helpful? Give feedback.
All reactions