# Futures Portfolio Summary

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/account/futures/summary:
    get:
      summary: Futures Portfolio Summary
      deprecated: false
      description: >-
        This endpoint provides a real-time summary of a user's futures portfolio
        on the exchange. It returns details about the current portfolio,
        including the user's account equity, available margin, margin used and
        positions. The summary is updated with settlements every minute,
        ensuring users have the most accurate and up-to-date information about
        their portfolio.


        Each position has the same shape as in `GET
        /v1/account/futures/positions`.


        **Authentication:** Bearer token; any valid API key (no specific scope
        required). This endpoint is rate-limited.
      tags:
        - One Trading Public REST API/Futures
      parameters: []
      responses:
        '200':
          x-apidog-name: Success
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  account_id:
                    type: string
                    format: uuid
                    description: The unique identifier for the futures account.
                  account_ratio:
                    type: number
                    description: >-
                      Account ratio reported by the exchange. `null` when the
                      exchange reports none (or 0).
                    nullable: true
                  equity:
                    type: string
                    description: >-
                      Total asset value in USD that can be used as margin for
                      futures positions.
                  maintenance_margin:
                    type: string
                    description: Maintenance margin in USD.
                  margin_available:
                    type: string
                    description: >-
                      Margin available in USD, calculated as `equity` −
                      `margin_used`.
                  margin_used:
                    type: string
                    description: Margin currently used by open positions, in USD.
                  positions:
                    type: array
                    items:
                      $ref: '#/components/schemas/FuturesAccountPosition'
                x-apidog-orders:
                  - account_id
                  - account_ratio
                  - equity
                  - maintenance_margin
                  - margin_available
                  - margin_used
                  - positions
                required:
                  - account_id
                  - account_ratio
                  - equity
                  - maintenance_margin
                  - margin_available
                  - margin_used
                  - positions
                x-apidog-ignore-properties: []
              example:
                account_id: aaaba8bd-3195-4f72-87ff-98720a940f23
                account_ratio: 24.38
                equity: '93844.36992069'
                maintenance_margin: '3848.680365'
                margin_available: '86147.00919069'
                margin_used: '7697.36073'
                positions:
                  - instrument_code: ETH_USD_P
                    direction: SHORT
                    open_volume: '0.01'
                    open_position: '23.1518'
                    realised_pnl: '-0.647418'
                    settlement_currency: USD
                    last_settlement: '-0.0101'
                    last_settlement_timestamp: '2026-04-24T10:47:02.000Z'
                    mark_price: '2315.18'
                    type: DATED_FUTURE
                    contract_expiry_date: '2031-04-20'
                    contract_duration: 5Y
                  - instrument_code: BTC_USD_P
                    direction: SHORT
                    open_volume: '0.991'
                    open_position: '76950.46621'
                    realised_pnl: '-10432.8894161'
                    settlement_currency: USD
                    last_settlement: '0.52523'
                    last_settlement_timestamp: '2026-04-24T10:47:00.000Z'
                    mark_price: '77649.31'
                    type: DATED_FUTURE
                    contract_expiry_date: '2031-04-20'
                    contract_duration: 5Y
          headers: {}
        '401':
          description: >-
            Unauthorized. The token was accepted by the gateway but rejected by
            the endpoint: `UNAUTHORIZED`, or `INVALID_REQUEST_SIGNATURE` when
            the API key requires signed requests and the signature is missing or
            invalid.
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                '2':
                  summary: Unauthorized
                  value:
                    error: UNAUTHORIZED
                    error_message: Unauthorized access
                '3':
                  summary: Invalid signature
                  value:
                    error: INVALID_REQUEST_SIGNATURE
                    error_message: The request signature is missing or invalid
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: >-
            Forbidden. Either the gateway rejected the token
            (`{"message":"Forbidden"}`), or the endpoint denied the request,
            e.g. `PERMISSION_DENIED` (API key lacks the required scope, or
            account not permitted) or `EXCHANGE_ACCOUNT_NOT_PROVISIONED`.
          content:
            application/json:
              schema:
                oneOf:
                  - *ref_0
                  - $ref: '#/components/schemas/GatewayError'
              examples:
                '4':
                  summary: Gateway
                  value:
                    message: Forbidden
                '5':
                  summary: Permission denied
                  value:
                    error: PERMISSION_DENIED
                    error_message: Permission denied
                '6':
                  summary: Not provisioned
                  value:
                    error: EXCHANGE_ACCOUNT_NOT_PROVISIONED
                    error_message: >-
                      The account is authenticated but has no exchange account
                      yet
          headers: {}
          x-apidog-name: Forbidden
        '429':
          description: >-
            Rate limit exceeded. Limits are per account holder per minute: 600
            (retail), 2,000 (institutional), 10,000 (market maker).
          content:
            application/json:
              schema: *ref_0
              example:
                error: TOO_MANY_REQUESTS
                error_message: Too many requests
          headers: {}
          x-apidog-name: ''
        '500':
          description: Unexpected server error.
          content:
            application/json:
              schema: *ref_0
              example:
                error: SERVER_ERROR
                error_message: An internal server error occurred
          headers: {}
          x-apidog-name: Server Error
      security:
        - bearer: []
      x-apidog-folder: One Trading Public REST API/Futures
      x-apidog-status: developing
      x-run-in-apidog: https://app.eu.apidog.com/web/project/349694/apis/api-3646773-run
