TradingPairKind#
API documentation for tradeexecutor.state.identifier.TradingPairKind Python class in Trading Strategy framework.
- class TradingPairKind[source]#
Bases:
Enum
What kind of trading position this is.
Spot markets are base:quote token pairs
Credit supplies are aToken:token pairs
- __init__(*args, **kwds)#
Methods
Do base or quote or both gain interest during when the position is open.
is_credit_based
()This trading pair is for gaining interest.
This trading pair is for shorting.
This trading pair is for shorting.
This is a leverage trade on a lending protocol.
is_spot
()This is a spot market pair.
Attributes
Bought tokens from DEX
Bought rebalancing tokens from DEX
Supplying credit to Aave reserves/gaining interest
Leveraged long constructd using lending protocols
Leveraged short constructd using lending protocols
- spot_market_hold = 'spot_market_hold'#
Bought tokens from DEX
- spot_market_hold_rebalancing_token = 'spot_market_rebalancing token'#
Bought rebalancing tokens from DEX
E.g. buy stETH or aUSD directly through DEX, instead of thru vault/reserves deposit.
- credit_supply = 'credit_supply'#
Supplying credit to Aave reserves/gaining interest
- lending_protocol_long = 'lending_protocol_long'#
Leveraged long constructd using lending protocols
- lending_protocol_short = 'lending_protocol_short'#
Leveraged short constructd using lending protocols