Giter Club home page Giter Club logo

Comments (10)

ABTDoug avatar ABTDoug commented on July 18, 2024 4

I think I've tracked this down. It was pretty easy once I understood the concept of a "pair" on the code. It needs symbols that it can trade into/from USDT. Several of the symbols can't be traded to/from USDT in the US domain. This is the list I'm currently working with and thrown any errors.

ONT
QTUM
ETC
ADA
NEO
ATOM
DOGE
VET
BAT
ETH

from binance-trade-bot.

edeng23 avatar edeng23 commented on July 18, 2024 1

@nrgapple Did you solve this issue? Was @ABTDoug's assessment correct?

from binance-trade-bot.

edeng23 avatar edeng23 commented on July 18, 2024

Please supply more log lines preceding the error.

from binance-trade-bot.

nrgapple avatar nrgapple commented on July 18, 2024
2021-02-16 18:28:03,978 - crypto_trader_logger - INFO - Selling 200.0 of VET
2021-02-16 18:28:04,326 - crypto_trader_logger - INFO - Balance is 299.7
2021-02-16 18:28:04,698 - crypto_trader_logger - INFO - Selling 200.0 of VET
2021-02-16 18:28:05,044 - crypto_trader_logger - INFO - Balance is 299.7
2021-02-16 18:28:05,422 - crypto_trader_logger - INFO - Selling 200.0 of VET
2021-02-16 18:28:05,781 - crypto_trader_logger - INFO - Balance is 299.7
2021-02-16 18:28:06,183 - crypto_trader_logger - INFO - Selling 200.0 of VET
2021-02-16 18:28:06,528 - crypto_trader_logger - INFO - Balance is 299.7
2021-02-16 18:28:06,902 - crypto_trader_logger - INFO - Selling 200.0 of VET
2021-02-16 18:28:07,249 - crypto_trader_logger - INFO - Balance is 299.7
2021-02-16 18:28:07,635 - crypto_trader_logger - INFO - Selling 200.0 of VET
2021-02-16 18:28:08,008 - crypto_trader_logger - INFO - Balance is 299.7
2021-02-16 18:28:08,402 - crypto_trader_logger - INFO - Selling 200.0 of VET
2021-02-16 18:28:08,779 - crypto_trader_logger - INFO - Balance is 299.7
2021-02-16 18:28:09,132 - crypto_trader_logger - INFO - Selling 200.0 of VET
2021-02-16 18:28:09,316 - crypto_trader_logger - INFO - Error while scouting...
float() argument must be a string or a number, not 'NoneType'

It has been just looping through this for 30 mins

from binance-trade-bot.

nrgapple avatar nrgapple commented on July 18, 2024

Here is from the start. There is more but it is just looping the same thing:

2021-02-16 17:56:11,560 - crypto_trader_logger - INFO - Started
2021-02-16 17:56:12,272 - crypto_trader_logger - INFO - API https://api.binance.us/api
2021-02-16 17:56:12,352 - crypto_trader_logger - INFO - cur price 48429.5
2021-02-16 17:56:12,711 - crypto_trader_logger - INFO - Error while scouting...
float() argument must be a string or a number, not 'NoneType'

2021-02-16 17:56:17,662 - crypto_trader_logger - INFO - cur price 48429.5
2021-02-16 17:56:17,991 - crypto_trader_logger - INFO - Will be jumping from BTC to VET
2021-02-16 17:56:18,038 - crypto_trader_logger - INFO - cur price 48429.5
2021-02-16 17:56:18,367 - crypto_trader_logger - INFO - Error while scouting...
float() argument must be a string or a number, not 'NoneType'

2021-02-16 17:56:19,372 - crypto_trader_logger - INFO - Selling 0.0004 of BTC
2021-02-16 17:56:19,701 - crypto_trader_logger - INFO - Balance is 0.0004061
2021-02-16 17:56:20,049 - crypto_trader_logger - INFO - order
2021-02-16 17:56:20,414 - crypto_trader_logger - INFO - 
2021-02-16 17:56:20,734 - crypto_trader_logger - INFO - Waiting for Binance
2021-02-16 17:56:23,726 - crypto_trader_logger - INFO - cur price 48429.8
2021-02-16 17:56:24,046 - crypto_trader_logger - INFO - Error while scouting...
float() argument must be a string or a number, not 'NoneType'

