From 05e5b005ec9561463a89fd7fec0b2918130b9306 Mon Sep 17 00:00:00 2001 From: Ruida Zeng Date: Thu, 17 Oct 2024 11:45:05 -0500 Subject: [PATCH] cleaned up --- arbitrage_opportunity/detector.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arbitrage_opportunity/detector.py b/arbitrage_opportunity/detector.py index 69b5a6d..8418b2a 100644 --- a/arbitrage_opportunity/detector.py +++ b/arbitrage_opportunity/detector.py @@ -87,17 +87,6 @@ def get_best_triangular_opportunity(tickers: List[ShortTicker]) -> Tuple[List[Sh def get_best_opportunity(tickers: List[ShortTicker]) -> Tuple[List[ShortTicker], float]: # Build a directed graph of currencies - tickers = [ - ShortTicker(symbol=symbols.Symbol('BTC/USDT'), last_price=30000), - ShortTicker(symbol=symbols.Symbol('ETH/BTC'), last_price=0.3), - ShortTicker(symbol=symbols.Symbol('ETH/USDT'), last_price=2000), - ShortTicker(symbol=symbols.Symbol('ETH/USDC'), last_price=1900), - ShortTicker(symbol=symbols.Symbol('BTC/USDC'), last_price=35000), - ShortTicker(symbol=symbols.Symbol('USDC/USDT'), last_price=1.1), - ShortTicker(symbol=symbols.Symbol('USDC/TUSD'), last_price=0.95), - ShortTicker(symbol=symbols.Symbol('ETH/TUSD'), last_price=1950), - ShortTicker(symbol=symbols.Symbol('BTC/TUSD'), last_price=32500), - ] graph = nx.DiGraph() for ticker in tickers: