Introduce getSubAccountAllApiKeys, update deleteSubApiKey

This commit is contained in:
Karim Sakhibgareev
2024-06-03 15:29:49 +01:00
parent 991e76207e
commit 152a1d6427
6 changed files with 60 additions and 8 deletions

View File

@@ -273,6 +273,16 @@ describe('Private READ V5 REST API Endpoints', () => {
...successResponseObjectV3(),
});
});
it('getSubAccountAllApiKeys()', async () => {
expect(
await api.getSubAccountAllApiKeys({subMemberId: 'fakeid'})
).toMatchObject({
// ...successResponseObjectV3(),
// Expected, since sub account ID is fake
retCode: API_ERROR_CODE.PARAMS_MISSING_OR_WRONG,
});
});
});
describe('Spot Leverage Token APIs', () => {