feat(): Added all missing endpoints

This commit is contained in:
Jerko J
2024-06-18 20:45:01 +02:00
parent f493c90ecb
commit 88a6447614
13 changed files with 453 additions and 8 deletions

View File

@@ -11,3 +11,4 @@ export * from './v5-position';
export * from './v5-trade';
export * from './v5-user';
export * from './v5-spot-leverage-token';
export * from './v5-broker';

View File

@@ -125,3 +125,11 @@ export interface RepayLiabilityResultV5 {
coin: string;
repaymentQty: string;
}
export interface DCPInfoV5 {
product: 'SPOT' | 'DERIVATIVES' | 'OPTIONS';
dcpStatus: 'ON';
timeWindow: string;
}

View File

@@ -168,3 +168,9 @@ export interface WithdrawalRecordV5 {
createTime: string;
updateTime: string;
}
export interface VaspEntityV5 {
vaspEntityId: string;
vaspName: string;
}

View File

@@ -0,0 +1,62 @@
interface EarningDetailV5 {
userId: string;
bizType: 'SPOT' | 'DERIVATIVES' | 'OPTIONS';
symbol: string;
coin: string;
earning: string;
markupEarning: string;
baseFeeEarning: string;
orderId: string;
execTime: string;
}
interface TotalEarningCategoryV5 {
coin: string;
earning: string;
}
export interface ExchangeBrokerEarningResultV5 {
totalEarningCat: {
spot: TotalEarningCategoryV5[];
derivatives: TotalEarningCategoryV5[];
options: TotalEarningCategoryV5[];
total: TotalEarningCategoryV5[];
};
details: EarningDetailV5[];
nextPageCursor: string;
}
export interface ExchangeBrokerAccountInfoV5 {
subAcctQty: string;
maxSubAcctQty: string;
baseFeeRebateRate: {
spot: string;
derivatives: string;
};
markupFeeRebateRate: {
spot: string;
derivatives: string;
};
ts: string;
}
export interface SubAccountDepositRecordV5 {
subMemberId: string;
coin: string;
chain: string;
amount: string;
txID: string;
status: number;
toAddress: string;
tag: string;
depositFee: string;
successAt: string;
confirmations: string;
txIndex: string;
blockHash: string;
batchReleaseLimit: string;
depositType: string;
}

View File

@@ -129,3 +129,28 @@ export interface ClosedPnLV5 {
createdTime: string;
updatedTime: string;
}
export interface MovePositionResultV5 {
blockTradeId: string;
status: 'Processing' | 'Rejected';
rejectParty: '' | 'Taker' | 'Maker' | 'bybit';
}
export interface MovePositionHistoryV5 {
blockTradeId: string;
category: 'linear' | 'spot' | 'option';
orderId: string;
userId: number;
symbol: string;
side: 'Buy' | 'Sell';
price: string;
qty: string;
execFee: string;
status: 'Processing' | 'Filled' | 'Rejected';
execId: string;
resultCode: number;
resultMessage: string;
createdAt: number;
updatedAt: number;
rejectParty: '' | 'Taker' | 'Maker' | 'bybit';
}

View File

@@ -68,3 +68,24 @@ export interface SpotLeveragedTokenOrderHistoryV5 {
valueCoin: string;
serialNo: string;
}
export interface VIPMarginDataV5 {
vipCoinList: {
list: {
borrowable: boolean;
collateralRatio: string;
currency: string;
hourlyBorrowRate: string;
liquidationOrder: string;
marginCollateral: boolean;
maxBorrowingAmount: string;
}[];
vipLevel: string;
}[];
}
export interface SpotMarginStateV5 {
spotLeverage: string;
spotMarginMode: '1' | '0';
effectiveLeverage: string;
}

View File

@@ -76,3 +76,21 @@ export interface SubAccountAllApiKeysResultV5 {
}[],
nextPageCursor: string;
}
export interface AffiliateUserInfoV5 {
uid: string;
vipLevel: string;
takerVol30Day: string;
makerVol30Day: string;
tradeVol30Day: string;
depositAmount30Day: string;
takerVol365Day: string;
makerVol365Day: string;
tradeVol365Day: string;
depositAmount365Day: string;
totalWalletBalance: '1' | '2' | '3' | '4';
depositUpdateTime: string;
volUpdateTime: string;
KycLevel: 0 | 1 | 2;
}