open_missing_credit_position#
API documentation for tradeexecutor.strategy.account_correction.open_missing_credit_position Python function.
- open_missing_credit_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:
strategy_universe (TradingStrategyUniverse) –
state (State) –
pricing_model (PricingModel) –
correction (AccountingBalanceCheck) –
- Return type:
tuple[tradeexecutor.state.position.TradingPosition, tradeexecutor.state.trade.TradeExecution]