WOO X Futures API

The Futures API from WOO X — 7 operation(s) for futures.

GitHub OpenAPI
Business capability
Trading Position Management BC-1370.20

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v3/futures/defaultMarginMode Get the account's default futures margin mode · Get futures default margin mode #
Ask an LLM
“What is my account's default futures margin mode?”
“Is my default margin mode CROSS or ISOLATED?”
Tell an agent
Show my account's default futures margin mode.
Check the default margin mode for futures symbol {symbol}.
PUT /v3/futures/defaultMarginMode Set the account's default futures margin mode · Replace futures default margin mode #
Ask an LLM
“How do I change my account's default futures margin mode?”
“Can I set the default margin mode for all futures contracts?”
Tell an agent
Set my account's default futures margin mode to {defaultMarginMode}.
Change the account-wide default margin mode to {defaultMarginMode}.
PUT /v3/futures/defaultMarginMode/{symbol} Set a futures contract's default margin mode · Replace futures default margin mode by symbol #
Ask an LLM
“Can I set the default margin mode for just one futures contract?”
“What happens to a single symbol's default margin mode when I change it?”
Tell an agent
Set the default margin mode of {symbol} to {defaultMarginMode}.
Change the account default margin mode for futures contract {symbol} to {defaultMarginMode}.
POST /v3/futures/defaultMarginMode/reset Reset the account default futures margin mode · Create futures default margin mode reset #
Ask an LLM
“How do I reset my account's default futures margin mode?”
“Can I reset the account-level default margin mode instead of setting a specific one?”
Tell an agent
Reset my account's default futures margin mode using API key {apiKey}, signature {signature} and timestamp {timestamp}.
Send a futures default margin mode reset with key {apiKey}, signed with {signature} at timestamp {timestamp}.
GET /v3/futures/leverage Get leverage for a futures position · Get futures leverage #
Ask an LLM
“What leverage am I using on a particular futures contract?”
“Can I check my leverage for a contract in a given margin and position mode?”
Tell an agent
Show my leverage on {symbol} in {marginMode} mode with position mode {positionMode}.
Get the leverage for {symbol} under {marginMode} margin and {positionMode} position mode.
PUT /v3/futures/leverage Set leverage for a futures position · Replace futures leverage #
Ask an LLM
“How do I change my leverage on a futures contract?”
“Can I set leverage for a contract in hedge mode?”
Tell an agent
Set leverage on {symbol} to {leverage} in {marginMode} mode.
Change my leverage on {symbol} to {leverage} with {marginMode} margin and {positionMode} position mode.
GET /v3/futures/fundingFee/history Get futures funding fee history · Get futures funding fee history #
Ask an LLM
“What funding fees have I paid or received on a futures contract?”
“Can I see funding fee history for a contract between two dates?”
Tell an agent
Show funding fee history for {symbol}.
Get funding fee history for {symbol} from {startTime} to {endTime}.
GET /v3/futures/positions Get my futures positions · Get futures positions #
Ask an LLM
“What futures positions do I currently hold?”
“Can I see my open futures position for one contract?”
Tell an agent
Show my futures positions.
Get my position on {symbol}.
PUT /v3/futures/positionMode Set my futures position mode · Replace futures position mode #
Ask an LLM
“How do I switch between one-way and hedge mode for my futures positions?”
“Can I change my position mode for all contracts?”
Tell an agent
Set my futures position mode to {positionMode}.
Switch my position mode to {positionMode} for all contracts.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/woox:woox-futures-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

woox-futures-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swagger Petstore - OpenAPI 3.0 Futures API
  description: This is a sample Pet Store Server based on the OpenAPI 3.0 specification.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Team
    email: apiteam@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.19
