Developing with Bookmap API (step-by-step)

Custom indicators, trading strategies, data export and recording and more...
AndreyR
Posts: 487
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 19 times
Been thanked: 75 times

Re: Developing with Bookmap API (step-by-step)

Post by AndreyR » Tue Mar 15, 2022 8:40 am

Hi. I am trying to reproduce the issue. Meanwhile, please check a private message from me.

Tags:

soundslikecash
Posts: 2
Joined: Sun Aug 28, 2022 7:49 am
Been thanked: 1 time

Re: Developing with Bookmap API (step-by-step)

Post by soundslikecash » Thu Oct 13, 2022 4:18 am

I'm having the same problems on MacOS. Were you able to find a solution?

AndreyR
Posts: 487
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 19 times
Been thanked: 75 times

Re: Developing with Bookmap API (step-by-step)

Post by AndreyR » Thu Oct 13, 2022 7:30 am

Hi, what IDE do you use? We no longer encourage our customers to use Eclipse for development. Please use Intelij IDEA. If you are using it already can you please clarify what the issue is. If not, please use Intellij IDEA. Here are the videos how to set up the project in IDEA.
https://youtu.be/wToHfQ6R_OQ?list=PLzaG ... zX1v&t=125
https://www.youtube.com/watch?v=OKSkrG_ ... el=Bookmap

soundslikecash
Posts: 2
Joined: Sun Aug 28, 2022 7:49 am
Been thanked: 1 time

Re: Developing with Bookmap API (step-by-step)

Post by soundslikecash » Sat Oct 15, 2022 8:48 am

I followed both videos but am now getting an error message when I try to link the Gradle project. Do you know of any solutions for this problem? Thanks for getting back to me so quickly.

EDIT: Nevermind this post, I fixed the issue. Thanks again
Attachments
Screen Shot 2022-10-15 at 4.41.31 AM.png
Here is the error message
Screen Shot 2022-10-15 at 4.41.31 AM.png (39.43 KiB) Viewed 844 times

tjcarvalheiro
Posts: 3
Joined: Wed Jun 29, 2022 8:47 am
Has thanked: 2 times

Re: Developing with Bookmap API (step-by-step)

Post by tjcarvalheiro » Fri Nov 18, 2022 6:18 pm

Hello, im trying to load my fist plugin in BM, Im using intelij and keep getting this message
Any ideas? Many thanks

 
Attachments
Screenshot 2022-11-18 at 17.40.16.png
Screenshot 2022-11-18 at 17.40.16.png (17.76 KiB) Viewed 275 times

AndreyR
Posts: 487
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 19 times
Been thanked: 75 times

Re: Developing with Bookmap API (step-by-step)

Post by AndreyR » Sat Nov 19, 2022 11:23 am

Looks like your plugin references some missing class. Can I see your log for details? It would be perfect if I saw your source code. If you are OK with it, please attach it. You can send it to me in a private mesage if you don't want to expose it in this thread.

tjcarvalheiro
Posts: 3
Joined: Wed Jun 29, 2022 8:47 am
Has thanked: 2 times

Re: Developing with Bookmap API (step-by-step)

Post by tjcarvalheiro » Tue Nov 29, 2022 5:41 pm

Thanks @AndreyR I finally managed to get my plugin to start loading.
Now Im facing a issue where my code depends on an external lib to handle json - Jackson.
But every time I call code on that lib I get a method or class not found, any recommendations on how to address this?

Thanks

AndreyR
Posts: 487
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 19 times
Been thanked: 75 times

Re: Developing with Bookmap API (step-by-step)

Post by AndreyR » Wed Nov 30, 2022 2:25 pm

Hi,
Bookmap does not have the jackson lib. If you use Gradle build task for your strategies it will not include the jackson library to the jar and classes from jackson will always be missing.
You need to create a `fat` jar - an archive which will contain both your strategy and the jackson library (dependency). There are guides how to create a fat jar, for example this one
https://www.baeldung.com/gradle-fat-jar
or you can just Google "Gradle fat jar task".

tjcarvalheiro
Posts: 3
Joined: Wed Jun 29, 2022 8:47 am
Has thanked: 2 times

Re: Developing with Bookmap API (step-by-step)

Post by tjcarvalheiro » Wed Nov 30, 2022 5:59 pm

Many thanks @AndreyR just made it work

Post Reply