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.22k stars 302 forks source link

Syntax Error #22

Closed jaazza closed 2 years ago

jaazza commented 3 years ago

I've been working to get this running, but I keep encountering the same error regardless of adjustments made. When executing python3 main.py it gives the following result:

File "<fstring>", line 1 (last_price=) ^ SyntaxError: invalid syntax

Python has been updated to 3.9.5, and the requirements have been installed. Any advice or solution? Thank you.

dovydasrudys commented 2 years ago

Remove = that goes after last_price

k-304 commented 2 years ago

Ensure you have install pip3.8 like here: https://stackoverflow.com/a/61717037 then run pip3.8 install -r requirements.txt

Linus045 commented 2 years ago

fstrings support = behind the variable name (f"{SomeVar=}") since Python 3.8 (for more info see here). To fix this issue update your python version to 3.8 or higher