CyberPunkMetalHead / gateio-crypto-trading-bot-binance-announcements-new-coins

This is a crypto trading bot that scans the Binance Annoucements page for new coins, and places trades on Gateio
MIT License
1.21k stars 302 forks source link

Error running script #1

Closed thesam1545 closed 2 years ago

thesam1545 commented 3 years ago

I get this error when running script from main.py image

I am on Windows 10 running Python through Visual Studio Code. I configured auth.yml file and config.yml file, all correctly. I also installed all requirements. I am not a programmer, so excuse me if this is a newbie error. :D

alexbobes commented 3 years ago

It works as expected on Python 3.9, make sure you upgrade first.

armonai commented 3 years ago

Please am new to python and just trying to test this bot script out. I ran the script and below is the output I got which seems like there's an error with "yaml" can't find any file like that in the actual files download from GitHub.

ARMSTRONGs-MacBook-Air:gateio-crypto-trading-bot-binance-announcements-new-coins armstrongonaiwu$ python3 main.py Traceback (most recent call last): File "/Users/armstrongonaiwu/gateio-crypto-trading-bot-binance-announcements-new-coins/main.py", line 1, in from trade_client import File "/Users/armstrongonaiwu/gateio-crypto-trading-bot-binance-announcements-new-coins/trade_client.py", line 1, in from auth.gateio_auth import File "/Users/armstrongonaiwu/gateio-crypto-trading-bot-binance-announcements-new-coins/auth/gateio_auth.py", line 1, in import yaml ModuleNotFoundError: No module named 'yaml'

thesam1545 commented 3 years ago

Please am new to python and just trying to test this bot script out. I ran the script and below is the output I got which seems like there's an error with "yaml" can't find any file like that in the actual files download from GitHub.

ARMSTRONGs-MacBook-Air:gateio-crypto-trading-bot-binance-announcements-new-coins armstrongonaiwu$ python3 main.py Traceback (most recent call last): File "/Users/armstrongonaiwu/gateio-crypto-trading-bot-binance-announcements-new-coins/main.py", line 1, in from trade_client import File "/Users/armstrongonaiwu/gateio-crypto-trading-bot-binance-announcements-new-coins/trade_client.py", line 1, in from auth.gateio_auth import File "/Users/armstrongonaiwu/gateio-crypto-trading-bot-binance-announcements-new-coins/auth/gateio_auth.py", line 1, in import yaml ModuleNotFoundError: No module named 'yaml'

You should install requirements

$ pip install yaml

CyberPunkMetalHead commented 3 years ago

👆 or navigate to your local project directory and install all the requirements in one go: python -m pip install -r requirements.txt or pip3 install -r requirements.txt for linux

armonai commented 3 years ago

Thanks done and ran the script again and started gotting some output which I believe is working now. please confirm that's what is expected.

python3 main.py working... No coins announced, or coin has already been bought/sold. Checking more frequently in case TP and SL need updating. You can comment me out, I live on line 176 in main.py Checking for coin announcements every 1 minute (in a separate thread) No coins announced, or coin has already been bought/sold. Checking more frequently in case TP and SL need updating. You can comment me out, I live on line 176 in main.py No coins announced, or coin has already been bought/sold. Checking more frequently in case TP and SL need updating. You can comment me out, I live on line 176 in main.py No coins announced, or coin has already been bought/sold. Checking more frequently in case TP and SL need updating. You can comment me out, I live on line 176 in main.py Checking for coin announcements every 1 minute (in a separate thread) No coins announced, or coin has already been bought/sold. Checking more frequently in case TP and SL need updating. You can comment me out, I live on line 176 in main.py No coins announced, or coin has already been bought/sold. Checking more frequently in case TP and SL need updating. You can comment me out, I live on line 176 in main.py No coins announced, or coin has already been bought/sold. Checking more frequently in case TP and SL need updating. You can comment me out, I live on line 176 in main.py

armonai commented 3 years ago

Also in the config file, the quantity is it the amount one intend to spend on the coin? or the number of coins to buy.

CyberPunkMetalHead commented 2 years ago

that is the expected output, yes

thesam1545 commented 2 years ago

that is the expected output, yes

I really admire your project here, and the talking robot in YT. hehe I know you did not make a lot of testing here because there is no testnet in Gateio... What do you think that may go wrong?

image When Binance placed this news, I tested your previous project, and it created a file with a coin list like this "AVAXAUDAVAXBRLAXSETHFTMETH....." Was this corrected?

CyberPunkMetalHead commented 2 years ago

Interesting, thanks for flagging that. It should have been excluded in this version, I didn’t get an output like that but I will keep an eye on it.

My main concern is that Gate.io will be particularly picky about the amount used for each coin, with precise decimal points for each.

Edit: appreciate you liking my content:)