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

# Get Cross Margin Risk Parameters

> Gets the current Cross Margin (XM) risk parameters for an entity.



## OpenAPI

````yaml get /v1/entities/{entity_id}/cross_margin/risk_parameters
openapi: 3.0.1
info:
  title: REST API
  description: >-
    The Coinbase Prime REST API provides programmatic access to trading,
    custody, staking, market data, and account management functionality.
  version: '0.1'
servers:
  - url: https://api.prime.coinbase.com/
security: []
tags:
  - name: PrimeRESTAPI
paths:
  /v1/entities/{entity_id}/cross_margin/risk_parameters:
    get:
      tags:
        - Financing
      summary: Get Cross Margin Risk Parameters
      description: Gets the current Cross Margin (XM) risk parameters for an entity.
      operationId: PrimeRESTAPI_GetCrossMarginRiskParameters
      parameters:
        - name: entity_id
          in: path
          description: XM customer Prime Entity ID.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/coinbase.public_rest_api.GetCrossMarginRiskParametersResponse
components:
  schemas:
    coinbase.public_rest_api.GetCrossMarginRiskParametersResponse:
      type: object
      properties:
        risk_parameters:
          type: array
          description: Current XM tier risk parameters for the entity's client tier.
          items:
            $ref: >-
              #/components/schemas/coinbase.public_rest_api.CrossMarginRiskParameters
        offset_credit_matrix_long_short:
          type: array
          description: Offset credit rate matrix for long/short tier pairs.
          items:
            $ref: '#/components/schemas/coinbase.public_rest_api.TierPairRateEntry'
        offset_credit_matrix_long_long:
          type: array
          description: Offset credit rate matrix for long/long tier pairs.
          items:
            $ref: '#/components/schemas/coinbase.public_rest_api.TierPairRateEntry'
        offset_credit_matrix_short_short:
          type: array
          description: Offset credit rate matrix for short/short tier pairs.
          items:
            $ref: '#/components/schemas/coinbase.public_rest_api.TierPairRateEntry'
        margin_period_of_risk:
          type: number
          description: Margin period of risk (number of days).
          format: double
          example: 5
    coinbase.public_rest_api.CrossMarginRiskParameters:
      type: object
      properties:
        asset_tier:
          type: string
          description: Asset tier identifier.
          example: '0'
        base_ratio_long:
          type: string
          description: Base ratio for long positions.
          example: '0.3540'
        base_ratio_short:
          type: string
          description: Base ratio for short positions.
          example: '0.4051'
        volatility_rate_long:
          type: string
          description: Volatility rate for long positions.
          example: '0.0365'
        volatility_rate_short:
          type: string
          description: Volatility rate for short positions.
          example: '0.0484'
        volatility_low_threshold:
          type: string
          description: Volatility low threshold.
          example: '0.0385'
        volatility_high_threshold:
          type: string
          description: Volatility high threshold.
          example: '0.0777'
        liquidity_a_long:
          type: string
          description: Liquidity A for long positions.
          example: '0.132227'
        liquidity_a_short:
          type: string
          description: Liquidity A for short positions.
          example: '0.153226'
        liquidity_b_short:
          type: string
          description: Liquidity B for short positions.
          example: '0.634878'
        liquidity_threshold:
          type: string
          description: Liquidity threshold.
          example: '0.2395'
        basis_offset_credit_rate:
          type: string
          description: Basis offset credit rate.
          example: '0.92'
      description: XM 2.0 risk parameters for an asset tier.
    coinbase.public_rest_api.TierPairRateEntry:
      type: object
      properties:
        tier_a:
          type: string
          description: First tier in the pair.
          example: '0'
        tier_b:
          type: string
          description: Second tier in the pair.
          example: '0'
        rate:
          type: string
          description: Credit rate for this tier pair.
          example: '0.4579'
      description: >-
        TierPairRateEntry represents a single (tier_a, tier_b) -> rate entry in
        an offset credit matrix.

````