ExchangeType#

tradingstrategy.exchange.ExchangeType class.

class ExchangeType[source]#

Bases: str, Enum

What kind of an decentralised exchange, AMM or other the pair is trading on.

Note that each type can have multiple implementations. For example QuickSwap, Sushi and Pancake are all Uniswap v2 types.

__init__()#

Attributes

uniswap_v2

Uniswap v2 style exchange

uniswap_v3

Uniswap v3 style exchange

uniswap_v2 = 'uniswap_v2'#

Uniswap v2 style exchange

uniswap_v3 = 'uniswap_v3'#

Uniswap v3 style exchange