For the complete documentation index, see llms.txt. This page is also available as Markdown.

portfolio

portfolio

post
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
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