Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (16 sloc) 510 Bytes
from typing import NamedTuple
from hummingbot.market.market_base import MarketBase
class MarketSymbolPair(NamedTuple):
market: MarketBase
trading_pair: str
base_asset: str
quote_asset: str
@property
def order_book(self):
return self.market.get_order_book(self.trading_pair)
@property
def quote_balance(self):
return self.market.get_balance(self.quote_asset)
@property
def base_balance(self):
return self.market.get_balance(self.base_asset)
You can’t perform that action at this time.