add e2e tests for v5 REST client. Fix competing tests.

This commit is contained in:
tiagosiebler
2023-02-20 16:19:56 +00:00
parent 9e2e105961
commit eeb0d63f0d
10 changed files with 498 additions and 27 deletions

View File

@@ -71,18 +71,6 @@ export interface GetUniversalTransferRecordsParamsV5 {
cursor?: string;
}
export interface UniversalTransferRecordV5 {
transferId: string;
coin: string;
amount: string;
fromMemberId: string;
toMemberId: string;
fromAccountType: AccountTypeV5;
toAccountType: AccountTypeV5;
timestamp: string;
status: string;
}
export interface GetAllowedDepositCoinInfoParamsV5 {
coin?: string;
chain?: string;
@@ -123,7 +111,6 @@ export interface WithdrawParamsV5 {
address: string;
tag?: string;
amount: string;
timestamp: number;
forceChain?: number;
accountType?: 'SPOT' | 'FUND';
}

View File

@@ -1,4 +1,10 @@
import { CategoryV5, ExecTypeV5, PositionIdx, TPSLModeV5 } from '../v5-shared';
import {
CategoryV5,
ExecTypeV5,
OrderTriggerByV5,
PositionIdx,
TPSLModeV5,
} from '../v5-shared';
export interface PositionInfoParamsV5 {
category: CategoryV5;
@@ -50,8 +56,8 @@ export interface SetTradingStopParamsV5 {
takeProfit?: string;
stopLoss?: string;
trailingStop?: string;
tpTriggerBy?: string;
slTriggerBy?: string;
tpTriggerBy?: OrderTriggerByV5;
slTriggerBy?: OrderTriggerByV5;
activePrice?: string;
tpSize?: string;
slSize?: string;

View File

@@ -79,6 +79,18 @@ export interface InternalTransferRecordV5 {
status: string;
}
export interface UniversalTransferRecordV5 {
transferId: string;
coin: string;
amount: string;
fromMemberId: string;
toMemberId: string;
fromAccountType: AccountTypeV5;
toAccountType: AccountTypeV5;
timestamp: string;
status: string;
}
export interface AllowedDepositCoinInfoV5 {
coin: string;
chain: string;