How to import custom API modules into Bookmap

Custom indicators, trading strategies, data export and recording and more...
zjufish
Posts: 2
Joined: Thu Mar 14, 2019 6:54 am

Re: How to import custom API modules into Bookmap

Post by zjufish » Thu Mar 14, 2019 7:00 am

where i can find the text market data file that works for Layer0ApiDemo.DemoTextDataReplayProvider?

Tags:

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: How to import custom API modules into Bookmap

Post by Andry API support » Mon Mar 18, 2019 3:34 pm

Here is a zipped sample attached.
Attachments
feed_Multiplatform_.simpleformat.zip
(424.91 KiB) Downloaded 1403 times

ingyukoh
Posts: 33
Joined: Tue Nov 26, 2019 7:06 am
Been thanked: 1 time

Re: How to import custom API modules into Bookmap

Post by ingyukoh » Sun Dec 29, 2019 7:52 am

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.

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: How to import custom API modules into Bookmap

Post by Andry API support » Mon Jan 06, 2020 8:36 am

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.

gravanoc
Posts: 4
Joined: Mon Mar 16, 2020 1:48 am

Re: How to import custom API modules into Bookmap

Post by gravanoc » Thu Oct 01, 2020 4:48 am

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
Attachments
NoEntry.JPG
NoEntry.JPG (74.4 KiB) Viewed 22916 times

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: How to import custom API modules into Bookmap

Post by Andry API support » Thu Oct 01, 2020 5:47 am

Hi gravanoc,
I need to see your indicator's source file and your log. You can write me a private message.

hesaid
Posts: 21
Joined: Tue Sep 01, 2020 12:34 pm
Has thanked: 1 time
Been thanked: 1 time

Re: How to import custom API modules into Bookmap

Post by hesaid » Mon Dec 21, 2020 9:36 am

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?


 

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: How to import custom API modules into Bookmap

Post by Andry API support » Mon Dec 21, 2020 10:32 am

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.

information123
Posts: 4
Joined: Sun Dec 13, 2020 2:24 pm

Re: How to import custom API modules into Bookmap

Post by information123 » Wed Jan 06, 2021 5:25 pm

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?

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: How to import custom API modules into Bookmap

Post by Svyatoslav » Thu Jan 07, 2021 12:44 pm

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)

Post Reply