feat(#261): add new pre-upgrade endpoints
This commit is contained in:
@@ -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';
|
||||
|
||||
37
src/types/request/v5-pre-upgrade.ts
Normal file
37
src/types/request/v5-pre-upgrade.ts
Normal 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;
|
||||
}
|
||||
@@ -94,6 +94,7 @@ export interface ExecutionV5 {
|
||||
indexPrice: string;
|
||||
underlyingPrice?: string;
|
||||
blockTradeId?: string;
|
||||
closedSize?: string;
|
||||
}
|
||||
|
||||
export interface ClosedPnLV5 {
|
||||
|
||||
Reference in New Issue
Block a user