components:
  schemas:
    FuturesAccountPosition:
      type: object
      description: A live open futures position.
      properties:
        instrument_code:
          type: string
          description: The unique identifier for the futures market, e.g. `BTC_USD_P`.
        direction:
          type: string
          enum:
            - LONG
            - SHORT
          description: Indicates whether the position is `LONG` or `SHORT`.
        open_volume:
          type: string
          description: The current open contract volume for the position.
        open_position:
          type: string
          description: >-
            The notional value of the open position (absolute value), expressed
            in the settlement currency.
        realised_pnl:
          type: string
          description: >-
            The total realised profit or loss for this position, in the quote
            currency.
        settlement_currency:
          type: string
          description: >-
            The currency in which profits and losses for this position are
            settled (the quote currency of the instrument).
        last_settlement:
          type: string
          description: >-
            The profit or loss settled for this position in the last minute
            settlement cycle, in the quote currency. `null` if there has been no
            settlement for the position in the last 2 minutes (e.g. a newly
            opened position).
          nullable: true
        last_settlement_timestamp:
          type: string
          format: date-time
          description: >-
            The timestamp of the last settlement applied to this position (ISO
            8601, millisecond precision). `null` under the same conditions as
            `last_settlement`.
          nullable: true
        mark_price:
          type: string
          description: >-
            The mark price used for calculating the last minutely settlement.
            `null` under the same conditions as `last_settlement`.
          nullable: true
        type:
          type: string
          enum:
            - PERP
            - DATED_FUTURE
            - EQUITY_FUTURE
            - EQUITY_INDEX_FUTURE
          description: Instrument type.
        contract_expiry_date:
          type: string
          description: >-
            Expiry date of the contract (YYYY-MM-DD). Present for
            `DATED_FUTURE`, `EQUITY_FUTURE` and `EQUITY_INDEX_FUTURE`.
        contract_duration:
          type: string
          description: >-
            Contract duration (e.g., 5Y for five years). Present for
            `DATED_FUTURE`, `EQUITY_FUTURE` and `EQUITY_INDEX_FUTURE`.
      x-apidog-orders:
        - instrument_code
        - direction
        - open_volume
        - open_position
        - realised_pnl
        - settlement_currency
        - last_settlement
        - last_settlement_timestamp
        - mark_price
        - type
        - contract_expiry_date
        - contract_duration
      required:
        - instrument_code
        - direction
        - open_volume
        - open_position
        - realised_pnl
        - settlement_currency
        - last_settlement
        - last_settlement_timestamp
        - mark_price
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
    ErrorResponse:
      type: object
      description: >-
        Error body. `error` is a machine-readable code (e.g.
        `INVALID_INSTRUMENT_CODE`) on most endpoints; a few older endpoints
        return a human-readable message in `error` instead and omit
        `error_message`.
      properties:
        error:
          type: string
          description: Error code (or, on older endpoints, a human-readable message).
        error_message:
          type: string
          description: >-
            Human-readable detail. Present on endpoints that return an error
            code in `error`.
      required:
        - error
      x-apidog-orders:
        - error
        - error_message
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
    GatewayError:
      type: object
      description: >-
        Returned by the API gateway itself when the bearer token is missing,
        invalid, expired or revoked, or the calling IP is not on the API key's
        allowlist.
      properties:
        message:
          type: string
          enum:
            - Forbidden
            - Unauthorized
      required:
        - message
      x-apidog-orders:
        - message
      x-apidog-folder: ''
      x-apidog-ignore-properties: []
  securitySchemes:
    bearerAuth:
      type: bearer
      scheme: bearer
      description: >-
        API key issued to the account holder, sent as `Authorization: Bearer
        <token>`. The key must hold the `SUBACCOUNT_TRANSFER` scope.
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.onetrading.com/fast
    description: Production Env
security: []

```