Hi guys, so I've been playing around trying to get into writing a trading bot but I keep having this weird problem. I'm using an OCO order to place stoploss / take profit for trades however the order expires seemingly randomly? I'm currently on 5 min candles. I've read that the spot testnet has poor liquidity many recommending BNB/USDT. I'm wondering whether its the network causing my orders to expire.
an example:
{ "symbol":"BNBUSDT", "orderId":5167170, "orderListId":1458, "clientOrderId":"ffA7816K5YZpKaxq6aI5M7", "price":"540.72000000", "origQty":"0.10000000", "executedQty":"0.00000000", "cummulativeQuoteQty":"0.00000000", "status":"EXPIRED", "timeInForce":"GTC", "type":"LIMIT_MAKER", "side":"BUY", "stopPrice":"0.00000000", "icebergQty":"0.00000000", "time":1637613005557, "updateTime":1637613353502, "isWorking":true, "origQuoteOrderQty":"0.00000000" }
This is the take profit portion of the OCO. The time difference is roughly 5 mins between created and updated. I'm assuming updated is when it expired.
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments