Giter Club home page Giter Club logo

Comments (17)

Barnyboi828 avatar Barnyboi828 commented on July 18, 2024 2

Upon review, it looks as though the order has placed but it seems to be trying to buy again for some reason

from binance-trade-bot.

ronnyandre avatar ronnyandre commented on July 18, 2024 2

I currently have this issue. Not sure how to fix it.

from binance-trade-bot.

edeng23 avatar edeng23 commented on July 18, 2024 1

I took a look at the code and the problem likely stems from the fact that there is no exception for the loop that waits for the order to be filled. Can you try to copy the exception logic that wraps the loops above?

from binance-trade-bot.

deancarloz avatar deancarloz commented on July 18, 2024 1

Same issue here. Latest version.
Try to comment time.sleet(5) as suggested by @vmvelev but dindt work.

from binance-trade-bot.

edeng23 avatar edeng23 commented on July 18, 2024

Are you running the latest version?

from binance-trade-bot.

vmvelev avatar vmvelev commented on July 18, 2024

Same error here - latest version.

2021-02-09 18:11:33,694 - crypto_trader_logger - INFO - Balance is 24.05400962
2021-02-09 18:11:33,947 - crypto_trader_logger - INFO - order
2021-02-09 18:11:33,947 - crypto_trader_logger - INFO - {'symbol': 'ADAUSDT', 'orderId': 907555847, 'orderListId': -1, 'clientOrderId': '78QvmghlyHZtgraRKJL6ia', 'transactTime': 1612887093114, 'price': '0.00000000', 'origQty': '24.00000000', 'executedQty': '24.00000000', 'cummulativeQuoteQty': '16.43064000', 'status': 'FILLED', 'timeInForce': 'GTC', 'type': 'MARKET', 'side': 'SELL', 'fills': [{'price': '0.68461000', 'qty': '24.00000000', 'commission': '0.01643064', 'commissionAsset': 'USDT', 'tradeId': 70015733}]}
2021-02-09 18:11:33,947 - crypto_trader_logger - INFO - Waiting for Binance
2021-02-09 18:11:42,219 - crypto_trader_logger - INFO - {'symbol': 'ADAUSDT', 'orderId': 907555847, 'orderListId': -1, 'clientOrderId': '78QvmghlyHZtgraRKJL6ia', 'price': '0.00000000', 'origQty': '24.00000000', 'executedQty': '24.00000000', 'cummulativeQuoteQty': '16.43064000', 'status': 'FILLED', 'timeInForce': 'GTC', 'type': 'MARKET', 'side': 'SELL', 'stopPrice': '0.00000000', 'icebergQty': '0.00000000', 'time': 1612887093114, 'updateTime': 1612887093114, 'isWorking': True, 'origQuoteOrderQty': '0.00000000'}
2021-02-09 18:11:42,485 - crypto_trader_logger - INFO - Sold ADA
2021-02-09 18:11:44,307 - crypto_trader_logger - INFO - BUY QTY 20.1
2021-02-09 18:11:44,817 - crypto_trader_logger - INFO - {'symbol': 'ONTUSDT', 'orderId': 426377449, 'orderListId': -1, 'clientOrderId': 'nw2rb3VSum32onoKY18G6c', 'transactTime': 1612887103986, 'price': '0.81450000', 'origQty': '20.10000000', 'executedQty': '0.00000000', 'cummulativeQuoteQty': '0.00000000', 'status': 'NEW', 'timeInForce': 'GTC', 'type': 'LIMIT', 'side': 'BUY', 'fills': []}
2021-02-09 18:11:48,353 - crypto_trader_logger - INFO - APIError(code=-2013): Order does not exist.
2021-02-09 18:11:49,162 - crypto_trader_logger - INFO - BUY QTY 0.0
2021-02-09 18:11:49,677 - crypto_trader_logger - INFO - APIError(code=-1013): Invalid quantity.

It seems that the script is facing the Order does not exist error and it fails there.

from binance-trade-bot.

Barnyboi828 avatar Barnyboi828 commented on July 18, 2024

@edeng23 yes latest version seems to run great for first few trades then hits this

from binance-trade-bot.

vmvelev avatar vmvelev commented on July 18, 2024

@Barnyboi828 comment line 188
time.sleep(5) to # time.sleep(5). This works great.

from binance-trade-bot.

Barnyboi828 avatar Barnyboi828 commented on July 18, 2024

@Barnyboi828 comment line 188
time.sleep(5) to # time.sleep(5). This works great.

Thanks tried this but still getting the following:

image

from binance-trade-bot.

ertanturan avatar ertanturan commented on July 18, 2024

Same here !

from binance-trade-bot.

Barnyboi828 avatar Barnyboi828 commented on July 18, 2024

Hi all, anyone able to assist on this? I am available via Discord and Telegram to discuss

from binance-trade-bot.

Barnyboi828 avatar Barnyboi828 commented on July 18, 2024

I took a look at the code and the problem likely stems from the fact that there is no exception for the loop that waits for the order to be filled. Can you try to copy the exception logic that wraps the loops above?

Sorry you are going to have to show me which line I need to adjust

from binance-trade-bot.

edeng23 avatar edeng23 commented on July 18, 2024

149

from binance-trade-bot.

Barnyboi828 avatar Barnyboi828 commented on July 18, 2024

149

Thanks what do I need to change it to, this is what I have:

image

from binance-trade-bot.

ivanpavlina avatar ivanpavlina commented on July 18, 2024

Same problem here, multiple times... Here are logs

