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,