Skip to main content
Version: pre-release (v0.79)

List margin modes per party per market

GET 

/api/v2/margin-modes

Get a list of all margin modes, or for a specific market ID, or party ID.

Request

Query Parameters

    marketId string

    Market ID to filter for.

    partyId string

    Party ID to filter for.

    pagination.first int32

    Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.

    pagination.after string

    If paging forwards, the cursor string for the last row of the previous page.

    pagination.last int32

    Number of records to be returned that sort less than row identified by cursor supplied in 'before'.

    pagination.before string

    If paging forwards, the cursor string for the first row of the previous page.

    pagination.newestFirst boolean

    Whether to order the results with the newest records first. If not set, the default value is true.

Responses

A successful response.

Schema
    partyMarginModes object

    Page of party margin modes data and corresponding page information.

    edges object[]

    Page of party margin modes data and their corresponding cursors.

  • Array [
  • cursor string

    Cursor that can be used to fetch further pages.

    node object

    Party margin mode data.

    atEpoch uint64

    Epoch at which the update happened.

    marginFactor string

    Margin factor for the market. Isolated mode only.

    marginMode - MARGIN_MODE_UNSPECIFIED: Never valid. - MARGIN_MODE_CROSS_MARGIN: Cross margin mode - margin is dynamically acquired and released as a position is marked to market - MARGIN_MODE_ISOLATED_MARGIN: Isolated margin mode - margin for any newly opened position volume is transferred to the margin account when the trade is executed (string)

    Possible values: [MARGIN_MODE_UNSPECIFIED, MARGIN_MODE_CROSS_MARGIN, MARGIN_MODE_ISOLATED_MARGIN]

    Default value: MARGIN_MODE_UNSPECIFIED

    Selected margin mode.

    marketId string

    Unique ID of the market.

    maxTheoreticalLeverage string

    Maximum theoretical leverage for the market. Isolated mode only.

    minTheoreticalMarginFactor string

    Minimum theoretical margin factor for the market. Isolated mode only.

    partyId string

    Unique ID of the party.

  • ]
  • pageInfo object

    Page information that is used for fetching further pages.

    endCursor string

    End cursor.

    hasNextPage boolean

    Indicator if there is a next page.

    hasPreviousPage boolean

    Indicator if there is a previous page.

    startCursor string

    Start cursor.

Loading...