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

# Get Risk Limit

> Query for the risk limit margin parameters.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/market/risk-limit
openapi: 3.1.0
info:
  title: ekiden-gateway
  description: >-
    API Gateway and WebSocket proxy based on Axum and Utoipa, handling auth,
    rate limiting, and connection buffering.
  license:
    name: ''
  version: 0.1.1
servers:
  - url: https://api.ekiden.fi/
    description: Production
  - url: https://api.staging.ekiden.fi/
    description: Staging
  - url: https://api.dev.ekiden.fi/
    description: Development
  - url: http://localhost:4020/
    description: Local
security: []
paths:
  /api/v1/market/risk-limit:
    get:
      tags:
        - Market
      summary: Get Risk Limit
      description: Query for the risk limit margin parameters.
      operationId: get_risk_limit
      parameters:
        - name: symbol
          in: query
          required: false
          schema:
            oneOf:
              - type: 'null'
              - $ref: '#/components/schemas/Symbol'
        - name: cursor
          in: query
          description: >-
            Cursor. Use the next_page_cursor token from the response to retrieve
            the next page of the data set
          required: false
          schema:
            type:
              - string
              - 'null'
      responses:
        '200':
          description: Risk limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRiskLimitResponse'
components:
  schemas:
    Symbol:
      type: string
      example: BTCUSDC
    GetRiskLimitResponse:
      type: object
      description: Risk limit response.
      required:
        - list
        - next_page_cursor
      properties:
        list:
          type: array
          items:
            $ref: '#/components/schemas/RiskLimit'
        next_page_cursor:
          type: string
    RiskLimit:
      type: object
      required:
        - symbol
        - risk_id
        - risk_limit_value
        - maintenance_margin
        - initial_margin
        - is_lowest_risk
        - max_leverage
        - mm_duration
      properties:
        initial_margin:
          type: string
          description: Initial margin rate
        is_lowest_risk:
          type: boolean
        maintenance_margin:
          type: string
          description: Maintain margin rate
        max_leverage:
          type: string
          description: Allowed max leverage
        mm_duration:
          type: string
          description: The maintenance margin deduction value when risk limit tier changed
        risk_id:
          type: integer
          format: int32
          description: Risk ID
          minimum: 0
        risk_limit_value:
          type: string
          description: Position limit
        symbol:
          $ref: '#/components/schemas/Symbol'
          description: Symbol name

````