abayomi185/simple-pump-and-dump-bot

Using WSL2

Swodzinski opened this issue · 8 comments

database files open fine in windows, but when I run in WSL2, it doesn't run properly. Any ideas as to what I am missing ?
File "/home/sampi314/.docker/simple-pump-and-dump-bot/src/initialise_db.py", line 3, in
conn = sqlite3.connect('"C:\users\guest\desktop\example.db")/usr/bin/python3/home/sampi314/.docker/simple-pump-and-dump-bot/src/records.db')
sqlite3.OperationalError: unable to open database file

Check the file permissions and ownership for the database in your Linux terminal. It should be accessible by your Linux user.

got that resolved, I think I'm right on the brink of getting it up and running. This is the last of the errors I believe it will throw
Traceback (most recent call last):
File "/home/sampi314/simple-pump-and-dump-bot/simple-pump-and-dump-bot/src/bot-kucoin.py", line 281, in
balance = acct_balance()
File "/home/sampi314/simple-pump-and-dump-bot/simple-pump-and-dump-bot/src/bot-kucoin.py", line 93, in acct_balance
acct_balance = user_client.get_withdrawal_quota(config['trade_configs']
File "/home/sampi314/.local/lib/python3.8/site-packages/kucoin/user/user.py", line 645, in get_withdrawal_quota
return self._request('GET', '/api/v1/withdrawals/quotas', params=params)
File "/home/sampi314/.local/lib/python3.8/site-packages/kucoin/base_request/base_request.py", line 93, in _request
return self.check_response_data(response_data)
File "/home/sampi314/.local/lib/python3.8/site-packages/kucoin/base_request/base_request.py", line 112, in check_response_data
raise Exception("{}-{}".format(response_data.status_code, response_data.text))
Exception: 401-{"code":"400003","msg":"KC-API-KEY not exists"}

The error shows the API is connected but the API key does not exist. It is possible you have a new V2 API key that the bot does not currently support. See the last few comments in issue #10

Otherwise, you can check to make sure you api key is correct

thank you for your help!

Lmao I lied fingers crossed its smooth sailing once I get this error taken care of
Traceback (most recent call last):
File "/home/sampi314/simple-pump-and-dump-bot/simple-pump-and-dump-bot/src/bot-kucoin.py", line 282, in
balance = acct_balance()
File "/home/sampi314/simple-pump-and-dump-bot/simple-pump-and-dump-bot/src/bot-kucoin.py", line 99, in acct_balance
print('\nYour {} balance is {}\n'.format(config['trade_configs'][selected_config]['pairing'], acct_balance[0]['available']))
KeyError: 0

Haha. Do you have money for your crypto pairing in your trading account?

I didnt't realize it would throw an error if I didnt have any in there already. I'll give an update when I convert to usdt

You can change the pairing if you have some other crypto.

For my use case, I omitted error handling as it could slow down the script if not implemented properly. I also didn't find it necessary to have.