hzjken / crypto-arbitrage-framework

A cryptocurrency arbitrage framework implemented with ccxt and cplex. It can be used to monitor multiple exchanges, find a multi-lateral arbitrage path which maximizes rate of return, calculate the optimal trading amount for each pair in the path given flexible constraints, and execute trades with multi-threading implemenation.
552 stars 172 forks source link

skip checking for withdrawal fees #30

Open flynn2098 opened 8 months ago

flynn2098 commented 8 months ago

Anyone knows how to skip checking for withdrawal fees when I don't want to do inter exchange trading? raise ValueError('{} is not an exchange supported by withdrawalfees.com'.format(exchange)) ValueError: bitget is not an exchange supported by withdrawalfees.com

The thing is I just want to do arbitrage on one exchange so the script dosn't need those numbers in a sense but it's constructed in a way that it requests them no matter what. Could you advise which part of code should I erase and replace for it to work?

anselmoaraujo commented 1 week ago

The easiest way is commenting all exchanges that don't exist:

`exchanges = { 'binance': ccxt.binance(), 'bitfinex': ccxt.bitfinex(),

'bitget': ccxt.bitget(),

#'bybit': ccxt.bybit(),
#'coinbase': ccxt.coinbase(),
'huobi': ccxt.huobi(),
'kucoin': ccxt.kucoin(),
'okx': ccxt.okx(),

}`