BitMEX / ninjatrader-bitmex

Releases of the BitMEX <-> NinjaTrader Adapter.
85 stars 25 forks source link

Error when trying to add XBTUSD Perpetuals #1

Open wosheesh opened 6 years ago

wosheesh commented 6 years ago

After successfully connecting to Bitmex feed, I couldn't see BITMEX in the list of instruments. So I tried to add the XBTUSD pair manually. It's listed in the instrument list as a "stock". Upon adding I got Assetion Failed window with the following message:

no instrument selected, probably a futures with invalid rollover/expiries

ibuildit commented 6 years ago

I'm getting it too, also on ETCWEEKLY

screenshot_172

ryanfox commented 6 years ago

@ibuildit The name should be ETCWKLY - no E's.

@wosheesh you shouldn't have to add XBTUSD to anything before you use it in a chart, market analyzer, etc. The first time you may have to type XBTUSD into the entry widget, but after that NinjaTrader should remember it is a valid symbol.

ibuildit commented 6 years ago

This error occurs when you type BITMAX in the field, click the search icon, and the list of contracts appears and then click XBTUSD. The error does not appear if I type in XBTUSD in the field and hit enter.

ryanfox commented 6 years ago

It sounds like your local instrument database might be in a weird state. You can reset that by going to Tools > Database Management > check Remove User Added Instruments and click Update.

d416 commented 6 years ago

What solved this issue for me is to add a default symbol to the XBTUSD definition - seems NT requires this (at least the version I have... NT8 8.0.11.1 64-bit)

Tools > Instruments search for 'XBTUSD' Double-click XBTUSD to edit, then scroll down to Symbol Map > beside 'Simulator' add 'XBTUSD' and click OK.

The symbol should then add without the error.

ryanfox commented 6 years ago

This should be resolved with v1.0.7 of the plugin. You may need to remove any existing BitMEX instruments in the NinjaTrader database, but should not be an issue after that.