From 5833d0679b3a4da41fe65b5e71efcc90af7e8f3f Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Sat, 25 Jan 2025 01:10:30 +0000 Subject: [PATCH] fix(): submit order example --- examples/apidoc/V5/Trade/place-order.js | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/examples/apidoc/V5/Trade/place-order.js b/examples/apidoc/V5/Trade/place-order.js index 1cba6bb..4669776 100644 --- a/examples/apidoc/V5/Trade/place-order.js +++ b/examples/apidoc/V5/Trade/place-order.js @@ -6,18 +6,31 @@ const client = new RestClientV5({ secret: 'apisecret', }); +// Submit a market order client .submitOrder({ category: 'spot', symbol: 'BTCUSDT', side: 'Buy', orderType: 'Market', - qty: '0.1', - price: '15600', - timeInForce: 'PostOnly', - orderLinkId: 'spot-test-postonly', - isLeverage: 0, - orderFilter: 'Order', + qty: '1', + }) + .then((response) => { + console.log(response); + }) + .catch((error) => { + console.error(error); + }); + +// Submit a limit order +client + .submitOrder({ + category: 'spot', + symbol: 'BTCUSDT', + side: 'Buy', + orderType: 'Limit', + qty: '1', + price: '55000', }) .then((response) => { console.log(response);