remove dead inverse method, add write tests, update read tests, add error enums used by tests

This commit is contained in:
tiagosiebler
2022-05-10 13:22:28 +01:00
parent c94b4d16ff
commit c6758b65cc
6 changed files with 285 additions and 90 deletions

View File

@@ -7,11 +7,9 @@ import {
} from './util/requestUtils';
import RequestWrapper from './util/requestWrapper';
import {
APIResponse,
APIResponseWithTime,
AssetExchangeRecordsReq,
CoinParam,
SymbolFromLimitParam,
SymbolInfo,
SymbolIntervalFromLimitParam,
SymbolLimitParam,
@@ -382,10 +380,6 @@ export class InverseClient extends BaseRestClient {
return this.getPrivate('v2/private/trade/closed-pnl/list', params);
}
setPositionMode(params: { symbol: string; mode: 0 | 3 }): GenericAPIResponse {
return this.requestWrapper.post('v2/private/position/switch-mode', params);
}
setSlTpPositionMode(params: {
symbol: string;
tp_sl_mode: 'Full' | 'Partial';