2021-02-10 14:56:43,472 - crypto_trader_logger - INFO - Selling 2700.0 of DOGE
2021-02-10 14:56:43,753 - crypto_trader_logger - INFO - Balance is 2797.2
2021-02-10 14:56:44,454 - crypto_trader_logger - INFO - order
2021-02-10 14:56:44,454 - crypto_trader_logger - INFO - {'symbol': 'DOGEUSDT', 'orderId': 251538070, 'orderListId': -1, 'clientOrderId': '68z0nAA5W5oyKFY4zuQckm', 'transactTime': 1612965404316, 'price': '0.00000000', 'origQty': '2700.00000000', 'executedQty': '2700.00000000', 'cummulativeQuoteQty': '192.21030000', 'status': 'FILLED', 'timeInForce': 'GTC', 'type': 'MARKET', 'side': 'SELL', 'fills': [{'price': '0.07118900', 'qty': '2700.00000000', 'commission': '0.19221030', 'commissionAsset': 'USDT', 'tradeId': 37241780}]}
2021-02-10 14:56:44,454 - crypto_trader_logger - INFO - Waiting for Binance
2021-02-10 14:56:52,736 - crypto_trader_logger - INFO - {'symbol': 'DOGEUSDT', 'orderId': 251538070, 'orderListId': -1, 'clientOrderId': '68z0nAA5W5oyKFY4zuQckm', 'price': '0.00000000', 'origQty': '2700.00000000', 'executedQty': '2700.00000000', 'cummulativeQuoteQty': '192.21030000', 'status': 'FILLED', 'timeInForce': 'GTC', 'type': 'MARKET', 'side': 'SELL', 'stopPrice': '0.00000000', 'icebergQty': '0.00000000', 'time': 1612965404316, 'updateTime': 1612965404316, 'isWorking': True, 'origQuoteOrderQty': '0.00000000'}
2021-02-10 14:56:53,247 - crypto_trader_logger - INFO - Sold DOGE
2021-02-10 14:56:55,928 - crypto_trader_logger - INFO - BUY QTY 1.1371
2021-02-10 14:56:57,219 - crypto_trader_logger - INFO - {'symbol': 'XMRUSDT', 'orderId': 409618544, 'orderListId': -1, 'clientOrderId': 'QQdxPUXssF4Flh2Lu7MuuH', 'transactTime': 1612965416455, 'price': '173.23000000', 'origQty': '1.13710000', 'executedQty': '0.00000000', 'cummulativeQuoteQty': '0.00000000', 'status': 'NEW', 'timeInForce': 'GTC', 'type': 'LIMIT', 'side': 'BUY', 'fills': []}
2021-02-10 14:57:04,690 - crypto_trader_logger - INFO - APIError(code=-2013): Order does not exist.
2021-02-10 14:57:05,686 - crypto_trader_logger - INFO - BUY QTY 0.0
2021-02-10 14:57:06,277 - crypto_trader_logger - INFO - APIError(code=-1013): Invalid quantity.
2021-02-10 14:57:07,836 - crypto_trader_logger - INFO - APIError(code=-1013): Invalid quantity.
2021-02-10 14:57:09,382 - crypto_trader_logger - INFO - APIError(code=-1013): Invalid quantity.

"Invalid quantity" repeats every 1 and a half second indefinetly...
After restart I get a loop of:

2021-02-10 18:19:03,739 - crypto_trader_logger - INFO - Selling 0.0 of DOGE
2021-02-10 18:19:04,031 - crypto_trader_logger - INFO - Balance is 97.2
2021-02-10 18:19:05,120 - crypto_trader_logger - INFO - Selling 0.0 of DOGE
2021-02-10 18:19:05,413 - crypto_trader_logger - INFO - Balance is 97.2
2021-02-10 18:19:06,311 - crypto_trader_logger - INFO - Selling 0.0 of DOGE
2021-02-10 18:19:06,593 - crypto_trader_logger - INFO - Balance is 97.2
2021-02-10 18:19:07,529 - crypto_trader_logger - INFO - Selling 0.0 of DOGE
2021-02-10 18:19:07,815 - crypto_trader_logger - INFO - Balance is 97.2
2021-02-10 18:19:08,914 - crypto_trader_logger - INFO - Selling 0.0 of DOGE
2021-02-10 18:19:09,205 - crypto_trader_logger - INFO - Balance is 97.2
2021-02-10 18:19:10,087 - crypto_trader_logger - INFO - Selling 0.0 of DOGE
2021-02-10 18:19:10,380 - crypto_trader_logger - INFO - Balance is 97.2
2021-02-10 18:19:11,271 - crypto_trader_logger - INFO - Selling 0.0 of DOGE
2021-02-10 18:19:11,554 - crypto_trader_logger - INFO - Balance is 97.2
2021-02-10 18:19:12,691 - crypto_trader_logger - INFO - Selling 0.0 of DOGE
2021-02-10 18:19:12,976 - crypto_trader_logger - INFO - Balance is 97.2

To get it working again i have to delete both .current_coin and .current_coin_table files, and then manually buy initial coin and repeat setup process (except generating new api keys)

My guess is that buy order has actually succeded, but for whatever reason Binance returned an error - APIError(code=-2013): Order does not exist.

Maybe there should be check if order is really complete, not depending on actual response of buy order call? Or check current amount of coins in wallet, in this case app should check if there is atleast 1.1371 of XMR in the wallet and use that to mark current coin?

from binance-trade-bot.

danvilar avatar danvilar commented on July 18, 2024

Isn't it better if the api returns that code to delete the order and re-scout the market? Just a suggestion

from binance-trade-bot.

edeng23 avatar edeng23 commented on July 18, 2024

Looks like I fixed the issue, should work now :)

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.