chore(): Cleaned up naming and types

This commit is contained in:
Jerko J
2024-06-19 12:16:07 +02:00
parent 7a4ca13944
commit 6ecc0bd34d
5 changed files with 70 additions and 75 deletions

View File

@@ -1,62 +1,59 @@
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;
}
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 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;
}
export interface ExchangeBrokerSubAccountDepositRecordV5 {
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;
}