DigiFinex Margin API

The Margin API from DigiFinex — 5 operation(s) for margin.

Operations 5

GET /margin/currencies Currencies which support margin trading #
GET /margin/symbols Margin trading pair symbol #
GET /margin/assets Margin assets #
GET /margin/positions Margin positions #
POST /margin/position/close Close positions #

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/digifinex:digifinex-margin-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

digifinex-margin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DigiFinex Spot and REST Margin API
  version: '3.0'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-13: 29 operation(s) read from the public reference page https://docs.digifinex.com/en-ww/spot/v3/rest.html (each operation names its page in x-source; every path and method is copied verbatim from the page, parameters from its request tables).'
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-13'
  x-generator: scratch build.py (verbatim table extraction, no model)
  x-sources:
  - https://docs.digifinex.com/en-ww/spot/v3/rest.html
servers:
- url: https://openapi.digifinex.com/v3
tags:
- name: Margin
paths:
  /margin/currencies:
    get:
      operationId: get_margin_currencies
      tags:
      - Margin
      summary: Currencies which support margin trading
      x-source: https://docs.digifinex.com/en-ww/spot/v3/rest.html
      x-public: true
      security: []
      responses:
        '200':
          description: 'Success; the body carries "code": 0 as documented.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: Status code (0 = success)
  /margin/symbols:
    get:
      operationId: get_margin_symbols
      tags:
      - Margin
      summary: Margin trading pair symbol
      x-source: https://docs.digifinex.com/en-ww/spot/v3/rest.html
      x-public: true
      security: []
      responses:
        '200':
          description: 'Success; the body carries "code": 0 as documented.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: Status code (0 = success)
  /margin/assets:
    get:
      operationId: get_margin_assets
      tags:
      - Margin
      summary: Margin assets
      x-source: https://docs.digifinex.com/en-ww/spot/v3/rest.html
      x-public: false
      security:
      - accessKey: []
        accessSign: []
        accessTimestamp: []
      responses:
        '200':
          description: 'Success; the body carries "code": 0 as documented.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: Status code (0 = success)
  /margin/positions:
    get:
      operationId: get_margin_positions
      tags:
      - Margin
      summary: Margin positions
      x-source: https://docs.digifinex.com/en-ww/spot/v3/rest.html
      x-public: false
      parameters:
      - name: symbol
        in: query
        required: false
        schema:
          type: string
        description: Symbol Name
      security:
      - accessKey: []
        accessSign: []
        accessTimestamp: []
      responses:
        '200':
          description: 'Success; the body carries "code": 0 as documented.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: Status code (0 = success)
  /margin/position/close:
    post:
      operationId: post_margin_position_close
      tags:
      - Margin
      summary: Close positions
      x-source: https://docs.digifinex.com/en-ww/spot/v3/rest.html
      x-public: false
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - symbol
              properties:
                symbol:
                  type: string
                  description: Symbol Name
      security:
      - accessKey: []
        accessSign: []
        accessTimestamp: []
      responses:
        '200':
          description: 'Success; the body carries "code": 0 as documented.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: Status code (0 = success)
components:
  securitySchemes:
    accessKey:
      type: apiKey
      in: header
      name: ACCESS-KEY
      description: User's API-KEY
    accessSign:
      type: apiKey
      in: header
      name: ACCESS-SIGN
      description: HMAC-SHA256 signature of the request parameters, keyed by the API secret, as documented
    accessTimestamp:
      type: apiKey
      in: header
      name: ACCESS-TIMESTAMP
      description: Timestamp in seconds (spot); requests more than 5 seconds old are rejected unless ACCESS-RECV-WINDOW is set