tensortrade.oms.instruments.exchange_pair module

class tensortrade.oms.instruments.exchange_pair.ExchangePair(exchange: Exchange, pair: TradingPair)[source]

Bases: object

A pair of financial instruments to be traded on a specific exchange.

Parameters:
  • exchange (Exchange) – An exchange that contains the pair for trading.
  • pair (TradingPair) – A trading pair available on the exchange.
inverse_price

The inverse price of the trading pair. (`Decimal, read-only)

price

The quoted price of the trading pair. (Decimal, read-only)