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

userFunding

userFunding

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

Funding history entry in Hyperliquid's HTTP userFunding shape. WebSocket userFundings entries are flat: { time, coin, usdc, szi, fundingRate }.

hashstringRequired

The 32-byte zero hash in HyperLink responses, as in Hyperliquid funding history; not a unique ID or settlement proof.

timeinteger · int64Required

Funding timestamp in milliseconds.

post/exchange
POST /exchange HTTP/1.1
Host: api.hyperlink.xyz
Content-Type: application/json
Accept: */*
Content-Length: 157

{
  "action": {
    "endTime": null,
    "startTime": null,
    "type": "userFunding"
  },
  "expiresAfter": null,
  "nonce": 1,
  "signature": {
    "r": "text",
    "s": "text",
    "v": 1
  },
  "vaultAddress": null
}
[
  {
    "time": 1789329600000,
    "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "delta": {
      "type": "funding",
      "coin": "ETH",
      "usdc": "-0.5",
      "szi": "1.0",
      "fundingRate": "0.0001",
      "nSamples": null
    }
  }
]

Last updated