diff --git a/test/contract/private.write.test.ts b/test/contract/private.write.test.ts index c917f29..2145a58 100644 --- a/test/contract/private.write.test.ts +++ b/test/contract/private.write.test.ts @@ -89,8 +89,8 @@ describe('Private Contract REST API POST Endpoints', () => { await api.setMarginSwitch({ symbol, tradeMode: 1, - buyLeverage: '10', - sellLeverage: '10', + buyLeverage: '5', + sellLeverage: '5', }) ).toMatchObject({ retCode: API_ERROR_CODE.CONTRACT_MARGIN_MODE_NOT_MODIFIED, @@ -116,7 +116,7 @@ describe('Private Contract REST API POST Endpoints', () => { }); it('setLeverage()', async () => { - expect(await api.setLeverage(symbol, '10', '10')).toMatchObject({ + expect(await api.setLeverage(symbol, '5', '5')).toMatchObject({ retCode: API_ERROR_CODE.CONTRACT_SET_LEVERAGE_NOT_MODIFIED, }); }); diff --git a/test/usdc/perpetual/private.write.test.ts b/test/usdc/perpetual/private.write.test.ts index d4f0646..37f485c 100644 --- a/test/usdc/perpetual/private.write.test.ts +++ b/test/usdc/perpetual/private.write.test.ts @@ -78,7 +78,7 @@ describe('Private USDC Perp REST API POST Endpoints', () => { }); it('setLeverage()', async () => { - expect(await api.setLeverage(symbol, '10')).toMatchObject({ + expect(await api.setLeverage(symbol, '5')).toMatchObject({ retCode: API_ERROR_CODE.LEVERAGE_NOT_MODIFIED, }); });