> For the complete documentation index, see [llms.txt](https://docs.hyperlink.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperlink.xyz/api/exchange-methods/activeassetdata.md).

# activeAssetData

## POST /exchange

> activeAssetData

```json
{"openapi":"3.1.0","info":{"title":"Hyperlink Exchange - activeAssetData","version":"1.0.0"},"tags":[{"name":"activeAssetData"}],"servers":[{"url":"https://api.hyperlink.xyz","description":"Mainnet"},{"url":"https://api.hyperlink-testnet.xyz","description":"Testnet"},{"url":"http://localhost:8080","description":"Local development"}],"paths":{"/exchange":{"post":{"tags":["activeAssetData"],"summary":"activeAssetData","operationId":"exchange_activeAssetData","requestBody":{"description":"Signed `activeAssetData` exchange request.","required":true,"content":{"application/json":{"schema":{"type":"object","description":"Request envelope for read-only actions submitted to `/exchange`.\n\nSame structure as [`ExchangeRequest`] but with [`ReadOnlyActionRequest`] as the action type.\nUsed for signed read-only queries (balances, positions, orders, portfolio).","required":["action","signature","nonce"],"properties":{"action":{"allOf":[{"$ref":"#/components/schemas/ActiveAssetDataRequest"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["activeAssetData"]}}}]},"expiresAfter":{"type":["integer","null"],"format":"int64","description":"Optional expiry for signed query requests.","minimum":0},"nonce":{"type":"integer","format":"int64","description":"Request nonce (Unix timestamp in milliseconds)","minimum":0},"signature":{"$ref":"#/components/schemas/Signature","description":"EIP-712 signature authorizing this query"},"vaultAddress":{"type":["string","null"],"description":"Optional vault address for vault operations"}}}}}},"responses":{"200":{"description":"Request successful. Response format depends on the requested action.","content":{"application/json":{"schema":{}}}},"400":{"description":"Request body was not valid JSON","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"JSON body did not match a supported exchange schema","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeResponse"}}}}}}}},"components":{"schemas":{"ActiveAssetDataRequest":{"type":"object","description":"Active asset data request payload with `type: \"activeAssetData\"`.","required":["coin"],"properties":{"coin":{"type":"string","description":"Perp coin to query."}}},"Signature":{"type":"object","description":"EIP-712 signature components.","required":["r","s","v"],"properties":{"r":{"type":"string","description":"r component (hex string with 0x prefix)"},"s":{"type":"string","description":"s component (hex string with 0x prefix)"},"v":{"type":"integer","format":"int32","description":"v component (27 or 28)","minimum":0}}},"ExchangeResponse":{"type":"object","description":"Exchange response envelope matching Hyperliquid's format exactly.\nUsed for order placement, cancellation, and other exchange actions.","required":["status","response"],"properties":{"response":{"$ref":"#/components/schemas/ExchangeResponseData","description":"Response payload"},"status":{"type":"string","description":"Status: \"ok\" or \"error\""}}},"ExchangeResponseData":{"type":"object","description":"Inner response object for exchange operations.","required":["type"],"properties":{"data":{"description":"Response data payload (omitted when null, e.g. for \"default\" responses)"},"type":{"type":"string","description":"Response type (e.g., \"order\", \"cancel\", \"default\", \"error\")"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hyperlink.xyz/api/exchange-methods/activeassetdata.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
