Author

Topic: Help improve the trading bot code (Read 75 times)

staff
Activity: 3472
Merit: 6129
July 01, 2023, 02:14:58 PM
#3
So, everything is failing with the exception of the ticker request and upon checking the exchange's API, it looks like that request doesn't require an API key:

https://apidocs.txbit.io/#public-getticker

It's a public endpoint.

So as I've told you before, you're most likely not using the right API credentials from your account and that's why this error is being returned. Have you followed the steps explained here (from the link you posted):

https://github.com/groop30/TxBit-Trading/blob/main/README.md
staff
Activity: 3472
Merit: 6129
July 01, 2023, 04:57:36 AM
#2
It's difficult to help you out without knowing where the problem is occurring exactly (which function/line).

But if I had to guess, I would say it's because one of your variables (possibly buy or sell) is failing for some reason and not returning anything. Did you by any chance forget to set your APIKEY and SECRET?
newbie
Activity: 78
Merit: 0
July 01, 2023, 04:49:09 AM
#1
Help improve the trading bot code.
None error How to fix
Jump to: