add position v5 rest apis

This commit is contained in:
tiagosiebler
2023-02-16 12:25:25 +00:00
parent 47e1255159
commit 71c6c9b6a5
4 changed files with 276 additions and 6 deletions

View File

@@ -2,10 +2,15 @@ export type CategoryV5 = 'spot' | 'linear' | 'inverse' | 'option';
export type OrderFilterV5 = 'Order' | 'tpslOrder';
export type OrderSideV5 = 'Buy' | 'Sell';
export type OrderTypeV5 = 'Market' | 'Limit';
export type OrderTimeInForceV5 = 'GTC' | 'IOC' | 'FOK' | 'PostOnly';
export type OrderTriggerByV5 = 'LastPrice' | 'IndexPrice' | 'MarkPrice';
export type OrderTypeV5 = 'Market' | 'Limit';
export type PositionIdx = 0 | 1 | 2;
/**
* Trade mode. 0: cross-margin, 1: isolated margin
*/
export type TradeModeV5 = 0 | 1;
export type TPSLModeV5 = 'Full' | 'Partial';
export interface CategoryCursorListV5<T extends unknown[]> {
category: CategoryV5;