feat(): Update per release notes as of 17th July, 2024

- added convert endpoints
- added examples for those endpoints
- minor param/response changes based on release notes
This commit is contained in:
Jerko J
2024-07-17 14:16:40 +02:00
parent 17be240141
commit 06476e6dd6
16 changed files with 297 additions and 10 deletions

View File

@@ -89,6 +89,8 @@ export interface FeeRateV5 {
export interface AccountInfoV5 {
unifiedMarginStatus: number;
marginMode: AccountMarginModeV5;
isMasterTrader: boolean;
spotHedgingStatus: string;
updatedTime: string;
}
@@ -134,5 +136,3 @@ export interface DCPInfoV5 {
dcpStatus: 'ON';
timeWindow: string;
}

View File

@@ -169,8 +169,74 @@ export interface WithdrawalRecordV5 {
updateTime: string;
}
export interface VaspEntityV5 {
vaspEntityId: string;
vaspName: string;
}
}
export interface ConvertCoinSpecV5 {
coin: string;
fullName: string;
icon: string;
iconNight: string;
accuracyLength: number;
coinType: string;
balance: string;
uBalance: string;
singleFromMinLimit: string;
singleFromMaxLimit: string;
disableFrom: boolean;
disableTo: boolean;
timePeriod: number;
singleToMinLimit: string;
singleToMaxLimit: string;
dailyFromMinLimit: string;
dailyFromMaxLimit: string;
dailyToMinLimit: string;
dailyToMaxLimit: string;
}
export interface ConvertQuoteV5 {
quoteTxId: string;
exchangeRate: string;
fromCoin: string;
fromCoinType: string;
toCoin: string;
toCoinType: string;
fromAmount: string;
toAmount: string;
expiredTime: string;
requestId: string;
}
export interface ConvertStatusV5 {
accountType: string;
exchangeTxId: string;
userId: string;
fromCoin: string;
fromCoinType: string;
toCoin: string;
toCoinType: string;
fromAmount: string;
toAmount: string;
exchangeStatus: 'init' | 'processing' | 'success' | 'failure';
extInfo: object;
convertRate: string;
createdAt: string;
}
export interface ConvertHistoryRecordV5 {
accountType: string;
exchangeTxId: string;
userId: string;
fromCoin: string;
fromCoinType: string;
toCoin: string;
toCoinType: string;
fromAmount: string;
toAmount: string;
exchangeStatus: 'init' | 'processing' | 'success' | 'failure';
extInfo: object;
convertRate: string;
createdAt: string;
}

View File

@@ -1,6 +1,6 @@
interface EarningDetailV5 {
userId: string;
bizType: 'SPOT' | 'DERIVATIVES' | 'OPTIONS';
bizType: 'SPOT' | 'DERIVATIVES' | 'OPTIONS' | 'CONVERT';
symbol: string;
coin: string;
earning: string;
@@ -20,6 +20,7 @@ export interface ExchangeBrokerEarningResultV5 {
spot: TotalEarningCategoryV5[];
derivatives: TotalEarningCategoryV5[];
options: TotalEarningCategoryV5[];
convert: TotalEarningCategoryV5[];
total: TotalEarningCategoryV5[];
};
details: EarningDetailV5[];
@@ -36,6 +37,7 @@ export interface ExchangeBrokerAccountInfoV5 {
markupFeeRebateRate: {
spot: string;
derivatives: string;
convert: string;
};
ts: string;
}

View File

@@ -75,6 +75,20 @@ export interface LinearInverseInstrumentInfoV5 {
copyTrading: CopyTradingV5;
upperFundingRate: string;
lowerFundingRate: string;
isPreListing: boolean;
preListingInfo: {
curAuctionPhase: string;
phases: {
phase: string;
startTime: string;
endTime: string;
}[];
auctionFeeInfo: {
auctionFeeRate: string;
takerFeeRate: string;
makerFeeRate: string;
};
} | null;
}
export interface OptionInstrumentInfoV5 {
@@ -170,6 +184,9 @@ export interface TickerLinearInverseV5 {
bid1Price: string;
ask1Price: string;
bid1Size: string;
preOpenPrice: string;
preQty: string;
curPreListingPhase: string;
}
export interface TickerOptionV5 {