open_missing_spot_position#

API documentation for tradeexecutor.strategy.account_correction.open_missing_spot_position Python function.

open_missing_spot_position(strategy_universe, state, pricing_model, correction)[source]#

Open a missing spot position.

  • Assume the token belongs to a spot position which we attempted to open, but state update failed (tx went eventually thru).

Parameters:
Return type:

tuple[tradeexecutor.state.position.TradingPosition, tradeexecutor.state.trade.TradeExecution]