> ## Documentation Index
> Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# marginTable | Hyperliquid Info API

> Hyperliquid marginTable: fetch the margin-tier (leverage-bracket) table for a given margin table id.

> [card] Credit Cost
>
> 1 per call

> [card] Processing
>
> Batch

The Hyperliquid info endpoint with `type: "marginTable"` is used to fetch the margin-tier (leverage-bracket) table for a given margin table id.

> [!TIP]
>
> Estimate your monthly cost for this API using the [Pricing Calculator](https://goldrush.dev/docs/pricing-calculator.md?endpoint=%2Fapi-reference%2Fhyperliquid-info%2Fmargin-table).

> [!NOTE]
>
> * Wire-equal to `POST api.hyperliquid.xyz/info` with `{"type": "marginTable", "id": ...}`.
> * `id` is the `marginTableId` referenced by a [meta](https://goldrush.dev/docs/api-reference/hyperliquid-info/meta.md) universe entry (`universe[].marginTableId`), also listed inline in `meta.marginTables`.
> * `marginTiers` describes how the maximum leverage steps down as a position's notional grows.

Returns a single margin-tier table by id. Each tier gives the lower notional bound at which it applies and the maximum leverage allowed within that tier, so maximum leverage decreases as a position's notional grows. This is the standalone lookup for the same tables embedded in meta.marginTables.

## Endpoint

```
POST https://hypercore.goldrushdata.com/info
Authorization: Bearer <GOLDRUSH_API_KEY>
Content-Type: application/json
```

## Request

**type** `string` *required* (default: marginTable)

Always `"marginTable"`.

**id** `int` *required*

The margin table id - the `marginTableId` from a `meta` universe entry (or an id listed in `meta.marginTables`).

### Example

```bash cURL theme={null}
curl -X POST https://hypercore.goldrushdata.com/info \
  -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "marginTable",
    "id": 56
  }'
```

```typescript TypeScript theme={null}
const response = await fetch("https://hypercore.goldrushdata.com/info", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GOLDRUSH_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    type: "marginTable",
    id: 56,
  }),
});

const marginTable = await response.json();
```

```python Python theme={null}
import os, requests

response = requests.post(
    "https://hypercore.goldrushdata.com/info",
    headers={"Authorization": f"Bearer {os.environ['GOLDRUSH_API_KEY']}"},
    json={"type": "marginTable", "id": 56},
)

margin_table = response.json()
```

## Response

A single object describing the table's description and its ordered leverage tiers.

```json theme={null}
{
  "description": "tiered 40x",
  "marginTiers": [
    { "lowerBound": "0.0", "maxLeverage": 40 },
    { "lowerBound": "150000000.0", "maxLeverage": 20 }
  ]
}
```

### Field descriptions

**description** `string`

Human-readable label for the table (for example `"tiered 40x"`). May be an empty string.

**marginTiers** `array\<object\>`

Ordered leverage tiers. Each tier applies once a position's notional reaches its `lowerBound`; the highest applicable tier's `maxLeverage` caps leverage for the position.

**properties**

**lowerBound** `string`

Lower bound of position notional (USD) at which this tier begins, as a decimal string.

**maxLeverage** `int`

Maximum leverage allowed while the position's notional is within this tier.

## Related endpoints

> [card] [exchangeStatus](https://goldrush.dev/docs/api-reference/hyperliquid-info/exchange-status.md)
>
> fetch the current exchange operational status.

> [card] [liquidatable](https://goldrush.dev/docs/api-reference/hyperliquid-info/liquidatable.md)
>
> list accounts currently eligible for liquidation.

> [card] [maxBuilderFee](https://goldrush.dev/docs/api-reference/hyperliquid-info/max-builder-fee.md)
>
> fetch the maximum builder fee a user has approved for a given builder.

> [card] [maxMarketOrderNtls](https://goldrush.dev/docs/api-reference/hyperliquid-info/max-market-order-ntls.md)
>
> fetch the maximum market-order notional for each leverage bucket.

> [card] [validatorL1Votes](https://goldrush.dev/docs/api-reference/hyperliquid-info/validator-l1-votes.md)
>
> validatorL1Votes endpoint.

See all Hyperliquid endpoints: [Overview hub](https://goldrush.dev/docs/goldrush-hyperliquid/overview.md) · [Info API reference](https://goldrush.dev/docs/goldrush-hyperliquid/info-api/overview.md)

*Last reviewed: 2026-08-17*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.