We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ca123d commit 51b8abeCopy full SHA for 51b8abe
1 file changed
test/orders.js
@@ -114,12 +114,16 @@ const main = () => {
114
})
115
116
test('[ORDERS] orderTest - STOP_LOSS order', async t => {
117
+ const currentPrice = await getCurrentPrice()
118
+ // Stop 5% below market
119
+ const stopPrice = Math.floor(currentPrice * 0.95)
120
+
121
const result = await client.orderTest({
122
symbol: 'BTCUSDT',
123
side: 'SELL',
124
type: 'STOP_LOSS',
125
quantity: 0.001,
- stopPrice: 25000,
126
+ stopPrice,
127
recvWindow: 60000,
128
129
0 commit comments