servers:
- url: https://api.woox.io/
tags:
- name: Futures
paths:
  /v3/futures/defaultMarginMode:
    get:
      description: get account level default margin mode
      parameters:
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
          example: abcdef123456
        description: ''
      - name: x-api-signature
        in: header
        required: true
        schema:
          type: string
          example: signaturestring
        description: ''
      - name: x-api-timestamp
        in: header
        required: true
        schema:
          type: string
          example: '1718943200000'
        description: ''
      - name: symbol
        in: query
        description: ''
        required: false
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefaultMarginModeResponse'
      security: []
      tags:
      - Futures
      summary: Get futures default margin mode
      x-summary-source: derived
      operationId: getV3FuturesDefaultMarginMode
      x-operation-id-source: derived
    put:
      description: set account level default margin mode
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetAccountMarginMode'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
      security:
      - ApiKeyAuth: []
        ApiSignAuth: []
        ApiTimestampAuth: []
      tags:
      - Futures
      summary: Replace futures default margin mode
      x-summary-source: derived
      operationId: putV3FuturesDefaultMarginMode
      x-operation-id-source: derived
  /v3/futures/defaultMarginMode/{symbol}:
    put:
      description: set account level default margin mode
      parameters:
      - name: symbol
        in: path
        required: true
        schema:
          type: string
        description: ''
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetAccountMarginMode'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
      security:
      - ApiKeyAuth: []
        ApiSignAuth: []
        ApiTimestampAuth: []
      tags:
      - Futures
      summary: Replace futures default margin mode by symbol
      x-summary-source: derived
      operationId: putV3FuturesDefaultMarginModeBySymbol
      x-operation-id-source: derived
  /v3/futures/defaultMarginMode/reset:
    post:
      description: reset account level default margin mode
      parameters:
      - $ref: '#/components/parameters/ApiKeyHeader'
      - $ref: '#/components/parameters/SignatureHeader'
      - $ref: '#/components/parameters/TimestampHeader'
      requestBody:
        description: ''
        content:
          application/json:
            schema: {}
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
      security: []
      tags:
      - Futures
      summary: Create futures default margin mode reset
      x-summary-source: derived
      operationId: postV3FuturesDefaultMarginModeReset
      x-operation-id-source: derived
  /v3/futures/leverage:
    get:
      description: get account leverage
      parameters:
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
          example: abcdef123456
        description: ''
      - name: x-api-signature
        in: header
        required: true
        schema:
          type: string
          example: signaturestring
        description: ''
      - name: x-api-timestamp
        in: header
        required: true
        schema:
          type: string
          example: '1718943200000'
        description: ''
      - name: symbol
        in: query
        description: Symbol name
        required: true
        explode: true
        schema:
          type: string
      - name: marginMode
        in: query
        description: 'values: CROSS | ISOLATED'
        required: true
        explode: true
        schema:
          type: string
      - name: positionMode
        in: query
        description: 'values: ONE_WAY | HEDGE_MODE'
        required: true
        explode: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeverageResponse'
      security: []
      tags:
      - Futures
      summary: Get futures leverage
      x-summary-source: derived
      operationId: getV3FuturesLeverage
      x-operation-id-source: derived
    put:
      description: set account leverage
      parameters:
      - $ref: '#/components/parameters/ApiKeyHeader'
      - $ref: '#/components/parameters/SignatureHeader'
      - $ref: '#/components/parameters/TimestampHeader'
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetFuturesLeverage'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
      security: []
      tags:
      - Futures
      summary: Replace futures leverage
      x-summary-source: derived
      operationId: putV3FuturesLeverage
      x-operation-id-source: derived
  /v3/futures/fundingFee/history:
    get:
      description: get funding fee history
      parameters:
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
          example: abcdef123456
        description: ''
      - name: x-api-signature
        in: header
        required: true
        schema:
          type: string
          example: signaturestring
        description: ''
      - name: x-api-timestamp
        in: header
        required: true
        schema:
          type: string
          example: '1718943200000'
        description: ''
      - name: symbol
        in: query
        description: Symbol name
        required: true
        schema:
          type: string
      - name: startTime
        in: query
        description: Start timestamp in Unix timestamp format in milliseconds
        required: false
        schema:
          type: integer
      - name: endTime
        in: query
        description: End timestamp in Unix timestamp format in milliseconds
        required: false
        schema:
          type: integer
      - name: page
        in: query
        description: Page number
        required: false
        schema:
          type: integer
      - name: size
        in: query
        description: Data size per page, max 500
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetFundingFeeHistoryResponse'
      security: []
      tags:
      - Futures
      summary: Get futures funding fee history
      x-summary-source: derived
      operationId: getV3FuturesFundingFeeHistory
      x-operation-id-source: derived
  /v3/futures/positions:
    get:
      description: get positions
      parameters:
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
          example: abcdef123456
        description: ''
      - name: x-api-signature
        in: header
        required: true
        schema:
          type: string
          example: signaturestring
        description: ''
      - name: x-api-timestamp
        in: header
        required: true
        schema:
          type: string
          example: '1718943200000'
        description: ''
      - name: symbol
        in: query
        description: Symbol name
        required: true
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPositionsResponse'
      security: []
      tags:
      - Futures
      summary: Get futures positions
      x-summary-source: derived
      operationId: getV3FuturesPositions
      x-operation-id-source: derived
  /v3/futures/positionMode:
    put:
      description: Set position mode
      parameters:
      - $ref: '#/components/parameters/ApiKeyHeader'
      - $ref: '#/components/parameters/SignatureHeader'
      - $ref: '#/components/parameters/TimestampHeader'
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PositionMode'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommonResponse'
      security: []
      tags:
      - Futures
      summary: Replace futures position mode
      x-summary-source: derived
      operationId: putV3FuturesPositionMode
      x-operation-id-source: derived
