ConstantsUtils
Internal library for important constants commonly used in many places
P_10
MAX_PNL_P
SL_LIQ_BUFFER_P
LEGACY_LIQ_THRESHOLD_P
MIN_LIQ_THRESHOLD_P
MAX_OPEN_NEGATIVE_PNL_P
MAX_LIQ_SPREAD_P
DEFAULT_MAX_CLOSING_SLIPPAGE_P
getMarketOrderTypes
getPendingOpenOrderType
Returns pending order type (market open/limit open/stop open) for a trade type (trade/limit/stop)
Parameters
Name
Type
Description
_tradeType
enum ITradingStorage.TradeType
the trade type
isOrderTypeMarket
Returns true if order type is market
Parameters
Name
Type
Description
_orderType
enum ITradingStorage.PendingOrderType
order type