PositionAvailabilityResponse#
API documentation for tradeexecutor.strategy.routing.PositionAvailabilityResponse Python class in Trading Strategy framework.
- class PositionAvailabilityResponse[source]#
- Bases: - object- Ask routing model if a pair is tradeable. - __init__(pair, supported, error_message=None)#
- Parameters:
- pair (TradingPairIdentifier) – 
- supported (bool) – 
 
- Return type:
- None 
 
 - Methods - __init__(pair, supported[, error_message])- Attributes - error_message- pair- supported- __init__(pair, supported, error_message=None)#
- Parameters:
- pair (TradingPairIdentifier) – 
- supported (bool) – 
 
- Return type:
- None