ExchangeAdapter

class ExchangeAdapter(extra_provides: Union[List[Tuple[str, str]], Set[List[Tuple[str, str]]]] = None, validate_provides: bool = True, **ex_settings)[source]

Abstract base class used by all exchange adapters for interoperability

__init__(extra_provides: Union[List[Tuple[str, str]], Set[List[Tuple[str, str]]]] = None, validate_provides: bool = True, **ex_settings)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

Methods

__init__([extra_provides, validate_provides])

Initialize self.

get_pair(from_coin, to_coin)

Instantiate an exchange class and get a ticker asynchronously.

has_pair(from_coin, to_coin)

Attributes

Attributes

cache_timeout

code

name

provides