Page 2 of 2

Re: How to import custom API modules into Bookmap

Posted: Thu Mar 14, 2019 7:00 am
by zjufish
where i can find the text market data file that works for Layer0ApiDemo.DemoTextDataReplayProvider?

Re: How to import custom API modules into Bookmap

Posted: Mon Mar 18, 2019 3:34 pm
by Andry API support
Here is a zipped sample attached.

Re: How to import custom API modules into Bookmap

Posted: Sun Dec 29, 2019 7:52 am
by ingyukoh
Dear AndreyR, fundraiser, and Serg,

"Market maker" source code at
https://github.com/BookmapAPI/simple-de ... aker1.java
is no longer available.

The code can be extremely useful for studying purpose.
For example,
https://github.com/BitMEX/sample-market-maker
by Bitmex using Martingale system(large bet size away from the bollinger mid line) for volume
weighted average closely track the turning point was extremely useful source codes to
study and understand Bitmex websocket API of bulk new limit/amend/cancel orders, processing
vectors of orders in a single API call.

Re: How to import custom API modules into Bookmap

Posted: Mon Jan 06, 2020 8:36 am
by Andry API support
Hi ingyukoh,
By the moment the Market maker was removed it was still under construction (and that was actually the reason to remove it). Even if it was there it would not be useful anyway.

Re: How to import custom API modules into Bookmap

Posted: Thu Oct 01, 2020 4:48 am
by gravanoc
Hello, I am getting the following error when trying to add the indicators.jar file.  No entry points found in jar.  See attachment please for further details.  I have followed the instructions in the previous post here: https://www.bookmap.com/forum/viewtopic.php?f=3&t=52

Re: How to import custom API modules into Bookmap

Posted: Thu Oct 01, 2020 5:47 am
by Andry API support
Hi gravanoc,
I need to see your indicator's source file and your log. You can write me a private message.

Re: How to import custom API modules into Bookmap

Posted: Mon Dec 21, 2020 9:36 am
by hesaid
Hi,
Your support team sent me instructions describing on how to sign my module: 
  • step 1 is "add @UnrestrictedData annotation to your strategy entry point"
  • step 2 is "send it to us"
  • then we sign it and signature becomes available within 15 min.  then you just restart bookmap and it should work.

Thereby several questions:
1. @UnrestrictedData. What import file contains this annotation? I can't recognize it. What is the strategy entry point if I use @Layer1Injectible? Can you please share a sample code?
2. In what format should I "sent it "to you? *.jar? sources? link to GitHub?


 

Re: How to import custom API modules into Bookmap

Posted: Mon Dec 21, 2020 10:32 am
by Andry API support
Hi hesaid,
1. The api-core lib seems to be outdated in your case.
In your gradle.build (I only assume you're using it and developing for Bookmap 7.1)

Code: Select all

 
compileOnly group: 'com.bookmap.api', name: 'api-core', version: '7.1.0.35';
Set your version somewhere between 7.1.0.35 and the latest (7.1.0.68 as at dec 2020) depending on your Bookmap release version. Rebuild your project. Let me know if you're not using gradle or using any other Bookmap version.
As soon as the api-core lib is updated your IDE will recognize the annotation.
The @Layer1Injectable is added to the entry point so place the @UnrestrictedData above the @Layer1Injectable annotation.

2. Submit the jar or a link to the jar in a message to support.

Re: How to import custom API modules into Bookmap

Posted: Wed Jan 06, 2021 5:25 pm
by information123
I also came into the previously aforementioned error attached.  I have changed the build.gradle to my current version but I have not found the entry point part for the @UnrestrictedData insertion.  Did you get any resolution here?

Re: How to import custom API modules into Bookmap

Posted: Thu Jan 07, 2021 12:44 pm
by Svyatoslav
information123, do you mean that there is no UnrestrictedData annotation in the API libraries corresponding to latest 7.1 build? That sounds weird, could you please share your gradle build file and exact error you are getting?
http://maven.bookmap.com/maven2/release ... 1.0.62.jar contains it under velox.api.layer1.annotations package.

If what you mean that bookmap says "No entry points found" - that can be many things, but the most common one is compiling the add-on with wrong Java version (must be java 8 for 7.1 or anything between java 8 and java 14 for 7.2). Log file produced by bookmap when you load your jar for the first time should tell more ("for the first time" part is important because bookmap caches entry points based on file hash - you have to modify the file to make it get indexed again)