Dear support.
How do I write volume data to a .txt file?
Volume data
-
- Posts: 608
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 27 times
- Been thanked: 86 times
Re: Volume data
Hi Andry,
Yes, in Java or Python, I have better command of Java.
I just don't know where to extract the data that represents the indicated volume.
Yes, in Java or Python, I have better command of Java.
I just don't know where to extract the data that represents the indicated volume.
-
- Posts: 608
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 27 times
- Been thanked: 86 times
Re: Volume data
We recommend to start with Simplified API. Please see the readme file first
https://github.com/BookmapAPI/DemoStrategies
Use this addon as an example
https://github.com/BookmapAPI/DemoStrat ... yData.java
just add some writer which will perform writes every time onTrade method is triggered.
A single trade volume is onTrade#size multiplied by InstrumentInfo#sizeMultiplier (take the latter from the #initialize method).
These videos may also be helpful
https://www.youtube.com/playlist?list=P ... 1MUHTzzX1v
https://github.com/BookmapAPI/DemoStrategies
Use this addon as an example
https://github.com/BookmapAPI/DemoStrat ... yData.java
just add some writer which will perform writes every time onTrade method is triggered.
A single trade volume is onTrade#size multiplied by InstrumentInfo#sizeMultiplier (take the latter from the #initialize method).
These videos may also be helpful
https://www.youtube.com/playlist?list=P ... 1MUHTzzX1v
Re: Volume data
Hi Andry, thanks.
So, how to identify when it is a Volume for sale or purchase?
Thank you for the information.
So, how to identify when it is a Volume for sale or purchase?
Thank you for the information.
-
- Posts: 608
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 27 times
- Been thanked: 86 times
Re: Volume data
onTrade method -> TradeInfo parameter -> TradeInfo#isBidAggressor .
aggressor here typically means a market order taking liquidity from the orderbook.
E.g. `isBidAggressor == true` means there was a buy market order taking liquidity from asks.
aggressor here typically means a market order taking liquidity from the orderbook.
E.g. `isBidAggressor == true` means there was a buy market order taking liquidity from asks.