TradeStatus#
tradeexecutor.state.trade.TradeStatus class.
- class TradeStatus[source]#
Bases:
Enum
An enumeration.
- __init__()#
Attributes
Trade has been put to the planning pipeline.
Trade has txid allocated.
Trade has been pushed to the network
Trade was executed ok Any capital on sell transaction have been credited back to the reserves.
Trade was reversed e.g.
- planned = 'planned'#
Trade has been put to the planning pipeline. The trade instance has been created and stored in the state, but no internal accounting changes have been made.
- started = 'started'#
Trade has txid allocated. Any capital have been debited from the reserved and credited on the trade.
- broadcasted = 'broadcasted'#
Trade has been pushed to the network
- success = 'success'#
Trade was executed ok Any capital on sell transaction have been credited back to the reserves.
- failed = 'failed'#
Trade was reversed e.g. due to too much slippage. Trade can be retries.