Delta Exchange Positions API

Get Open positions, Change Position Margin, Close Position, Close All Position

GitHub OpenAPI
Business capability
Trading Position Management BC-1370.20

Operations 2

GET /positions Get open positions #
POST /positions/change_margin Add/Remove position margin #

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/delta-exchange:delta-exchange-positions-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

delta-exchange-positions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: '## REST API for Delta Exchange

    Find out more on https://delta.exchange'
  version: 1.0.0
  title: Delta Exchange Positions API
  termsOfService: https://docs.google.com/document/d/e/2PACX-1vSDARn3b_VlmGZjJjlROm0MFpxX6KoLzVrqPZLSD4rh7sBhpP6kDP8WMSgUlaitwjCBUBd3-fV-MDId/pub
  contact:
    email: support@delta.exchange
servers:
- url: https://api.india.delta.exchange/
tags:
- name: Positions
  description: Get Open positions, Change Position Margin, Close Position
paths:
  /positions:
    get:
      tags:
      - Positions
      operationId: getPositions
      summary: Get open positions
      security:
      - api-key: []
        signature: []
        timestamp: []
      responses:
        '200':
          description: List of all open positions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArrayOfPositions'
  /positions/change_margin:
    post:
      tags:
      - Positions
      operationId: changePositionMargin
      summary: Add/Remove position margin
      security:
      - api-key: []
        signature: []
        timestamp: []
      responses:
        '200':
          description: returns the position object
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Position'
        '400':
          description: Returns error if position margin could not be changed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    enum:
                    - PositionNotSet
                    - LeverageLimitExceeded
                    - InsufficientMargin
                    - ExistingOrderWithLowerThanBankruptcy
                  message:
                    type: string
                    description: A more verbose error message
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - product_id
              - delta_margin
              properties:
                product_id:
                  type: integer
                delta_margin:
                  type: string
                  description: Delta in the position margin, positive in case of adding margin & negative in case of removing margin
        required: true
components:
  schemas:
    Position:
      type: object
      description: A position object
      properties:
        user_id:
          type: integer
        size:
          type: integer
          description: Position size, negative for short and positive for long
        entry_price:
          type: string
        margin:
          type: string
        liquidation_price:
          type: string
        bankruptcy_price:
          type: string
        adl_level:
          type: integer
        product:
          $ref: '#/components/schemas/Product'
    ArrayOfPositions:
      type: array
      items:
        $ref: '#/components/schemas/Position'
    Asset:
      type: object
      properties:
        id:
          type: integer
          format: int64
        symbol:
          type: string
        precision:
          type: integer
    Product:
      type: object
      properties:
        id:
          type: integer
          format: int64
          description: id of a product or a contract
        symbol:
          type: string
          description: symbol of a product or a contract e.g. LINKBTC, XRPUSDQ
        description:
          type: string
          description: description of a product or a contract
        created_at:
          type: string
          description: product/contract creation date and time
        updated_at:
          type: string
          description: product/contract update date and time
        settlement_time:
          type: string
          description: settlement Timestamp of futures contract
        product_type:
          type: string
          enum:
          - future
          - inverse_future
          description: contract type 'future' or 'inverse_future'
        pricing_source:
          type: string
          description: source and method of contract pricing
        impact_size:
          type: integer
          description: size of a typical trade. Used in the computation of mark price
        initial_margin:
          type: integer
          description: The amount required to enter into a new position
        maintenance_margin:
          type: string
          description: 'The amount necessary when a loss on a futures position requires you to allocate more funds to return the margin to the initial margin level. '
        contract_value:
          type: string
          description: The notional value of a futures contract is simply the spot price of the asset multiplied by the amount of the asset specified in the contract
        contract_unit_currency:
          type: string
          description: This is the unit of  1 contract, for vanilla futures, its underlying asset. for inverse, it is settling asset. for quanto, its settling asset / quoting asset
        tick_size:
          type: string
          description: The minimum gap between 2 consecutive prices.
        trading_status:
          type: string
          enum:
          - operational
          - disrupted_cancel_only
          - disrupted_post_only
          description: 'trading status of the contract e.g. ''operational'',''disrupted_cancel_only'' or ''disrupted_post_only'' '
        max_leverage_notional:
          type: string
          description: maximum notional position size (in settling asset terms) that can be acquired at highest allowed leverage for a given contract.
        default_leverage:
          type: string
          description: default leverage
        initial_margin_scaling_factor:
          type: string
        maintenance_margin_scaling_factor:
          type: string
        commission_rate:
          type: string
          description: rate at which commission fee will be calculated for a trade in given contract
        maker_commission_rate:
          type: string
          description: rate at which maker rebate will be calculated
        liquidation_penalty_factor:
          type: string
          description: 'Determines liquidation charge as per the following formula: liquidation_penalty_factor * minimum maintenance margin'
        contract_type:
          type: string
          description: ' Type of contracts e.g. futures, perpetual futures, '
        position_size_limit:
          type: integer
          description: Maximum size of contracts in a single order can be placed
        basis_factor_max_limit:
          type: string
          description: Maximum allowed value of annualized basis
        is_quanto:
          type: boolean
          description: Flag which denotes whether future contract is quanto or not
        funding_method:
          type: string
          description: Method used to calculate funding for given contract. e.g. Fixed or mark price
        annualized_funding:
          type: string
          description: Maximum allowed value of funding, expressed as annual rate.
        price_band:
          type: string
          description: he range around mark price in which trading is allowed. This number is in percentage.
        underlying_asset:
          $ref: '#/components/schemas/Asset'
        quoting_asset:
          $ref: '#/components/schemas/Asset'
        settling_asset:
          $ref: '#/components/schemas/Asset'
  securitySchemes:
    api-key:
      type: apiKey
      name: api-key
      in: header
    signature:
      type: apiKey
      name: signature
      in: header
    timestamp:
      type: apiKey
      name: timestamp
      in: header