binance / binance-connector-node

A simple connector to Binance Public API
MIT License
553 stars 160 forks source link

feat: Update OCO order endpoint to use /api/v3/orderList/oco #158

Open dizao opened 3 months ago

dizao commented 3 months ago

Issue subject Library is using the deprecated OCO order API endpoint

Expected behaviour The library should use the new API endpoint for OCO orders.

Actual behaviour The library is currently using the deprecated POST /api/v3/order/oco endpoint, which should be replaced with POST /api/v3/orderList.

Steps to reproduce Use the library to create an OCO order. Observe that it uses the deprecated POST /api/v3/order/oco endpoint. The order creation should fail or result in a warning about the deprecated endpoint.

alplabin commented 4 weeks ago

It has been updated in the latest release: https://github.com/binance/binance-connector-node/releases/tag/v3.4.1