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

# marginTable | Hyperliquid info

> The info endpoint with type: "marginTable" retrieves a specific margin table by ID. marginTable on Hyperliquid info via Chainstack.

<Info>
  This method is available on Chainstack. Not all Hyperliquid methods are available on Chainstack, as the open-source node implementation does not support them yet — see [Hyperliquid methods](/docs/hyperliquid-methods) for the full availability breakdown.
</Info>

The `info` endpoint with `type: "marginTable"` retrieves a specific margin table by ID. Returns the margin tier configuration including description and leverage tiers.

## Parameters

### Request body

* `type` (string, required) — The request type. Must be `"marginTable"`.
* `id` (integer, required) — Margin table ID.

## Response

The response is an object containing:

* `description` (string) — Description of the margin table.
* `marginTiers` (array) — Array of margin tier objects with:
  * `lowerBound` (string) — Lower bound of the tier in USD.
  * `maxLeverage` (integer) — Maximum leverage allowed for this tier.

## Example request

<CodeGroup>
  ```shell Shell theme={"system"}
  curl -X POST \
    -H "Content-Type: application/json" \
    -d '{"type": "marginTable", "id": 1}' \
    https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/info
  ```

  ```python Python (hyperliquid-python-sdk) theme={"system"}
  from hyperliquid.info import Info

  # The hyperliquid-python-sdk has no named method for the marginTable type,
  # so post the request body directly through the shared Info.post primitive.
  info = Info("YOUR_CHAINSTACK_ENDPOINT", skip_ws=True)

  margin_table = info.post("/info", {"type": "marginTable", "id": 1})
  print(margin_table)
  ```

  ```typescript TypeScript (@nktkas/hyperliquid) theme={"system"}
  import { HttpTransport, InfoClient } from "@nktkas/hyperliquid";

  const transport = new HttpTransport({ apiUrl: "YOUR_CHAINSTACK_ENDPOINT" });
  const info = new InfoClient({ transport });

  const marginTable = await info.marginTable({ id: 1 });
  console.log(marginTable);
  ```
</CodeGroup>

<Note>
  **Use your own endpoint in your code.** The code examples use a placeholder Chainstack endpoint (YOUR\_CHAINSTACK\_ENDPOINT) — replace it with your own Hyperliquid node endpoint from the [Chainstack console](https://console.chainstack.com/). The curl above uses a shared public endpoint for quick checks only; do not use it in production.
</Note>

## Example response

```json theme={"system"}
{
  "description": "",
  "marginTiers": [
    {
      "lowerBound": "0.0",
      "maxLeverage": 1
    }
  ]
}
```

## Use case

The `info` endpoint with `type: "marginTable"` is useful for:

* Looking up specific margin tier configurations by ID
* Displaying leverage limits for different position size tiers
* Building risk management tools that account for tiered leverage
* Validating leverage settings against margin table constraints


## OpenAPI

````yaml openapi/hyperliquid_node_api/hypercore_info/info_margin_table.json post /4f8d8f4040bdacd1577bff8058438274/info
openapi: 3.0.0
info:
  title: Hyperliquid Node API
  version: 1.0.0
  description: This is an API for interacting with Chainstack Hyperliquid node.
servers:
  - url: https://hyperliquid-mainnet.core.chainstack.com
security: []
paths:
  /4f8d8f4040bdacd1577bff8058438274/info:
    post:
      tags:
        - hyperliquid operations
      summary: info (marginTable)
      operationId: infoMarginTable
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  description: Request type
                  default: marginTable
                  enum:
                    - marginTable
                id:
                  type: integer
                  description: Margin table ID
                  default: 1
              required:
                - type
                - id
      responses:
        '200':
          description: Margin table configuration
          content:
            application/json:
              schema:
                type: object

````