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:
@@ -124,3 +124,31 @@ export interface WithdrawParamsV5 {
|
||||
forceChain?: number;
|
||||
accountType?: 'SPOT' | 'FUND';
|
||||
}
|
||||
|
||||
export interface ConvertCoinsParamsV5 {
|
||||
coin?: string;
|
||||
side?: number;
|
||||
accountType:
|
||||
| 'eb_convert_funding'
|
||||
| 'eb_convert_uta'
|
||||
| 'eb_convert_spot'
|
||||
| 'eb_convert_contract'
|
||||
| 'eb_convert_inverse';
|
||||
}
|
||||
|
||||
export interface RequestConvertQuoteParamsV5 {
|
||||
fromCoin: string;
|
||||
toCoin: string;
|
||||
fromCoinType?: string;
|
||||
toCoinType?: string;
|
||||
requestCoin: string;
|
||||
requestAmount: string;
|
||||
accountType: 'eb_convert_funding' | 'eb_convert_uta' | 'eb_convert_spot' | 'eb_convert_contract' | 'eb_convert_inverse';
|
||||
requestId?: string;
|
||||
}
|
||||
|
||||
export interface GetConvertHistoryParamsV5 {
|
||||
accountType?: string;
|
||||
index?: number;
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export interface GetExchangeBrokerEarningsParamsV5 {
|
||||
bizType?: 'SPOT' | 'DERIVATIVES' | 'OPTIONS';
|
||||
bizType?: 'SPOT' | 'DERIVATIVES' | 'OPTIONS' | 'CONVERT';
|
||||
begin?: string;
|
||||
end?: string;
|
||||
uid?: string;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -11,6 +11,7 @@ export type InstrumentStatusV5 =
|
||||
| 'Settling'
|
||||
| 'Delivering'
|
||||
| 'Closed';
|
||||
|
||||
|
||||
export type MarginTradingV5 = 'none' | 'both' | 'utaOnly' | 'normalSpotOnly';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user