TradeStatus#

API documentation for tradeexecutor.state.trade.TradeStatus Python class in Trading Strategy framework.

class TradeStatus[source]#

Bases: Enum

__init__(*args, **kwds)#

Attributes

planned

Trade has been put to the planning pipeline.

started

Trade has txid allocated.

broadcasted

Trade has been pushed to the network

success

Trade was executed ok Any capital on sell transaction have been credited back to the reserves.

failed

Trade was reversed e.g.

repaired

This trade was originally failed, but later repaired.

repair_entry

A virtual trade to reverse any balances of a repaired trade.

expired

Trade is bound to triggers (like partial take profit) but all trigger was expired

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.

repaired = 'repaired'#

This trade was originally failed, but later repaired.

A counter entry was made in the position and this trade was marked as repaired.

repair_entry = 'repair_entry'#

A virtual trade to reverse any balances of a repaired trade.

expired = 'expired'#

Trade is bound to triggers (like partial take profit) but all trigger was expired