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

tpslOrderPosition

Resolves one TP/SL child order id to the position it is bound to.

This is separate from positionTpslOrders, which lists the TP/SL order pairs bound to a position.

POST/infotype tpslOrderPosition

Resolve a TP/SL child order id back to the position it protects (order → position).

Request body
oidinteger · int64required

TP/SL child order id.

typestringrequired
Request example
curl -X POST https://rpc.txflow-testnet.xyz/info \
  -H "Content-Type: application/json" \
  -H "x-api-version: 2026-08-16" \
  -d '{
  "oid": 123456,
  "type": "tpslOrderPosition"
}'
Try it
POST https://rpc.txflow-testnet.xyz/info
Response · TpslOrderPositionResponse 200
codeinteger

`0` on success.

dataTpslOrderPositionResponse
assetstring
coinstring
entryPxstring
marginModestring
positionModestring
sidestring
szstring
successboolean

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

Response example
{
  "success": true,
  "code": 0,
  "data": {
    "asset": "4",
    "coin": "4",
    "entryPx": "0",
    "marginMode": "",
    "positionMode": "",
    "side": "",
    "sz": "0"
  }
}