Skip to Content
Symmio Trading-SDK — the SDK surface for builders on HyperEVM
CoreTP/SLValidateTpSlInputs

ValidateTpSlInputs

Inputs to validateTpSl. openPrice is the price the conditional order’s distance is measured against — the quote’s open price for a closed position, or the live mark price when validating against an open position (set isOpenPosition: true so error text reads accordingly).

Fields

openPricestring

Reference price for the distance/spread rules (decimal string).

positionTypePositionType

Quote direction (LONG / SHORT).

pricePrecisionnumber

Market price precision — only used to render the “should be above/below X” hint.

Live handler /configs/ data.

takeProfitPricestringoptional

TP trigger price (decimal string). Omit when only setting an SL.

stopLossPricestringoptional

SL trigger price (decimal string). Omit when only setting a TP.

isOpenPositionbooleanoptional

When true, error text says “current price” instead of “open price”.

Last updated on