Page 3 of 4

Re: BitMEX Adapter

Posted: Sat Aug 31, 2019 8:17 am
by AndreyR
Hi ChuckBanger,
it's being tested at the moment, and will be updated soon (post-only).

Re: BitMEX Adapter

Posted: Sat Aug 31, 2019 10:30 am
by ChuckBanger
Thanks for the great work.... I like it.

What about implementing changing leverage?. Is it doable?

Re: BitMEX Adapter

Posted: Sat Aug 31, 2019 10:57 am
by ChuckBanger
Another question....

When i tried to do a little bigger position size. My ip get blocked. I guess my ip get flagged as spam because BookMap sends so many small orders to Bitmex.

In the header of a response from a request you have "x-ratelimit-remaining" and "x-ratelimit-limit". These parameters is meant to be used to prevent this. Is it possible to calculate the position sizes based on this parameters or something like that?

Re: BitMEX Adapter

Posted: Tue Sep 03, 2019 7:41 am
by AndreyR
New durations added for v.0.6.2.1 BitMEX adapter. Update the adapter from Bookmap.
Choose the GTC_PO duration to place a post-only order.
Warning: DAY duration seems no longer to be supported by BitMEX. It'll be on the list until I get an answer from BitMEX support. To support Bookmap trading functions DAY duration for Market orders will be automatically changed to GTC.
The requested features besides order durations are being considered.

Re: BitMEX Adapter

Posted: Tue Sep 03, 2019 3:28 pm
by AndreyR
Update the adapter from Bookmap to v.0.6.3.
DAY duration is supported.

Re: BitMEX Adapter

Posted: Fri Sep 06, 2019 7:20 am
by AndreyR
BookMap sends so many small orders to Bitmex.
BitMEX stopped supporting contingent orders in late 2018. Contingent orders placing is emulated by Bookmap. Current behavior is placing contingent orders at size of primary order execution size. Like, if a 500 size order placed and being executed like 10-10-20-30-5 these will be the sizes of contingent orders placed.
Now, we're considering to change this. Options we're thinking of are accumulating (?contingent) orders and/or placing them with a delay.
Accumulating - contingent orders will be placed:
- all-at-once as soon as the primary order started being executed
- all-at-once as soon as the primary order is completely executed
- placed with portions of executions equal to <size>
Placing with a delay:
- placing orders not more than once a <fixed delay, ms>
- placing orders not more than once a <delay depending on ratelimit, ms>
Will this solve your issue?

Re: BitMEX Adapter

Posted: Sat Sep 07, 2019 2:03 pm
by suspy
Hi everyone,

How to build the adapter?

I download the source and export jar in eclipse, then put it in C:\Bookmap\API\Layer0ApiModules\, it doesn't work.I download the compiled jar from github release, it works. Is there any problem of exporting jar file?

Why I need to compile it ? Because getting orderbook snapshot take more than 10s for me, I want to make this time longer.

Thanks in advance.

Suspy

Re: BitMEX Adapter

Posted: Sat Sep 07, 2019 7:07 pm
by AndreyR
Hi suspy,
You've done everything right and it should be working if exported as jar from Eclipse. Would you please make some screenshots and send me the log file so I can figure out what's wrong (there's no attach button for a quick reply but you press 'Full editor&preview' there'll be one) .
Sorry I do not get the problem you have with snapshots, could you provide more details.
 

Re: BitMEX Adapter

Posted: Sun Sep 08, 2019 1:21 am
by suspy
AndreyR wrote:
Sat Sep 07, 2019 7:07 pm
[img]E:[/img]You've done everything right and it should be working if exported as jar from Eclipse. Would you please make some screenshots and send me the log file so I can figure out what's wrong (there's no attach button for a quick reply but you press 'Full editor&preview' there'll be one) .
When I use my compiled jar, there is no error message in ui or log file, BitMEX is not shown in Connectivity configuration. Replace with github release version, BitMEX listed.
AndreyR wrote:
Sat Sep 07, 2019 7:07 pm
Sorry I do not get the problem you have with snapshots, could you provide more details.
 It seems this timer timeout most of time, I want make it wait longer.

Code: Select all

instr.setSnapshotTimer(timer); 
Log.info("[bitmex] BmConnector launchSnapshotTimer " + localTimerCount + " for " + instr.getSymbol() + ": " + ZonedDateTime.now(ZoneOffset.UTC)); 
timer.schedule(task, 10000);  

Re: BitMEX Adapter

Posted: Mon Sep 09, 2019 8:28 am
by AndreyR
Hi suspy,
send me your log files (at C:\Bookmap\Logs for Windows) for Bookmap started with GitHub release version and your custom version.