portfolio
Body
Request envelope for read-only actions submitted to /exchange.
Authorizes private queries for balances, positions, orders, portfolio, fees, and referrals.
expiresAfterinteger · nullableOptional
Optional expiry for signed query requests.
nonceinteger · int64Required
Request nonce (Unix timestamp in milliseconds)
vaultAddressstring · nullableOptional
Optional vault address for vault operations
Responses
200
Request successful. Response format depends on the requested action.
application/json
itemsarrayOptional
400
Request body was not valid JSON
text/plain
422
JSON body did not match a supported exchange schema
text/plain
500
Internal server error
application/json
post/exchange
POST /exchange HTTP/1.1
Host: api.hyperlink.xyz
Content-Type: application/json
Accept: */*
Content-Length: 123
{
"action": {
"type": "portfolio"
},
"expiresAfter": null,
"nonce": 1,
"signature": {
"r": "text",
"s": "text",
"v": 1
},
"vaultAddress": null
}[
[
"day",
{
"accountValueHistory": [
[
1789329600000,
"1000.0"
],
[
1789330500000,
"1010.0"
]
],
"pnlHistory": [
[
1789329600000,
"0.0"
],
[
1789330500000,
"10.0"
]
],
"vlm": "2500.0"
}
]
]Last updated