Skip to main content
POST
Open Positions

Authorizations

X-TXC-APIKEY
string
header
required

API Key authentication for private endpoints.

Required headers:

  • X-TXC-APIKEY: API key
  • X-TXC-PAYLOAD: Base64 encoded JSON payload
  • X-TXC-SIGNATURE: HMAC SHA512 signature

Body

application/json
market
string

Filter by specific market. For example: BTC_USDT

If not specified, returns all open positions.

Example:

"BTC_USDT"

request
string

Request signature

Example:

"{{request}}"

nonce
string

Unique request identifier

Example:

"{{nonce}}"

Response

Successful response - returns array of open positions

positionId
integer

Unique position identifier

Example:

527

market
string

Market name

Example:

"BTC_USDT"

amount
string

Position amount

Example:

"0.1"

basePrice
string

Base price of position

Example:

"45658.349"

liqPrice
string | null

Liquidation price according to current state of position

Example:

"40000.00"

pnl
string

Unrealized profit and loss in money

Example:

"-168.42"

pnlPercent
string

Unrealized profit and loss in percentage

Example:

"-0.43"

margin
string

Amount of funds in open position money

Example:

"8316.74"

freeMargin
string

Free funds for trading

Example:

"619385.67"

funding
string

Funding that will be paid on next position stage change

Example:

"0"

unrealizedPnl
string

Unrealized profit and loss

Example:

"0.0019142920201966"

positionSide
enum<string>

Position side

Available options:
LONG,
SHORT,
BOTH
Example:

"LONG"

openDate
number

Date of position opening in Unix timestamp format

Example:

1651568067.789679

modifyDate
number

Date of position modifying (current event) in Unix timestamp format

Example:

1651568067.789679

liquidationPrice
string | null

Liquidation price according to current state of position

Example:

null

liquidationState
enum<string> | null

State of liquidation

Available options:
margin_call,
liquidation
Example:

null

tpsl
object | null

Take profit and stop loss configuration

unrealizedFunding
string

Funding that will be paid on next position stage change

Example:

"0.0019142920201966"