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.

property inverse_price: Decimal

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

property price: Decimal

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