add v5 account rest endpoints

This commit is contained in:
tiagosiebler
2023-02-16 12:57:49 +00:00
parent 71c6c9b6a5
commit 60a7aa0d9e
6 changed files with 313 additions and 0 deletions

View File

@@ -11,6 +11,28 @@ export type PositionIdx = 0 | 1 | 2;
*/
export type TradeModeV5 = 0 | 1;
export type TPSLModeV5 = 'Full' | 'Partial';
export type AccountMarginModeV5 = 'REGULAR_MARGIN' | 'PORTFOLIO_MARGIN';
export type AccountTypeV5 =
| 'CONTRACT'
| 'SPOT'
| 'INVESTMENT'
| 'OPTION'
| 'UNIFIED'
| 'FUND';
export type TransactionTypeV5 =
| 'TRANSFER_IN'
| 'TRANSFER_OUT'
| 'TRADE'
| 'SETTLEMENT'
| 'DELIVERY'
| 'LIQUIDATION'
| 'BONUS'
| 'FEE_REFUND'
| 'INTEREST'
| 'CURRENCY_BUY'
| 'CURRENCY_SELL';
export interface CategoryCursorListV5<T extends unknown[]> {
category: CategoryV5;