iilunin / crypto-bot

Binance crypto bot which supports smart entry, trailing stop-losses and take profits, multiple exit targets, One-Cancels-the-Other functionality, UI Interface
Apache License 2.0
247 stars 51 forks source link

Balance insufficient founds when creating order #12

Closed hrga7 closed 5 years ago

hrga7 commented 5 years ago

Hello Why i cant place order... Here is the logs

2019-02-12 10:09:13,219[INFO][BinanceWebsocket|Binance WebSocket Thread]: Websocket Connected to "wss://stream.binance.com:9443/stream?streams=xrpbtc@ticker" 2019-02-12 10:09:13,665[INFO][TradeHandler|Binance WebSocket Thread]: WebSocket message received 2019-02-12 10:09:13,666[WARNING][PlaceOrderStrategy(XRPBTC)|Binance WebSocket Thread]: Insufficient balance to place order. Bal: 0.0173229, Order: 197.0 2019-02-12 10:09:14,668[WARNING][PlaceOrderStrategy(XRPBTC)|Binance WebSocket Thread]: Insufficient balance to place order. Bal: 0.0173229, Order: 197.0 2019-02-12 10:09:16,667[WARNING][PlaceOrderStrategy(XRPBTC)|Binance WebSocket Thread]: Insufficient balance to place order. Bal: 0.0173229, Order: 197.0 2019-02-12 10:09:20,675[WARNING][PlaceOrderStrategy(XRPBTC)|Binance WebSocket Thread]: Insufficient balance to place order. Bal: 0.0173229, Order: 197.0

iilunin commented 5 years ago

Hello,

What I can read from the log file, is that the bot is trying to place an order for your target. Your target requests to place 197 XRP, but you have only fraction available.

Each of your exit targets should have volume. If the target is regular (non-smart) then the limit order is placed automatically. If you have three targets with corresponding volumes 50%, 100% and 197, bot will try to place 3 limit orders 1st for the half of your XRPs, 2nd for the rest of your XRPs and 3d for 197 of your XRPs (which will fail as all of your XRPs are in work).

Also, if you place an order through binance or any other application, and use absolute volumes in bot it may result in the same issue (when your coins are already in work)