Bitcoin Forum

Economy => Trading Discussion => Topic started by: Den11 on July 01, 2023, 08:49:09 AM



Title: Help improve the trading bot code
Post by: Den11 on July 01, 2023, 08:49:09 AM
Help improve the trading bot code.
None error How to fix


Title: Re: Help improve the trading bot code
Post by: OmegaStarScream on July 01, 2023, 08:57:36 AM
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?


Title: Re: Help improve the trading bot code
Post by: OmegaStarScream on July 01, 2023, 06:14:58 PM
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