# Get Futures Open Positions

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/account/futures/positions:
    get:
      summary: Get Futures Open Positions
      deprecated: false
      description: >-
        Provides all open futures positions for the authenticated user. It
        provides detailed information about each position, including size,
        direction, notional value, realised PnL, and the most recent settlement
        (profit or loss, mark price and timestamp). Designed for users who want
        a consolidated view of their active positions, this endpoint ensures
        that real-time data is available, reflecting the platform’s minute-level
        settlements.


        The settlement fields (`last_settlement`, `last_settlement_timestamp`,
        `mark_price`) are `null` when the position has not been settled in the
        last 2 minutes, e.g. for a newly opened position.


        **Authentication:** Bearer token; any valid API key (no specific scope
        required). This endpoint is rate-limited.


        Unknown query parameters are rejected with `400 UNEXPECTED_PARAMETERS`.
      tags:
        - One Trading Public REST API/Futures
      parameters:
        - name: instrument_code
          in: query
          description: >-
            Optional single instrument code to get open futures positions for
            (case-sensitive). Must be an existing instrument code.
          required: false
          example: BTC_USD_P
          schema:
            type: string
      responses:
        '200':
          x-apidog-name: Success
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  positions:
                    type: array
                    items:
                      $ref: '#/components/schemas/FuturesAccountPosition'
                x-apidog-orders:
                  - positions
                required:
                  - positions
                x-apidog-ignore-properties: []
              example:
                positions:
                  - instrument_code: BTC_USD_P
                    direction: LONG
                    open_volume: '0.00186'
                    open_position: '149.2689804'
                    last_settlement: '0.0461466'
                    mark_price: '80252.14'
                    realised_pnl: '-0.496713'
                    settlement_currency: USD
                    last_settlement_timestamp: '2026-01-27T15:50:00.000Z'
                    type: DATED_FUTURE
                    contract_expiry_date: '2031-04-20'
                    contract_duration: 5Y
          headers: {}
        '400':
          description: >-
            Invalid request. Possible `error` codes: `UNEXPECTED_PARAMETERS`,
            `INVALID_PARAMETERS` (unknown `instrument_code`; `error_message` is
            `INVALID_INSTRUMENT_CODE`).
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                '2':
                  summary: UNEXPECTED_PARAMETERS
                  value:
                    error: UNEXPECTED_PARAMETERS
                    error_message: 'Unsupported parameter: foo. Allowed: instrument_code'
                Invalid instrument code:
                  summary: INVALID_PARAMETERS
                  value:
                    error: INVALID_PARAMETERS
                    error_message: INVALID_INSTRUMENT_CODE
          headers: {}
          x-apidog-name: Bad Request
        '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
              examples:
                '4':
                  summary: Unauthorized
                  value:
                    error: UNAUTHORIZED
                    error_message: Unauthorized access
                '5':
                  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:
                '6':
                  summary: Gateway
                  value:
                    message: Forbidden
                '7':
                  summary: Permission denied
                  value:
                    error: PERMISSION_DENIED
                    error_message: Permission denied
                '8':
                  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-3646774-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: []

```