running bookmap from ide

Custom indicators, trading strategies, data export and recording and more...
mdtrader
Posts: 39
Joined: Sat Oct 27, 2018 4:05 pm
Location: germany
Has thanked: 12 times
Been thanked: 41 times

running bookmap from ide

Post by mdtrader » Wed Apr 17, 2019 8:56 am

I try to run bookmap direct from the ide described here:

Code: Select all

https://github.com/BookmapAPI/Layer0ApiDemo/blob/master/doc/Layer0APIGettingstarted.pdf
'Run from IDE' at page 3 but If I start debug it seems to start bookmap but I got an error "Source not found" (edit source lookup path), but I don't know what to chance. I tried the file system path to the project or adding the jar file but nothing works.
I'm wondering because in the debug configuration below "Source" the project is added
I also tried to add the class in C:\Program Files\BookMap\lib\UserModules\L0\external-live-modules.txt
It seems that something is wrong in my debug configuration

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

Re: running bookmap from ide

Post by Andry API support » Wed Apr 17, 2019 1:24 pm

Hi mdtrader,
I need your version/build number and your full log file.
Can you get the Bookmap running (aside from your modules)?
If not:
Please open your Debug configuration in Eclipse and make a screenshot for every tabs listed:
- Main
- Classpath with UserEntries expanded (stretch the Debug configuration window up/down if entries do not fit the window)
- Source with anything-you-find-there expanded
If you can:
I need your full class code.

mdtrader
Posts: 39
Joined: Sat Oct 27, 2018 4:05 pm
Location: germany
Has thanked: 12 times
Been thanked: 41 times

Re: running bookmap from ide

Post by mdtrader » Wed Apr 17, 2019 5:24 pm

I rechecked my settings and saw that I added the wrong project to the configuration :oops: , I changed this and now Bookmap is starting and I can debug

Sorry for this stupid mistake... so maybe we can delete the whole post

US7
Posts: 6
Joined: Sat May 25, 2019 8:55 am
Has thanked: 4 times

Re: running bookmap from ide

Post by US7 » Fri May 31, 2019 9:46 am

Hi,
I've another problem on the page 3 at the documentation
I'm missing the velox.ib.Main
Has anyone an idea of what I did wrong?

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

Re: running bookmap from ide

Post by Andry API support » Fri May 31, 2019 12:27 pm

Hi US7,
If you're using Eclipse, open Run or Debug configuration, Main tab, and put velox.ib.Main into 'Main class:' field.
Or let me know what IDE you're using.

US7
Posts: 6
Joined: Sat May 25, 2019 8:55 am
Has thanked: 4 times

Re: running bookmap from ide

Post by US7 » Sat Jun 01, 2019 10:57 am

Hi AndreyR,
Thank you for your reply. It does work now. 
My mistake was that I searched the velox.ib.Main with the search button instead of putting into the field for the Main class. 
 

US7
Posts: 6
Joined: Sat May 25, 2019 8:55 am
Has thanked: 4 times

Re: running bookmap from ide

Post by US7 » Sat Jun 08, 2019 9:59 am

Hello,
now another question :-)
I've download the Layer0ApiDemo from github. In this demo is the DemoAdvancedReplayProvider - class. in velox.api.layer0.replay.advanced - package. 

In this class is in Line 47 written: 
// You can download sample file at https://bookmap.com/shared/feeds/Bookma ... 181002.zip
// Extract before loading.

I've done it so.

Then I edited the file 
external-reader-modules.txt in C:\Program Files\Bookmap\lib\UserModules\L0
The line that I inserted is: 
velox.api.layer0.replay.advanced.DemoAdvancedReplayProvider C:\Users\<myWindowsUser>\git\Layer0ApiDemo_001\bin

I run velox.ib.Main but I cannot see that the data file is loaded, that I download before. 
Now, how can I run the class DemoAdvancedReplayProvider ?
What have I done wrong?

https://www.dropbox.com/s/sixb8veaejmz7 ... o.JPG?dl=0
https://www.dropbox.com/s/tcxphapvr1osr ... 1.JPG?dl=0

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

Re: running bookmap from ide

Post by Andry API support » Sat Jun 08, 2019 5:45 pm

Hi US7,
https://github.com/BookmapAPI/Layer0Api ... tarted.pdf
Page 2, last paragraph (Using Modules -> Replay), there you'll find info to get your file loaded.
But unzip that sample file first so it has *.txt extension..

US7
Posts: 6
Joined: Sat May 25, 2019 8:55 am
Has thanked: 4 times

Re: running bookmap from ide

Post by US7 » Sat Jun 08, 2019 7:45 pm

Hi AndreyR, 
with "*" I could see the the file with *.txt extension
but after open I've the following error in the console and alert window:

Console:
ERROR: Failed to open a file 
java.lang.RuntimeException: Unknown format. If you think this is a valid file - please contact Bookmap developers.

Alert Window:
https://www.dropbox.com/s/16g8kxgvvd3ce ... 2.JPG?dl=0
 

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

Re: running bookmap from ide

Post by Andry API support » Sun Jun 09, 2019 8:20 am

Hi US7,
could you do it once again and send me your log file.
It should be at C:\Bookmap\Logs and has 'common' in its name.

Post Reply