dexbot.strategies.external_feeds.price_feed module¶
-
class
dexbot.strategies.external_feeds.price_feed.
PriceFeed
(exchange, symbol)¶ Bases:
object
price feed class, which handles all data requests for external center price.
-
exchange
¶
-
filter_symbols
()¶
-
get_center_price
(type)¶
-
get_consolidated_price
()¶ assumes XXX/YYY must be broken into XXX/USD * USD/YYY
-
pair
¶
-
set_alt_usd_pair
(type)¶ get center price by search and replace for USD with USDT only todo: extend in PriceFeed or base.py for other alts, e.g. USDC, TUSD,etc
-
symbol
¶
-