Very often (50% of the time) I have an issue when I place a buy order followed by an OCO. I've noticed that the order is sent to Binance (appears in my orders list) but then your script is not able to find the order on Binance. I suspect your script is too fast and should wait few milliseconds/seconds before going to the next step. Here is an example :
binance-oco -p NEOUSDT -a 19 -b 23.01 -s 22.43 -t 23.70
binance-oco Validating stop order: { symbol: 'NEOUSDT', side: 'SELL', quantity: '19.000', price: '4.870', stopPrice: '22.430', type: 'STOP_LOSS_LIMIT' } +0ms
binance-oco Stop order valid +281ms
binance-oco Validating target order: { symbol: 'NEOUSDT', side: 'SELL', quantity: '19.000', price: '23.700', type: 'LIMIT' } +1ms
binance-oco Target order valid +251ms
binance-oco NEOUSDT price: 24.32000000 +258ms
binance-oco Buy response: { symbol: 'NEOUSDT', orderId: 370401142, orderListId: -1, clientOrderId: 'keVtUj4bf7AYxnTiN4gMco', transactTime: 1611396491263, price: '23.01000000', origQty: '19.00000000', executedQty: '0.00000000', cummulativeQuoteQty: '0.00000000', status: 'NEW', timeInForce: 'GTC', type: 'LIMIT', side: 'BUY', fills: [] } +265ms
binance-oco order id: 370401142 +0ms
/usr/local/lib/node_modules/binance-oco/node_modules/binance-api-node/dist/http-client.js:59
error = new Error(json.msg || "".concat(res.status, " ").concat(res.statusText));
^
Error: Order does not exist.
at /usr/local/lib/node_modules/binance-oco/node_modules/binance-api-node/dist/http-client.js:59:17
at processTicksAndRejections (node:internal/process/task_queues:94:5) {
code: -2013,
url: 'https://api.binance.com/api/v3/order?symbol=NEOUSDT&orderId=370401142×tamp=1611396491331&signature=ce0986ef0fd12aca548861ae53fa607fe47b8024a79b76cb925a4aeb561f7e9b'
}