console.log order id

master
TZGyn 10 months ago
parent 2c47851ac2
commit fb7aeb5daa
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -79,7 +79,7 @@ export const POST = async ({ locals, request }) => {
console.log({ qty, takeProfit, stopLoss }) console.log({ qty, takeProfit, stopLoss })
await client.submitOrder({ const order = await client.submitOrder({
category: 'linear', category: 'linear',
symbol, symbol,
side, side,
@ -88,6 +88,8 @@ export const POST = async ({ locals, request }) => {
takeProfit, takeProfit,
stopLoss, stopLoss,
}) })
console.log(order.result.orderId)
} catch (error) { } catch (error) {
console.log('Error', error) console.log('Error', error)
} finally { } finally {

Loading…
Cancel
Save