PositionAvailabilityResponse#
API documentation for tradeexecutor.strategy.routing.PositionAvailabilityResponse Python class in Trading Strategy framework.
- class PositionAvailabilityResponse[source]#
Bases:
objectAsk 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_messagepairsupported- __init__(pair, supported, error_message=None)#
- Parameters:
pair (TradingPairIdentifier) –
supported (bool) –
- Return type:
None