Skip to content

Commit

Permalink
cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruida Zeng authored and Ruida Zeng committed Oct 17, 2024
1 parent 46e331f commit 05e5b00
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions arbitrage_opportunity/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 05e5b00

Please sign in to comment.