In this recipe, you will perform paper trading on the MACD-Bracket-Order strategy strategy. You must have fetched this strategy from your account on the AlgoBulls platform in the preceding recipe of this chapter. You will leverage the paper trading functionality facilitated by pyalgotrading for this recipe, which in turn submits a paper trading job on the AlgoBulls platform.
Once submitted, paper trading will be run by the AlgoBulls paper trading engine. You can query the status any time to know the state of the paper trading job. The job goes through the following states, in the following given order:
- 'STARTING' (intermediate state)
- 'STARTED' (stable state)
- 'STOPPING' (intermediate state)
- 'STOPPED' (stable state)
On submitting a job, it starts with an intermediate state, 'STARTING'. In this state, the AlgoBulls paper trading engine will fetch the strategy and get the...