Bitcoin Forum
May 10, 2024, 12:03:51 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help improve the trading bot code  (Read 75 times)
Den11 (OP)
Newbie
*
Offline Offline

Activity: 78
Merit: 0


View Profile
July 01, 2023, 08:49:09 AM
Last edit: July 08, 2023, 12:51:48 PM by Den11
 #1

Help improve the trading bot code.
None error How to fix
1715342631
Hero Member
*
Offline Offline

Posts: 1715342631

View Profile Personal Message (Offline)

Ignore
1715342631
Reply with quote  #2

1715342631
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715342631
Hero Member
*
Offline Offline

Posts: 1715342631

View Profile Personal Message (Offline)

Ignore
1715342631
Reply with quote  #2

1715342631
Report to moderator
1715342631
Hero Member
*
Offline Offline

Posts: 1715342631

View Profile Personal Message (Offline)

Ignore
1715342631
Reply with quote  #2

1715342631
Report to moderator
1715342631
Hero Member
*
Offline Offline

Posts: 1715342631

View Profile Personal Message (Offline)

Ignore
1715342631
Reply with quote  #2

1715342631
Report to moderator
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6129



View Profile
July 01, 2023, 08: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?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6129



View Profile
July 01, 2023, 06: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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!