feat(#261): add new pre-upgrade endpoints

This commit is contained in:
tiagosiebler
2023-06-08 10:52:18 +01:00
parent 05d63839da
commit 1577764392
4 changed files with 88 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ export * from './v5-account';
export * from './v5-asset';
export * from './v5-market';
export * from './v5-position';
export * from './v5-pre-upgrade';
export * from './v5-trade';
export * from './v5-user';
export * from './v5-spot-leverage-token';

View File

@@ -0,0 +1,37 @@
import { ExecTypeV5 } from '../v5-shared';
export interface GetPreUpgradeOrderHistoryParamsV5 {
category: 'linear' | 'inverse';
symbol?: string;
baseCoin?: string;
orderId?: string;
orderLinkId?: string;
orderFilter?: 'Order' | 'StopOrder';
orderStatus?: string;
startTime?: number;
endTime?: number;
limit?: number;
cursor?: string;
}
export interface GetPreUpgradeTradeHistoryParamsV5 {
category: 'linear' | 'inverse';
symbol?: string;
orderId?: string;
orderLinkId?: string;
baseCoin?: string;
startTime?: number;
endTime?: number;
execType?: ExecTypeV5;
limit?: number;
cursor?: string;
}
export interface GetPreUpgradeClosedPnlParamsV5 {
category: 'linear' | 'inverse';
symbol: string;
startTime?: number;
endTime?: number;
limit?: number;
cursor?: string;
}

View File

@@ -94,6 +94,7 @@ export interface ExecutionV5 {
indexPrice: string;
underlyingPrice?: string;
blockTradeId?: string;
closedSize?: string;
}
export interface ClosedPnLV5 {