From 400e86a7777ab5fcf776a1a47eeb3fab238f4707 Mon Sep 17 00:00:00 2001 From: William Date: Thu, 25 Apr 2024 17:26:07 +0200 Subject: [PATCH] Add `PositionStatusV5` and `PositionSideV5` types --- src/types/v5-shared.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/types/v5-shared.ts b/src/types/v5-shared.ts index 9e60a30..4677c9f 100644 --- a/src/types/v5-shared.ts +++ b/src/types/v5-shared.ts @@ -153,6 +153,16 @@ export type StopOrderTypeV5 = */ export type PositionIdx = 0 | 1 | 2; +/** + * Position status. + * + * - 'Normal' + * - 'Liq' in the liquidation progress + * - 'Adl' in the auto-deleverage progress + */ +export type PositionStatusV5 = 'Normal' | 'Liq' | 'Adl'; +export type PositionSideV5 = 'Buy' | 'Sell'; + export type OptionTypeV5 = 'Call' | 'Put'; /**