components:
  parameters:
    SignatureHeader:
      name: x-api-signature
      in: header
      required: true
      schema:
        type: string
        example: signaturestring
      description: api-signature
    TimestampHeader:
      name: x-api-timestamp
      in: header
      required: true
      schema:
        type: string
        example: '1718943200000'
      description: api-timestamp
    ApiKeyHeader:
      name: x-api-key
      in: header
      required: true
      schema:
        type: string
        example: abcdef123456
      description: api-key
  schemas:
    DefaultMarginModeResponse:
      allOf:
      - $ref: '#/components/schemas/CommonResponse'
      - type: object
        properties:
          data:
            type: object
            properties:
              rows:
                type: array
                items:
                  type: object
                  properties:
                    symbol:
                      type: integer
                      description: ''
                    defaultMarginMode:
                      type: string
                      description: ''
                      enum:
                      - ISOLATED
                      - CROSSED
    SetAccountMarginMode:
      required:
      - defaultMarginMode
      type: object
      properties:
        defaultMarginMode:
          type: string
          description: 'default margin mode Enums: CROSS | ISOLATED'
    GetPositionsResponse:
      allOf:
      - $ref: '#/components/schemas/CommonResponse'
      - type: object
        properties:
          data:
            type: object
            properties:
              rows:
                type: array
                items:
                  type: object
                  properties:
                    symbol:
                      type: string
                      description: The trading pair symbol, e.g., PERP_BTC_USDT.
                    holding:
                      type: string
                      description: The current holding quantity of the asset in the position.
                    positionSide:
                      type: string
                      description: The position side, such as 'BOTH' for a long and short position.
                      enum:
                      - BOTH
                      - LONG
                      - SHORT
                    pendingLongQty:
                      type: string
                      description: The pending quantity for a long position.
                    pendingShortQty:
                      type: string
                      description: The pending quantity for a short position.
                    settlePrice:
                      type: string
                      description: The price at which the position will be settled.
                    averageOpenPrice:
                      type: string
                      description: The average price at which the position was opened.
                    pnl24H:
                      type: string
                      description: The profit and loss (PnL) for the position in the last 24 hours.
                    fee24H:
                      type: string
                      description: The total fee for the position in the last 24 hours.
                    markPrice:
                      type: string
                      description: The mark price of the position.
                    estLiqPrice:
                      type: string
                      description: The estimated liquidation price of the position.
                    adlQuantile:
                      type: integer
                      description: The ADL quantile, a risk management factor.
                    timestamp:
                      type: integer
                      format: int64
                      description: The timestamp of the position data in Unix epoch time (milliseconds).
    PositionMode:
      type: object
      properties:
        positionMode:
          type: string
          description: ONE_WAY/HEDGE_MODE
    SetFuturesLeverage:
      required:
      - symbol
      - marginMode
      - leverage
      type: object
      properties:
        symbol:
          type: string
          description: ''
        marginMode:
          type: string
          description: 'values: CROSS | ISOLATED'
        positionMode:
          type: string
          description: 'values: ONE_WAY | HEDGE_MODE Note:only required when marginMode=ISOLATED marginMode=CROSS , ignore this field'
        leverage:
          type: integer
          description: ''
    Meta:
      type: object
      properties:
        total:
          type: integer
          description: Total number of record
        recordsPerPage:
          type: integer
          description: Number of records per page
        currentPage:
          type: integer
          description: Current page number
    GetFundingFeeHistoryResponse:
      allOf:
      - $ref: '#/components/schemas/CommonResponse'
      - type: object
        properties:
          data:
            type: object
            properties:
              rows:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                      description: The unique identifier for the funding transaction.
                    symbol:
                      type: string
                      description: The trading pair symbol, e.g., PERP_BTC_USDT.
                    fundingRate:
                      type: number
                      format: float
                      description: The funding rate applied to the position.
                    markPrice:
                      type: string
                      description: The mark price of the position at the time of funding.
                    fundingFee:
                      type: string
                      description: The total funding fee for the position.
                    fundingIntervalHours:
                      type: integer
                      description: The interval in hours at which funding is paid or received.
                    paymentType:
                      type: string
                      description: The type of funding payment, e.g., 'Receive' or 'Pay'.
                    status:
                      type: string
                      description: The status of the funding transaction, e.g., 'COMPLETED'.
                      enum:
                      - COMPLETED
                      - FAILED
                    createdTime:
                      type: integer
                      format: int64
                      description: The Unix timestamp when the funding transaction was created.
                    updatedTime:
                      type: integer
                      format: int64
                      description: The Unix timestamp when the funding transaction was last updated.
              meta:
                $ref: '#/components/schemas/Meta'
    LeverageResponse:
      allOf:
      - $ref: '#/components/schemas/CommonResponse'
      - type: object
        properties:
          data:
            type: object
            properties:
              symbol:
                type: string
                description: The trading pair or symbol (e.g., PERP_BTC_USDT).
              marginMode:
                type: string
                description: The margin mode applied for the specified symbol.
                enum:
                - CROSS
                - ISOLATED
              positionMode:
                type: string
                description: The position mode applied for the specified symbol.
                enum:
                - ONE_WAY
                - HEDGE_MODE
              details:
                type: array
                description: Leverage settings for each position side.
                items:
                  type: object
                  properties:
                    positionSide:
                      type: string
                      description: The position side (LONG or SHORT).
                      enum:
                      - LONG
                      - SHORT
                    leverage:
                      type: integer
                      description: The leverage value set for this position side.
                  required:
                  - positionSide
                  - leverage
    CommonResponse:
      type: object
      properties:
        success:
          type: boolean
          description: 'true'
        timestamp:
          type: integer
          description: timestamp
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    api_key:
      type: apiKey
      name: api_keyqq
      in: header
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    ApiSignAuth:
      type: apiKey
      in: header
      name: x-api-signature
    ApiTimestampAuth:
      type: apiKey
      in: header
      name: x-api-timestamp
externalDocs:
  description: Find out more about Swagger
  url: http://swagger.io