From bf937abad188b0aecdc22479a00e7449fc5f1943 Mon Sep 17 00:00:00 2001 From: Mikhail Gladchenko Date: Thu, 2 Feb 2023 14:59:42 +0000 Subject: [PATCH] Small type fix package.json version was updated to 0.16.7-rc.0 --- package.json | 2 +- src/types.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 610b55b..4f89879 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.16.6", + "version": "0.16.7-rc.0", "description": "Orion Protocol SDK", "main": "./lib/esm/index.js", "module": "./lib/esm/index.js", diff --git a/src/types.ts b/src/types.ts index 3c848de..c9fddfb 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,6 +1,7 @@ import BigNumber from 'bignumber.js'; import exchanges from './constants/exchanges'; import subOrderStatuses from './constants/subOrderStatuses'; +import positionStatuses from './constants/positionStatuses'; export type AssetPairUpdate = { minQty: number, @@ -26,7 +27,7 @@ export type Balance = { allowance: string, } -export type PositionStatus = 'SHORT' | 'LONG' | 'CLOSING' | 'LIQUIDATION' | 'ZERO'; +export type PositionStatus = typeof positionStatuses[number]; export type CFDBalance = { instrument: string,