Skip to content

Commit

Permalink
Remove binance us rate oracle from binance
Browse files Browse the repository at this point in the history
  • Loading branch information
mlguys committed Apr 25, 2024
1 parent f14cb93 commit cce4092
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hummingbot/core/rate_oracle/sources/binance_rate_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class BinanceRateSource(RateSourceBase):
def __init__(self):
super().__init__()
self._binance_exchange: Optional[BinanceExchange] = None # delayed because of circular reference
# self._binance_us_exchange: Optional[BinanceExchange] = None # delayed because of circular reference

@property
def name(self) -> str:
Expand All @@ -26,7 +25,6 @@ async def get_prices(self, quote_token: Optional[str] = None) -> Dict[str, Decim
results = {}
tasks = [
self._get_binance_prices(exchange=self._binance_exchange),
# self._get_binance_prices(exchange=self._binance_us_exchange, quote_token="USD"),
]
task_results = await safe_gather(*tasks, return_exceptions=True)
for task_result in task_results:
Expand All @@ -43,7 +41,6 @@ async def get_prices(self, quote_token: Optional[str] = None) -> Dict[str, Decim
def _ensure_exchanges(self):
if self._binance_exchange is None:
self._binance_exchange = self._build_binance_connector_without_private_keys(domain="com")
# self._binance_us_exchange = self._build_binance_connector_without_private_keys(domain="us")

@staticmethod
async def _get_binance_prices(exchange: 'BinanceExchange', quote_token: str = None) -> Dict[str, Decimal]:
Expand Down

0 comments on commit cce4092

Please sign in to comment.