Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem occurs when i start the bot #27

Open
mrdjehknhc opened this issue Sep 27, 2022 · 9 comments
Open

Problem occurs when i start the bot #27

mrdjehknhc opened this issue Sep 27, 2022 · 9 comments

Comments

@mrdjehknhc
Copy link

python3 main.py
/home/elliot/Downloads/arbitrage/path_optimizer.py:284: RuntimeWarning: divide by zero encountered in log
final_transit_matrix = np.log(self.transit_price_matrix * (1 - self.commission_matrix) * (
profit rate: 0.0, arbitrage path: []
profit rate: 0.0, arbitrage path: []
profit rate: 0.0, arbitrage path: []
profit rate: 0.0, arbitrage path: []
profit rate: 0.0018326130900521154, arbitrage path: [('kucoin_XRP', 'kucoin_TUSD'), ('kucoin_TUSD', 'kucoin_USDT'), ('kucoin_USDT', 'kucoin_LTC'), ('kucoin_LTC', 'kucoin_USDC'), ('kucoin_USDC', 'kucoin_XRP')]
Traceback (most recent call last):
File "/home/elliot/Downloads/arbitrage/main.py", line 43, in
amt_optimizer.get_solution()
File "/home/elliot/Downloads/arbitrage/amount_optimizer.py", line 52, in get_solution
self._update_model()
File "/home/elliot/Downloads/arbitrage/amount_optimizer.py", line 70, in _update_model
self._set_constraints()
File "/home/elliot/Downloads/arbitrage/amount_optimizer.py", line 105, in _set_constraints
withdraw_fee = self.PathOptimizer.withdrawal_fee[trade[0]]['coin_fee']
KeyError: 'kucoin_XRP'

@mrdjehknhc
Copy link
Author

I do not think that they will help me there, I am sure that the error is in the program code

@mrdjehknhc
Copy link
Author

How that they can help im in this case ?

@mrdjehknhc
Copy link
Author

mrdjehknhc commented Oct 3, 2022

I don't feel bad about them, really, I just think they can't help in my case because that's not exactly what they do

@mrdjehknhc
Copy link
Author

any idea how to fix my problem?

@mrdjehknhc
Copy link
Author

ok bro i will try this

@mrdjehknhc
Copy link
Author

i messaged ltc support and they can't help me

@AlwxDavydov
Copy link

Hello bro, does you fixed it?

@SBijpost
Copy link

SBijpost commented Feb 20, 2023

In path_optimizer.py,
change
new_name = '{}_{}'.format(exchange, currency)

to
new_name = '{}_{}'.format(exchange, currency.split()[0])
in update_withdrawal_fee()

because there are spaces after the currency name

@xenon1001
Copy link

In path_optimizer.py, change new_name = '{}_{}'.format(exchange, currency)

to new_name = '{}_{}'.format(exchange, currency.split()[0]) in update_withdrawal_fee()

because there are spaces after the currency name

Thanks man, I've been working on it for hours. Does the code actually perform its intended function? Is it profitable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@SBijpost @mrdjehknhc @AlwxDavydov @xenon1001 and others