Available translations

Simulating Check of Events

foundations.png
Summary: Instead of checking what happened with the order at the exchange, the bot launches the synchronization simulation and updates the trading engine with the results of the calculations.
The process is the same for all orders and involves a simulated synchronization with the exchange (see Simulating Sync With the Exchange), which performs all the checks and calculations, and updates the associated nodes in the trading engine hierarchy.
Once the simulated synchronization is done, the bot checks if the order was completely filled during the simulation...
 tradingEngineOrder.orderStatistics.percentageFilled.value === 100
... and updates the corresponding trading engine nodes accordingly:
 tradingEngineOrder.status.value = 'Closed'
tradingEngineOrder.exitType.value = 'Filled'
Previous
Maintaining Simulated Orders
Next
Simulating Sync With the Exchange