chore(v4.1.15): marked removed functions for deprecation, updated tests

This commit is contained in:
JJ-Cro
2025-07-14 12:01:41 +02:00
parent e607de7f7d
commit 331756d47e
4 changed files with 13 additions and 38 deletions

View File

@@ -432,41 +432,6 @@ describe('Private WRITE V5 REST API Endpoints', () => {
});
});
describe('Spot Leverage Token APIs', () => {
let leverageToken: LeverageTokenInfoV5;
beforeAll(async () => {
const tokenResult = await api.getLeveragedTokenInfo();
leverageToken = tokenResult.result.list[0];
});
it('purchaseSpotLeveragedToken()', async () => {
expect(
await api.purchaseSpotLeveragedToken({
amount: '100',
ltCoin: leverageToken.ltCoin,
}),
).toMatchObject({
// ...successResponseObjectV3(),
retCode: 175025,
// retMsg: '',
});
});
it('redeemSpotLeveragedToken()', async () => {
expect(
await api.redeemSpotLeveragedToken({
quantity: '100',
ltCoin: leverageToken.ltCoin,
}),
).toMatchObject({
// ...successResponseObjectV3(),
retCode: 175025,
// retMsg: '',
});
});
});
describe('Spot Margin APIs', () => {
it('toggleSpotMarginTrade()', async () => {
expect(await api.toggleSpotMarginTrade('1')).toMatchObject({