Retrieve all the orders from the exchange. It is useful if for something we lost some info in db and we need to regenerate it.
From a base asset, we will get the orders or all its pairs, example base asset
BTC, will get
Also is needed to indicate the securities to use as parameters
ETH BTC ..
Takes all the order_status in db and with them it tries to generate all the positions and transaction, from the beginning to the end
This command is useful in combination with
updateOrderStatus in case that we need to populate all the data.
Retrieve ticks or bars from coinapi, https://coinapi.io useful in combination with “simulation” command in other to test a strategy. All the info is same in Influx DB
-Dspring.profiles.active=historicalData -duration 1h -startDate=2019-01-01 -limit=100
Backtesting, will take a file from resources/data/ with a historical ticks and run a simulation. It will read the cvs and calculate the bars and ticks. To see the result of the simulation you would need to open the UI and visit the tab Statistics.
-Dspring.profiles.active=simulation BTCUSDT ...
time_close,price_close,price 1496270100,2192.000000000000,0.000000000000 ...