add v5 asset rest endpoints
This commit is contained in:
@@ -9,6 +9,7 @@ export * from './usdc-options';
|
||||
export * from './usdc-shared';
|
||||
export * from './unified-margin';
|
||||
export * from './v5-account';
|
||||
export * from './v5-asset';
|
||||
export * from './v5-market';
|
||||
export * from './v5-position';
|
||||
export * from './v5-trade';
|
||||
|
||||
129
src/types/request/v5-asset.ts
Normal file
129
src/types/request/v5-asset.ts
Normal file
@@ -0,0 +1,129 @@
|
||||
import { AccountTypeV5, CategoryV5 } from '../v5-shared';
|
||||
|
||||
export interface GetCoinExchangeRecordParamsV5 {
|
||||
fromCoin?: string;
|
||||
toCoin?: string;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetDeliveryRecordParamsV5 {
|
||||
category: CategoryV5;
|
||||
symbol?: string;
|
||||
expDate?: string;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetSettlementRecordParamsV5 {
|
||||
category: CategoryV5;
|
||||
symbol?: string;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetAssetInfoParamsV5 {
|
||||
accountType: AccountTypeV5;
|
||||
coin?: string;
|
||||
}
|
||||
|
||||
export interface GetAllCoinsBalanceParamsV5 {
|
||||
memberId?: string;
|
||||
accountType: AccountTypeV5;
|
||||
coin?: string;
|
||||
withBonus?: number;
|
||||
}
|
||||
|
||||
export interface GetAccountCoinBalanceParamsV5 {
|
||||
memberId?: string;
|
||||
accountType: AccountTypeV5;
|
||||
coin: string;
|
||||
withBonus?: number;
|
||||
}
|
||||
|
||||
export interface GetInternalTransferParamsV5 {
|
||||
transferId?: string;
|
||||
coin?: string;
|
||||
status?: string;
|
||||
startTime?: number;
|
||||
endTime?: number;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface UniversalTransferParamsV5 {
|
||||
transferId: string;
|
||||
coin: string;
|
||||
amount: string;
|
||||
fromMemberId: number;
|
||||
toMemberId: number;
|
||||
fromAccountType: AccountTypeV5;
|
||||
toAccountType: AccountTypeV5;
|
||||
}
|
||||
|
||||
export interface GetUniversalTransferRecordsParamsV5 {
|
||||
transferId?: string;
|
||||
coin?: string;
|
||||
status?: string;
|
||||
startTime?: number;
|
||||
endTime?: number;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface UniversalTransferRecordV5 {
|
||||
transferId: string;
|
||||
coin: string;
|
||||
amount: string;
|
||||
fromMemberId: string;
|
||||
toMemberId: string;
|
||||
fromAccountType: AccountTypeV5;
|
||||
toAccountType: AccountTypeV5;
|
||||
timestamp: string;
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface GetAllowedDepositCoinInfoParamsV5 {
|
||||
coin?: string;
|
||||
chain?: string;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetDepositRecordParamsV5 {
|
||||
coin?: string;
|
||||
startTime?: number;
|
||||
endTime?: number;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetSubAccountDepositRecordParamsV5 {
|
||||
subMemberId: string;
|
||||
coin?: string;
|
||||
startTime?: number;
|
||||
endTime?: number;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetWithdrawalRecordsParamsV5 {
|
||||
withdrawID?: string;
|
||||
coin?: string;
|
||||
withdrawType?: number;
|
||||
startTime?: number;
|
||||
endTime?: number;
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface WithdrawParamsV5 {
|
||||
coin: string;
|
||||
chain: string;
|
||||
address: string;
|
||||
tag?: string;
|
||||
amount: string;
|
||||
timestamp: number;
|
||||
forceChain?: number;
|
||||
accountType?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user