09-06-2019, 10:40 AM
(This post was last modified: 09-06-2019, 10:41 AM by Hallonstedt.)
I would like to bump this question.
It would be very useful to be able to check the portfolio asset and balance within the strategy and I have failed to figure out how to read the this.portfolio.currency, this.portfolio.asset and this.balance that are used in trader.js for example. I am sure it is not that difficult but my java-skills are not there yet. My work-around is to edit trader.js so it is writing the portfolio data to a tmp-file that my strategy keeps reading. It is not pretty!
It would be very useful to be able to check the portfolio asset and balance within the strategy and I have failed to figure out how to read the this.portfolio.currency, this.portfolio.asset and this.balance that are used in trader.js for example. I am sure it is not that difficult but my java-skills are not there yet. My work-around is to edit trader.js so it is writing the portfolio data to a tmp-file that my strategy keeps reading. It is not pretty!