Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

positionTpslOrders

Lists the pending take-profit / stop-loss order pairs bound to one position, optionally filtered by close mode.

This is separate from tpslOrderPosition, which resolves one TP/SL child order id back to its bound position.

POST/infotype positionTpslOrders

Show the TP/SL pairs bound to one open position (position row → its TP/SL).

Request body
assetstringrequired

Instrument external id (numeric string) — the `index` value from `perpMeta`.

marginModestringrequired
"cross""isolated"
sidestringrequired
"long""short"
typestringrequired
userstringrequired

User address.

closeModestringoptional

Optional close-mode filter. Empty or omitted returns both modes.

"entire""partial"""
Request example
curl -X POST https://rpc.txflow-testnet.xyz/info \
  -H "Content-Type: application/json" \
  -H "x-api-version: 2026-08-16" \
  -d '{
  "asset": "4",
  "closeMode": "entire",
  "marginMode": "cross",
  "side": "long",
  "type": "positionTpslOrders",
  "user": "0x0000000000000000000000000000000000000000"
}'
Try it
POST https://rpc.txflow-testnet.xyz/info
Response 200
codeinteger

`0` on success.

dataTpslOrdersResponse[]
assetstring
coinstring
createTimeinteger · int64
leverageinteger · int32
marginModestring
positionModestring
quantitystring
reduceOnlyboolean
sidestring
slOidstring
slOrderPricestring
slOrderTypestring
slTriggerPricestring
tpOidstring
tpOrderPricestring
tpOrderTypestring
tpTriggerPricestring
cloidstringnullable
successboolean

`false` on error, with `code` set and the text in `message` instead of `data`.

Response example
{
  "success": true,
  "code": 0,
  "data": [
    {
      "asset": "4",
      "cloid": "",
      "coin": "4",
      "createTime": 1700000000000,
      "leverage": 0,
      "marginMode": "",
      "positionMode": "",
      "quantity": "0",
      "reduceOnly": false,
      "side": "",
      "slOid": "",
      "slOrderPrice": "0",
      "slOrderType": "",
      "slTriggerPrice": "0",
      "tpOid": "",
      "tpOrderPrice": "0",
      "tpOrderType": "",
      "tpTriggerPrice": "0"
    }
  ]
}