Get a position and its settlements
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.testnet.tayho.io/v1/positions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.testnet.tayho.io/v1/positions/{id} \
--header 'X-API-Key: <api-key>'{
"data": {
"position": {
"id": "<string>",
"marginWad": "<string>",
"marketId": "<string>",
"qWad": "<string>",
"status": "<string>",
"trader": "<string>",
"updatedBlock": "<string>"
},
"settlements": [
{
"blockNumber": "<string>",
"blockTimestamp": "<string>",
"id": "<string>",
"logIndex": 1,
"positionId": "<string>",
"trader": "<string>",
"transactionHash": "<string>",
"pnlWad": "<string>"
}
]
}
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}Get a position and its settlements
GET
/
v1
/
positions
/
{id}
Get a position and its settlements
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.testnet.tayho.io/v1/positions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.testnet.tayho.io/v1/positions/{id} \
--header 'X-API-Key: <api-key>'{
"data": {
"position": {
"id": "<string>",
"marginWad": "<string>",
"marketId": "<string>",
"qWad": "<string>",
"status": "<string>",
"trader": "<string>",
"updatedBlock": "<string>"
},
"settlements": [
{
"blockNumber": "<string>",
"blockTimestamp": "<string>",
"id": "<string>",
"logIndex": 1,
"positionId": "<string>",
"trader": "<string>",
"transactionHash": "<string>",
"pnlWad": "<string>"
}
]
}
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"error": "<string>",
"code": "<string>",
"requestId": "<string>"
}Last modified on July 23, 2026
⌘I