The BitMEX Trading API is written for for NinjaTrader 8 trading platform. During installation it adds the following DLL’s to the NT8 bin/Custom folder:
The installation also contains a demo strategy, which shows some (not all) of the API functions:
Please be aware that the provided API trading functions are not fully integrated into the NT8 environment! This means, that NT8 is not aware of a trade if executed and therewith it’s not showing up in performance statistics!
A provided solution demonstrated in the demo strategy is to call the NT8 trading functions EnterLong, EnterShort upon receiving a confirmation for the executed trade from the BitMEX trading API. This allows to simulate and visualize trades in the chart with the simulation account.
The API only executes trades if in realtime mode! If you want to backtest your strategy we would recommend to use a copy of the strategy w/o BitMEX trading API functions enabled, or disable them in the strategy e.g. with a separate “Backtest Enabled” parameter.
The API does not fully support all BitMEX API trading functions as provided by the BitMEX API website, but we are looking forward to requests to add missing functions!
After the checkout you will receive an email with a download link.