Skip to content

Commit bea5647

Browse files
committed
add test
1 parent 01d307a commit bea5647

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/binance-class-static.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,12 @@ describe( 'Static tests', async function () {
305305

306306
})
307307

308+
309+
it( 'futures ser leverage', async function ( ) {
310+
await binance.futuresLeverage( 'BTCUSDT', 5 )
311+
assert.isTrue( interceptedUrl.startsWith('https://fapi.binance.com/fapi/v1/leverage?symbol=BTCUSDT&leverage=5' ))
312+
})
313+
308314
it( 'delivery MarketBuy', async function ( ) {
309315
await binance.deliveryOrder( 'MARKET', 'BUY', 'BTCUSD_PERP', 0.1 )
310316
assert.isTrue( interceptedUrl.startsWith('https://dapi.binance.com/dapi/v1/order' ))

0 commit comments

Comments
 (0)