Hyperliquid — Retrieve a user's fills
Retrieve a user's fills with the Hyperliquid API. Supply a type and a user. Sample fields include hashes. Use it for on-chain or crypto market research. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Hyperliquid — Retrieve a user's fills
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
responseobject[]closedPnlstringcoinstringcrossedbooleandirstringfeestringhashstringoidintegerpxstringsidestringstartPositionstringszstringtimeinteger
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = Array<{
closedPnl?: string;
coin?: string;
crossed?: boolean;
dir?: string;
fee?: string;
hash?: string;
oid?: number;
px?: string;
side?: string;
startPosition?: string;
sz?: string;
time?: number;
}>;Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
hyperliquidCurrent Hyperliquid — Retrieve a user's fills · POST · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/hyperliquid/info/user-fills- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/hyperliquid/info/user-fills' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"type": "userFills",
"user": "0x677d831aef5328190852e24f13c46cac05f984e7"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
aggregateByTime | JSON request bodybody | boolean | No | When true, partial fills are combined when a crossing order gets filled by multiple different resting orders. Resting orders filled by multiple crossing orders are only aggregated if in the same block. |
type | JSON request bodybody | string | Yes | Fixed native Info query discriminator. const: "userFills" · enum: "userFills" |
user | JSON request bodybody | string | Yes | Address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. pattern: ^0x[0-9a-fA-F]{40}$ |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
[
{
"closedPnl": "0.0",
"coin": "@127",
"crossed": true,
"dir": "Spot Dust Conversion",
"fee": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 110049801917,
"px": "0.068061",
"side": "A",
"startPosition": "0.00413333",
"sz": "0.00413333",
"time": 1751846400068
},
{
"closedPnl": "0.0",
"coin": "@125",
"crossed": true,
"dir": "Spot Dust Conversion",
"fee": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 110049801911,
"px": "0.058972",
"side": "A",
"startPosition": "0.00789787",
"sz": "0.00789787",
"time": 1751846400068
},
{
"closedPnl": "0.0",
"coin": "@3",
"crossed": true,
"dir": "Spot Dust Conversion",
"fee": "0.0",
"hash": "0x171bc45c0156e35b3270040e00a3e9014600ba2a302b789da3ce1661781be7d3",
"oid": 30932195254,
"px": "0.01772595",
"side": "A",
"startPosition": "0.08548",
"sz": "0.08548",
"time": 1721779200121
}
]Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Hyperliquid — Retrieve a user's fills
Retrieve a user's fills with the Hyperliquid API. Supply a type and a user. Sample fields include hashes. Use it for on-chain or crypto market research. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
hyperliquid · Hyperliquid — Retrieve a user's fills: https://openany.si/markets/apis/capabilities/hyperliquid-retrieve-a-user-s-fills?offering=2398ed2f-61bf-4cf1-92c1-1a18ddbd2f7a · $0 / call
## Selected API contract
Documentation: https://openany.si/apis/2398ed2f-61bf-4cf1-92c1-1a18ddbd2f7a
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/user-fills
Price: $0 / call
Provider: hyperliquid
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/hyperliquid/info/user-fills' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"type": "userFills",
"user": "0x677d831aef5328190852e24f13c46cac05f984e7"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Hyperliquid — Retrieve a user's fills",
"endpoint": "https://api.openany.si/v1/agent-apis/hyperliquid/info/user-fills",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Retrieve a user's fills Documentation prepared only; runtime not verified.",
"json_schema": {
"additionalProperties": false,
"examples": [
{
"type": "userFills",
"user": "0x677d831aef5328190852e24f13c46cac05f984e7"
}
],
"properties": {
"aggregateByTime": {
"description": "When true, partial fills are combined when a crossing order gets filled by multiple different resting orders. Resting orders filled by multiple crossing orders are only aggregated if in the same block.",
"type": "boolean"
},
"type": {
"const": "userFills",
"description": "Fixed native Info query discriminator.",
"enum": [
"userFills"
],
"example": "userFills",
"type": "string"
},
"user": {
"description": "Address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000.",
"example": "0x677d831aef5328190852e24f13c46cac05f984e7",
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
}
},
"required": [
"type",
"user"
],
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example (source abbreviated)",
"request": {
"body": {
"type": "userFills",
"user": "0x677d831aef5328190852e24f13c46cac05f984e7"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": [
{
"closedPnl": "0.0",
"coin": "@127",
"crossed": true,
"dir": "Spot Dust Conversion",
"fee": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 110049801917,
"px": "0.068061",
"side": "A",
"startPosition": "0.00413333",
"sz": "0.00413333",
"time": 1751846400068
},
{
"closedPnl": "0.0",
"coin": "@125",
"crossed": true,
"dir": "Spot Dust Conversion",
"fee": "0.0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 110049801911,
"px": "0.058972",
"side": "A",
"startPosition": "0.00789787",
"sz": "0.00789787",
"time": 1751846400068
},
{
"closedPnl": "0.0",
"coin": "@3",
"crossed": true,
"dir": "Spot Dust Conversion",
"fee": "0.0",
"hash": "0x171bc45c0156e35b3270040e00a3e9014600ba2a302b789da3ce1661781be7d3",
"oid": 30932195254,
"px": "0.01772595",
"side": "A",
"startPosition": "0.08548",
"sz": "0.08548",
"time": 1721779200121
}
]
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example (source abbreviated)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- Retrieve a user's fills Documentation prepared only; runtime not verified.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/hyperliquid/info/user-fills' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "type": "userFills", "user": "0x677d831aef5328190852e24f13c46cac05f984e7" }'Check the response
Sample response · Documented HTTP 200
Sample response[ { "closedPnl": "0.0", "coin": "@127", "crossed": true, "dir": "Spot Dust Conversion", "fee": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 110049801917, "px": "0.068061", "side": "A", "startPosition": "0.00413333", "sz": "0.00413333", "time": 1751846400068 }, { "closedPnl": "0.0", "coin": "@125", "crossed": true, "dir": "Spot Dust Conversion", "fee": "0.0", "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "oid": 110049801911, "px": "0.058972", "side": "A", "startPosition": "0.00789787", "sz": "0.00789787", "time": 1751846400068 }, { "closedPnl": "0.0", "coin": "@3", "crossed": true, "dir": "Spot Dust Conversion", "fee": "0.0", "hash": "0x171bc45c0156e35b3270040e00a3e9014600ba2a302b789da3ce1661781be7d3", "oid": 30932195254, "px": "0.01772595", "side": "A", "startPosition": "0.08548", "sz": "0.08548", "time": 1721779200121 } ]