BitMEX Adapter

Don_Kandon
Posts: 3
Joined: Sun Aug 02, 2020 3:38 pm
Has thanked: 1 time

Re: BitMEX Adapter

Post by Don_Kandon » Mon Sep 07, 2020 6:38 pm

Is it possible to add leverage slider in bookmap bitmex adapter? Because now it is super annoying, having to log in into bitmex to change leverage. Also after a bit of time, it always resets to zero. So would save quite some time to be able to change leverage in bookmap.

AndreyR
Posts: 285
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 14 times
Been thanked: 50 times

Re: BitMEX Adapter

Post by AndreyR » Mon Sep 07, 2020 8:14 pm

You can change it from Bookmap. You just need to load the BitMEX panel. Please try it first at the testnet to make sure it works for you (demo ticked in connection properties. You need to register for testnet.bitmex.com and create an API key just like for regular bitmex.com).
Leverage is set from a separate panel.
Please notice: the panel does not work for 7.0 or earlier versions.
You'll have to upload the panel as a plugin:

Settings -> Api plugins configuration -> (default location for Windows)
C:\Bookmap\API\Layer0ApiModules\7.0.0.0---7.1.1.9999---0---bitmex-adapter---0.7.0.2.jar    *current version is 0.7.0.11
-> Open -> Load -> and tick in the "BitMEX Panel"

As soon as you press the BitMEX Panel button in the Configure Api Plugins window you'll see a slider which should be moved to change the leverage. Leverage value is shown in the plugin panel and in the top-left corner of the heatmap.
If anything goes wrong (you'll see a warning message or the levetage value on the panel does not match the one on the heatmap) please restart the adapter and the panel(plugin).

Please note:
1) even if the panel is unloaded the leverage does not get reset. Just to be safe you may want to set leverages to 0 before unloading;
2) Changing leverage from the panel immediately changes its value in BitMEX web GUI and vice versa.

Post Reply