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

# Hyperliquid-shaped /info

> Accepts the Hyperliquid `POST /info` request types (`meta`, `metaAndAssetCtxs`, `allMids`, `l2Book`, `candleSnapshot`, `clearinghouseState`, `openOrders`, `frontendOpenOrders`, `userFills`, `userFillsByTime`, `orderStatus`, `historicalOrders`, `userFunding`, `fundingHistory`, `userRateLimit`, `userFees`, `referral`, `spotMeta`, `spotClearinghouseState`, `subAccounts`, `vaultDetails`) and answers with Hyperliquid's shapes. Asset id `a` equals the Gains `pairIndex`.



## OpenAPI

````yaml /developer/trading-api/openapi.json post /hl/{chain}/info
openapi: 3.1.0
info:
  title: Gains Trading API
  version: 1.0.0
  description: >-
    Native REST and WebSocket API for trading on Gains Network.
    Resource-oriented, JSON in and out, decimal strings for every price and
    size, one EIP-712 signing scheme, and an order lifecycle that hides the
    oracle two-step.
servers:
  - url: https://api.gains.trade
security: []
tags:
  - name: Markets
    description: Public market data
  - name: Account
    description: 'Private reads: balances, positions, orders, fills'
  - name: Orders
    description: Place, update and cancel orders
  - name: Positions
    description: Close and manage open positions
  - name: Agents
    description: Non-custodial agent authorisation
  - name: System
    description: Health
paths:
  /hl/{chain}/info:
    post:
      tags:
        - Hyperliquid compatibility
      summary: Hyperliquid-shaped /info
      description: >-
        Accepts the Hyperliquid `POST /info` request types (`meta`,
        `metaAndAssetCtxs`, `allMids`, `l2Book`, `candleSnapshot`,
        `clearinghouseState`, `openOrders`, `frontendOpenOrders`, `userFills`,
        `userFillsByTime`, `orderStatus`, `historicalOrders`, `userFunding`,
        `fundingHistory`, `userRateLimit`, `userFees`, `referral`, `spotMeta`,
        `spotClearinghouseState`, `subAccounts`, `vaultDetails`) and answers
        with Hyperliquid's shapes. Asset id `a` equals the Gains `pairIndex`.
      operationId: hlInfo
      parameters:
        - schema:
            type: string
            enum:
              - arbitrum
              - base
              - polygon
              - megaeth
              - arbitrum-sepolia
            example: arbitrum
          required: true
          name: chain
          in: path
      requestBody:
        description: Hyperliquid info request
        content:
          application/json:
            schema:
              type: object
              additionalProperties: {}
      responses:
        '200':
          description: Hyperliquid-shaped response, or `null` for an unknown coin
          content:
            application/json:
              schema: {}
        '422':
          description: Unknown `type` or malformed request
          content:
            text/plain:
              schema:
                type: string

````