feat(): added Missing endpoints, added missing examples
This commit is contained in:
@@ -35,3 +35,28 @@ export interface GetPreUpgradeClosedPnlParamsV5 {
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetPreUpgradeTransactionLogParamsV5 {
|
||||
category: 'linear' | 'option';
|
||||
baseCoin?: string;
|
||||
type?: string;
|
||||
startTime?: number;
|
||||
endTime?: number;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetPreUpgradeOptionDeliveryRecordParamsV5 {
|
||||
category: 'option';
|
||||
symbol?: string;
|
||||
expDate?: string;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetPreUpgradeUSDCSessionParamsV5 {
|
||||
category: 'linear';
|
||||
symbol?: string;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
@@ -12,3 +12,4 @@ export * from './v5-trade';
|
||||
export * from './v5-user';
|
||||
export * from './v5-spot-leverage-token';
|
||||
export * from './v5-broker';
|
||||
export * from './v5-preupgrade';
|
||||
|
||||
@@ -207,8 +207,6 @@ export interface ConvertQuoteV5 {
|
||||
toAmount: string;
|
||||
expiredTime: string;
|
||||
requestId: string;
|
||||
paramType: string;
|
||||
paramValue: string;
|
||||
}
|
||||
|
||||
export interface ConvertStatusV5 {
|
||||
|
||||
42
src/types/response/v5-preupgrade.ts
Normal file
42
src/types/response/v5-preupgrade.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
export interface PreupgradeTransactionLog {
|
||||
symbol: string;
|
||||
category: string;
|
||||
side: 'Buy' | 'Sell' | 'None';
|
||||
transactionTime: string;
|
||||
type: string;
|
||||
qty: string;
|
||||
size: string;
|
||||
currency: 'USDC' | 'USDT' | 'BTC' | 'ETH';
|
||||
tradePrice: string;
|
||||
funding: string;
|
||||
fee: string;
|
||||
cashFlow: string;
|
||||
change: string;
|
||||
cashBalance: string;
|
||||
feeRate: string;
|
||||
bonusChange: string;
|
||||
tradeId: string;
|
||||
orderId: string;
|
||||
orderLinkId: string;
|
||||
}
|
||||
|
||||
export interface PreupgradeOptionsDelivery {
|
||||
deliveryTime: number;
|
||||
symbol: string;
|
||||
side: 'Buy' | 'Sell';
|
||||
position: string;
|
||||
deliveryPrice: string;
|
||||
strike: string;
|
||||
fee: string;
|
||||
deliveryRpl: string;
|
||||
}
|
||||
|
||||
export interface PreupgradeUSDCSessionSettlement {
|
||||
symbol: string;
|
||||
side: 'Buy' | 'Sell';
|
||||
size: string;
|
||||
sessionAvgPrice: string;
|
||||
markPrice: string;
|
||||
realisedPnl: string;
|
||||
createdTime: string;
|
||||
}
|
||||
@@ -22,6 +22,7 @@ export interface SubMemberV5 {
|
||||
username: string;
|
||||
memberType: number;
|
||||
status: number;
|
||||
accountMode: number;
|
||||
remark: string;
|
||||
}
|
||||
export type ApiKeyType = 1 | 2;
|
||||
@@ -73,11 +74,10 @@ export interface SubAccountAllApiKeysResultV5 {
|
||||
readOnly: 0 | 1;
|
||||
deadlineDay?: number;
|
||||
flag: string;
|
||||
}[],
|
||||
}[];
|
||||
nextPageCursor: string;
|
||||
}
|
||||
|
||||
|
||||
export interface AffiliateUserInfoV5 {
|
||||
uid: string;
|
||||
vipLevel: string;
|
||||
@@ -93,4 +93,4 @@ export interface AffiliateUserInfoV5 {
|
||||
depositUpdateTime: string;
|
||||
volUpdateTime: string;
|
||||
KycLevel: 0 | 1 | 2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user