feat(): added Missing endpoints, added missing examples

This commit is contained in:
Jerko J
2024-08-28 11:58:54 +02:00
parent d02a81d0e5
commit 0ea5a797e2
19 changed files with 384 additions and 35 deletions

View File

@@ -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';

View File

@@ -207,8 +207,6 @@ export interface ConvertQuoteV5 {
toAmount: string;
expiredTime: string;
requestId: string;
paramType: string;
paramValue: string;
}
export interface ConvertStatusV5 {

View 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;
}

View File

@@ -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;
}
}