guldo111 / triangular-arbitrage-bot-multi-exchange

Triangular Arbitrage Bot automates profitable cryptocurrency trading by scanning for price discrepancies across exchanges and executing trades to exploit arbitrage opportunities on popular cryptocurrency exchanges such as Binance, Kucoin, OKEx, and Huobi.
MIT License
10 stars 7 forks source link

mistake when finding an opportunity #4

Closed wapenikr closed 2 weeks ago

wapenikr commented 2 weeks ago

An error occurred: No columns to parse from file Traceback (most recent call last): File "tri_arb_bot.py", line 488, in main await asyncio.gather( File "tri_arb_bot.py", line 216, in find_triangular_arbitrage_opportunities df = pd.read_csv(csv_file) File "/home/wapenik/.local/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 912, in read_csv return _read(filepath_or_buffer, kwds) File "/home/wapenik/.local/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 577, in _read parser = TextFileReader(filepath_or_buffer, kwds) File "/home/wapenik/.local/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 1407, in init self._engine = self._make_engine(f, self.engine) File "/home/wapenik/.local/lib/python3.8/site-packages/pandas/io/parsers/readers.py", line 1679, in _make_engine return mapping[engine](f, self.options) File "/home/wapenik/.local/lib/python3.8/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 93, in init self._reader = parsers.TextReader(src, **kwds) File "pandas/_libs/parsers.pyx", line 557, in pandas._libs.parsers.TextReader.cinit pandas.errors.EmptyDataError: No columns to parse from file

arbitrage.log 2024-06-23 01:17:16,922 Scheduler started 2024-06-23 01:17:27,176 Finding arbitrage opportunities. 2024-06-23 01:17:27,176 Finding arbitrage opportunities. 2024-06-23 01:17:27,177 Finding arbitrage opportunities. 2024-06-23 01:17:27,177 Finding arbitrage opportunities. 2024-06-23 01:17:36,909 Arbitrage opportunity found. Checking liquidity on Kucoin... 2024-06-23 01:17:36,949 Before opportunity check on Kucoin: first_symbol= STORE/USDT, first_price = 0.011773, second_symbol = STORE/ETH second_price = 0.0000033919, third_symbol = ETH/USDT, third_price = 3519.07, profit percentage: 1.38700 2024-06-23 01:17:36,949 Calculating price impact 2024-06-23 01:17:45,292 Finding arbitrage opportunities. 2024-06-23 01:17:45,294 Finding arbitrage opportunities. 2024-06-23 01:17:45,295 Finding arbitrage opportunities. 2024-06-23 01:17:45,296 Finding arbitrage opportunities.