420055",
"unclaimedRewards":"11.047361",
"claimedRewards":"22.743781",
"builderRewards":"0.027802"
}
],
"referrerState": {
"stage": "ready",
"data": {
"code": "TEST",
"referralStates": [
{
"cumVlm": "960652.017122",
"cumRewardedFeesSinceReferred": "196.838825",
"cumFeesRewardedToReferrer": "19.683748",
"timeJoined": 1679425029416,
"user": "0x11af2b93dcb3568b7bf2b6bd6182d260a9495728"
},
{
"cumVlm": "438278.672653",
"cumRewardedFeesSinceReferred": "97.628107",
"cumFeesRewardedToReferrer": "9.762562",
"timeJoined": 1679423947882,
"user": "0x3f69d170055913103a034a418953b8695e4e42fa"
}
]
}
},
"rewardHistory": []
}
```
{% endtab %}
{% endtabs %}
Note that rewardHistory is for legacy rewards. Claimed rewards are now returned in nonFundingLedgerUpdate
## Query a user's fees
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | -------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "userFees" |
| user<mark style="color:red;">\*</mark> | String | hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. |
{% tabs %}
{% tab title="200: OK" %}
```json
{
"dailyUserVlm": [
{
"date": "2025-05-23",
"userCross": "0.0",
"userAdd": "0.0",
"exchange": "2852367.0770729999"
},
...
],
"feeSchedule": {
"cross": "0.00045",
"add": "0.00015",
"spotCross": "0.0007",
"spotAdd": "0.0004",
"tiers": {
"vip": [
{
"ntlCutoff": "5000000.0",
"cross": "0.0004",
"add": "0.00012",
"spotCross": "0.0006",
"spotAdd": "0.0003"
},
...
],
"mm": [
{
"makerFractionCutoff": "0.005",
"add": "-0.00001"
},
...
]
},
"referralDiscount": "0.04",
"stakingDiscountTiers": [
{
"bpsOfMaxSupply": "0.0",
"discount": "0.0"
},
{
"bpsOfMaxSupply": "0.0001",
"discount": "0.05"
},
...
]
},
"userCrossRate": "0.000315",
"userAddRate": "0.000105",
"userSpotCrossRate": "0.00049",
"userSpotAddRate": "0.00028",
"activeReferralDiscount": "0.0",
"trial": null,
"feeTrialReward": "0.0",
"nextTrialAvailableTimestamp": null,
"stakingLink": {
"type": "tradingUser",
"stakingUser": "0x54c049d9c7d3c92c2462bf3d28e083f3d6805061"
},
"activeStakingDiscount": {
"bpsOfMaxSupply": "4.7577998927",
"discount": "0.3"
}
}
```
{% endtab %}
{% endtabs %}
## Query a user's staking delegations
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | -------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "delegations" |
| user<mark style="color:red;">\*</mark> | String | hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. |
{% tabs %}
{% tab title="200: OK" %}
```json
[
{
"validator":"0x5ac99df645f3414876c816caa18b2d234024b487",
"amount":"12060.16529862",
"lockedUntilTimestamp":1735466781353
},
...
]
```
{% endtab %}
{% endtabs %}
## Query a user's staking summary
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | -------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "delegatorSummary" |
| user<mark style="color:red;">\*</mark> | String | hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. |
{% tabs %}
{% tab title="200: OK" %}
```json
{
"delegated": "12060.16529862",
"undelegated": "0.0",
"totalPendingWithdrawal": "0.0",
"nPendingWithdrawals": 0
}
```
{% endtab %}
{% endtabs %}
## Query a user's staking history
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | -------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "delegatorHistory" |
| user<mark style="color:red;">\*</mark> | String | hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. |
{% tabs %}
{% tab title="200: OK" %}
```json
[
{
"time": 1735380381353,
"hash": "0x55492465cb523f90815a041a226ba90147008d4b221a24ae8dc35a0dbede4ea4",
"delta": {
"delegate": {
"validator": "0x5ac99df645f3414876c816caa18b2d234024b487",
"amount": "10000.0",
"isUndelegate": false
}
}
},
...
]
```
{% endtab %}
{% endtabs %}
## Query a user's staking rewards
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | -------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "delegatorRewards" |
| user<mark style="color:red;">\*</mark> | String | hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. |
{% tabs %}
{% tab title="200: OK" %}
```json
[
{
"time": 1736726400073,
"source": "delegation",
"totalAmount": "0.73117184"
},
{
"time": 1736726400073,
"source": "commission",
"totalAmount": "130.76445876"
},
...
]
```
{% endtab %}
{% endtabs %}
## Query a user's HIP-3 DEX abstraction state
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | -------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "userDexAbstraction" |
| user<mark style="color:red;">\*</mark> | String | hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. |
{% tabs %}
{% tab title="200: OK" %}
```json
true
```
{% endtab %}
{% endtabs %}
## Query a user's abstraction state
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | -------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "userAbstraction" |
| user<mark style="color:red;">\*</mark> | String | hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. |
{% tabs %}
{% tab title="200: OK" %}
```json
"unifiedAccount" | "portfolioMargin" | "disabled" | "default" | "dexAbstraction"
```
{% endtab %}
{% endtabs %}
## Query borrow/lend user state
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | -------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "borrowLendUserState" |
| user<mark style="color:red;">\*</mark> | String | hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. |
{% tabs %}
{% tab title="200: OK" %}
```json
{
"tokenToState":[
[
0,
{
"borrow":{
"basis": "0.0",
"value": "0.0"
},
"supply":{
"basis": "44.69295862",
"value": "44.69692314"
}
}
],
[
1105,
{
"borrow":{
"basis": "0.0",
"value": "0.0"
},
"supply":{
"basis": "0.0",
"value": "0.0"
}
}
],
],
"health":"healthy",
"healthFactor":null
}
```
{% endtab %}
{% endtabs %}
## Query borrow/lend reserve state
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| --------------------------------------- | ------ | ------------------------ |
| type<mark style="color:red;">\*</mark> | String | "borrowLendReserveState" |
| token<mark style="color:red;">\*</mark> | Number | token index |
{% tabs %}
{% tab title="200: OK" %}
```json
{
"borrowYearlyRate": "0.05",
"supplyYearlyRate": "0.0008245002",
"balance": "3245939.4732256099",
"utilization": "0.018322226",
"oraclePx": "1.0",
"ltv": "0.0",
"totalSupplied": "3306509.7335290499",
"totalBorrowed": "60582.61869494"
}
```
{% endtab %}
{% endtabs %}
## Query all borrow/lend reserve states
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | ---------------------------- |
| type<mark style="color:red;">\*</mark> | String | "allBorrowLendReserveStates" |
{% tabs %}
{% tab title="200: OK" %}
```json
[
[
0,
{
"borrowYearlyRate": "0.05",
"supplyYearlyRate": "0.0008244951",
"balance": "3245960.0596176102",
"utilization": "0.0183221137",
"oraclePx": "1.0",
"ltv": "0.0",
"totalSupplied": "3306530.3251102199",
"totalBorrowed": "60582.62446067"
}
],
[
150,
{
"borrowYearlyRate": "0.05",
"supplyYearlyRate": "0.0",
"balance": "11318.09684696",
"utilization": "0.0",
"oraclePx": "23.99",
"ltv": "0.5",
"totalSupplied": "11318.09684696",
"totalBorrowed": "0.0"
}
]
]
```
{% endtab %}
{% endtabs %}
## Query approved builders for user
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | -------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "approvedBuilders" |
| user<mark style="color:red;">\*</mark> | String | hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. |
{% tabs %}
{% tab title="200: OK" %}
```json
["0x476fa87b4d3818f437f38f1263bee508d7672d82"]
```
{% endtab %}
{% endtabs %}
# Perpetuals
The section documents the info endpoints that are specific to perpetuals. See Rate limits section for rate limiting logic and weights.
## Retrieve all perpetual dexs
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | ----------- |
| type<mark style="color:red;">\*</mark> | String | "perpDexs" |
{% tabs %}
{% tab title="200: OK Successful Response" %}
```json
[
null,
{
"name": "test",
"fullName": "test dex",
"deployer": "0x5e89b26d8d66da9888c835c9bfcc2aa51813e152",
"oracleUpdater": null,
"feeRecipient": null,
"assetToStreamingOiCap": [["COIN1", "100000.0"], ["COIN2", "200000.0"]],
"assetToFundingMultiplier": [["COIN1", "1.0"], ["COIN2", "2.0"]]
}
]
```
{% endtab %}
{% endtabs %}
## Retrieve perpetuals metadata (universe and margin tables)
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "meta" |
| dex | String | Perp dex name. Defaults to the empty string which represents the first perp dex. |
{% tabs %}
{% tab title="200: OK Successful Response" %}
```json
{
"universe": [
{
"name": "BTC",
"szDecimals": 5,
"maxLeverage": 50
},
{
"name": "ETH",
"szDecimals": 4,
"maxLeverage": 50
},
{
"name": "HPOS",
"szDecimals": 0,
"maxLeverage": 3,
"onlyIsolated": true
},
{
"name": "LOOM",
"szDecimals": 1,
"maxLeverage": 3,
"isDelisted": true,
"marginMode": "strictIsolated", // "strictIsolated" means margin cannot be removed, "noCross" means only isolated margin allowed
"onlyIsolated": true // deprecated. Means either "strictIsolated" or "noCross"
}
],
"marginTables": [
[
50,
{
"description": "",
"marginTiers": [
{
"lowerBound": "0.0",
"maxLeverage": 50
}
]
}
],
[
51,
{
"description": "tiered 10x",
"marginTiers": [
{
"lowerBound": "0.0",
"maxLeverage": 10
},
{
"lowerBound": "3000000.0",
"maxLeverage": 5
}
]
}
]
]
}
```
{% endtab %}
{% endtabs %}
## Retrieve perpetuals asset contexts (includes mark price, current funding, open interest, etc.)
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ------ | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | String | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "metaAndAssetCtxs" |
| dex | String | Perp dex name. Defaults to the empty string which represents the first perp dex. |
{% tabs %}
{% tab title="200: OK Successful Response (first perp dex)" %}
```json
[
{
"universe": [
{
"name": "BTC",
"szDecimals": 5,
"maxLeverage": 50
},
{
"name": "ETH",
"szDecimals": 4,
"maxLeverage": 50
},
{
"name": "HPOS",
"szDecimals": 0,
"maxLeverage": 3,
"onlyIsolated": true
}
],
"marginTables":[
[
50,
{
"description":"",
"marginTiers":[
{
"lowerBound":"0.0",
"maxLeverage":50
}
]
}
]
],
"collateralToken":0
},
[
{
"dayNtlVlm":"1169046.29406",
"funding":"0.0000125",
"impactPxs":[
"14.3047",
"14.3444"
],
"markPx":"14.3161",
"midPx":"14.314",
"openInterest":"688.11",
"oraclePx":"14.32",
"premium":"0.00031774",
"prevDayPx":"15.322"
},
{
"dayNtlVlm":"1426126.295175",
"funding":"0.0000125",
"impactPxs":[
"6.0386",
"6.0562"
],
"markPx":"6.0436",
"midPx":"6.0431",
"openInterest":"1882.55",
"oraclePx":"6.0457",
"premium":"0.00028119",
"prevDayPx":"6.3611"
},
{
"dayNtlVlm":"809774.565507",
"funding":"0.0000125",
"impactPxs":[
"8.4505",
"8.4722"
],
"markPx":"8.4542",
"midPx":"8.4557",
"openInterest":"2912.05",
"oraclePx":"8.4585",
"premium":"0.00033694",
"prevDayPx":"8.8097"
}
]
]
```
{% endtab %}
{% tab title="200: OK Successful Response (HIP-3 dex)" %}
```json
[
{
"universe":[
{
"szDecimals":4,
"name":"xyz:XYZ100",
"maxLeverage":20,
"marginTableId":20,
"onlyIsolated":true,
"marginMode":"strictIsolated",
"growthMode":"enabled",
"lastGrowthModeChangeTime":"2025-11-23T17:21:40.390706535"
},
{
"szDecimals":3,
"name":"xyz:TSLA",
"maxLeverage":10,
"marginTableId":10,
"onlyIsolated":true,
"marginMode":"strictIsolated",
"growthMode":"enabled",
"lastGrowthModeChangeTime":"2025-11-23T17:21:40.390706535"
},
{
"szDecimals":3,
"name":"xyz:NVDA",
"maxLeverage":10,
"marginTableId":10,
"onlyIsolated":true,
"marginMode":"strictIsolated",
"growthMode":"enabled",
"lastGrowthModeChangeTime":"2025-11-23T17:21:40.390706535"
}
],
"marginTables":[
[
50,
{
"description":"",
"marginTiers":[
{
"lowerBound":"0.0",
"maxLeverage":50
}
]
}
]
],
"collateralToken":0
},
[
{
"funding":"0.0002110251",
"openInterest":"0.0854",
"prevDayPx":"25956.0",
"dayNtlVlm":"462.9758",
"premium":"0.0031136686",
"oraclePx":"25372.0",
"markPx":"25451.0",
"midPx":"25451.0",
"impactPxs":[
"24946.0",
"25956.0"
],
"dayBaseVlm":"0.0183"
},
{
"funding":"0.0",
"openInterest":"12.208",
"prevDayPx":"447.49",
"dayNtlVlm":"0.0",
"premium":null,
"oraclePx":"450.78",
"markPx":"465.13",
"midPx":"464.92",
"impactPxs":null,
"dayBaseVlm":"0.0"
},
{
"funding":"0.0",
"openInterest":"9.43",
"prevDayPx":"177.0",
"dayNtlVlm":"2192.853",
"premium":null,
"oraclePx":"188.15",
"markPx":"177.06",
"midPx":null,
"impactPxs":null,
"dayBaseVlm":"12.389"
}
]
]
```
{% endtab %}
{% endtabs %}
## Retrieve user's perpetuals account summary
<mark style="color:green;">`POST`</mark> `https://api.hyperliquid.xyz/info`
See a user's open positions and margin summary for perpetuals trading.
Under unified account or portfolio margin, use spot balances endpoint instead for trading account balance across spot and perps.
#### Headers
| Name | Type | Description |
| ---------------------------------------------- | ---- | ------------------ |
| Content-Type<mark style="color:red;">\*</mark> | | "application/json" |
#### Request Body
| Name | Type | Description |
| -------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String | "clearinghouseState" |
| user<mark style="color:red;">\*</mark> | String | Onchain address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. |
| dex | String | Perp dex name. Defaults to the empty string which represents the first perp dex. |
{% tabs %}
{% tab title="200: OK Successful Response" %}
```json
{
"assetPositions": [
{
"position": {
"coin": "ETH",
"cumFunding": {
"allTime": "514.085417",
"sinceChange": "0.0",
"sinceOpen": "0.0"
},
"entryPx": "2986.3",
"leverage": {
"rawUsd": "-95.059824",
"type": "isolated",
"value": 20
},
"liquidationPx": "2866.26936529",
"marginUsed": "4.967826",
"maxLeverage": 50,
"positionValue": "100.02765",
"returnOnEquity": "-0.0026789",
"szi": "0.0335",
"unrealizedPnl": "-0.0134"
},
"type": "oneWay"
}
],
"crossMaintenanceMarginUsed": "0.0",
"crossMarginSummary": {
"accountValue": "13104.514502",
"totalMarginUsed": "0.0",
"totalNtlPos": "0.0",
"totalRawUsd": "13104.514502"
},
"marginSummary": {
"accountValue": "13109.482328",
"totalMarginUsed":프로젝트로 돌아가기