> ## 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.

<CardGroup cols={2}>
  <Card title="Credit Cost"> 1 per call</Card>
  <Card title="Processing"> Realtime</Card>
</CardGroup>

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](/docs/pricing-calculator?endpoint=%2Fapi-reference%2Fhyperliquid-info%2Fmargin-table).
</Tip>

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

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

<ParamField body="type" type="string" required default="marginTable">
  Always `"marginTable"`.
</ParamField>

<ParamField body="id" type="int" required>
  The margin table id - the `marginTableId` from a `meta` universe entry (or an id listed in `meta.marginTables`).
</ParamField>

### Example

<CodeGroup>
  ```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()
  ```
</CodeGroup>

## 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

<ResponseField name="description" type="string">
  Human-readable label for the table (for example `"tiered 40x"`). May be an empty string.
</ResponseField>

<ResponseField name="marginTiers" type="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.

  <Expandable title="properties">
    <ResponseField name="lowerBound" type="string">
      Lower bound of position notional (USD) at which this tier begins, as a decimal string.
    </ResponseField>

    <ResponseField name="maxLeverage" type="int">
      Maximum leverage allowed while the position's notional is within this tier.
    </ResponseField>
  </Expandable>
</ResponseField>

*Last reviewed: 2026-07-24*