2021-02-16 17:56:29,072 - crypto_trader_logger - INFO - 
2021-02-16 17:56:29,398 - crypto_trader_logger - INFO - cur price 48429.8
2021-02-16 17:56:29,417 - crypto_trader_logger - INFO - Sold BTC
2021-02-16 17:56:29,757 - crypto_trader_logger - INFO - Error while scouting...
float() argument must be a string or a number, not 'NoneType'

2021-02-16 17:56:30,781 - crypto_trader_logger - INFO - BUY QTY 300.0
2021-02-16 17:56:31,117 - crypto_trader_logger - INFO -
2021-02-16 17:56:35,095 - crypto_trader_logger - INFO - cur price 48429.8
2021-02-16 17:56:35,450 - crypto_trader_logger - INFO - Error while scouting...
float() argument must be a string or a number, not 'NoneType'

2021-02-16 17:56:40,796 - crypto_trader_logger - INFO - cur price 48429.8
2021-02-16 17:56:41,147 - crypto_trader_logger - INFO - Error while scouting...
float() argument must be a string or a number, not 'NoneType'

2021-02-16 17:56:46,498 - crypto_trader_logger - INFO - cur price 48429.8
2021-02-16 17:56:46,842 - crypto_trader_logger - INFO - Error while scouting...
float() argument must be a string or a number, not 'NoneType'

2021-02-16 17:56:50,732 - crypto_trader_logger - INFO - Bought VET
2021-02-16 17:56:51,157 - crypto_trader_logger - INFO - Error while scouting...
float() argument must be a string or a number, not 'NoneType'

2021-02-16 17:56:52,192 - crypto_trader_logger - INFO - cur price 48429.8
2021-02-16 17:56:52,546 - crypto_trader_logger - INFO - Error while scouting...
float() argument must be a string or a number, not 'NoneType'

I added the curr price log for extra debugging

from binance-trade-bot.

nrgapple avatar nrgapple commented on July 18, 2024

It looks like sometimes the get_market_ticker_price(client, ticker_symbol) call will not be able to find the ticker that is passed in

from binance-trade-bot.

nrgapple avatar nrgapple commented on July 18, 2024
2021-02-16 19:09:37,490 - crypto_trader_logger - INFO - ticker_symbol: VETUSDT
2021-02-16 19:09:37,810 - crypto_trader_logger - INFO - getting ticker price: 0.04969500
2021-02-16 19:09:38,111 - crypto_trader_logger - INFO - cur price 0.049695
2021-02-16 19:09:38,430 - crypto_trader_logger - INFO - ticker_symbol: EOSUSDT
2021-02-16 19:09:38,772 - crypto_trader_logger - INFO - market ticker price: None
2021-02-16 19:09:39,087 - crypto_trader_logger - INFO - Error while scouting...
float() argument must be a string or a number, not 'NoneType'

I added more logging to this. Looks like EOSUSDT is not coming up in the client.get_symbol_ticker() request

from binance-trade-bot.

remriel avatar remriel commented on July 18, 2024

I get this sometimes if the formatting of supported_coin_list isn't exactly right or if there are too many entries in supported_coin_list.

from binance-trade-bot.

ABTDoug avatar ABTDoug commented on July 18, 2024

I've been unable to debug this error. I'm using the US TLD fix.
I started with DOGE, an order got placed for XLM by the bot and then I started getting this error.
float() argument must be a string or a number, not 'NoneType'

I tried editing the supported_coin_list, I took out all the lines except DOGE and still get the error.

I have 0.02777077 in my USDT wallet that I haven't been able to empty completely. Would a USDT wallet with a starting balance cause this issue?

from binance-trade-bot.

nrgapple avatar nrgapple commented on July 18, 2024

@nrgapple Did you solve this issue? Was @ABTDoug's assessment correct?

Yes this was the issue. Thanks

from binance-trade-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.