HitBTC · Schema

Margin position

CompanyCryptocurrencyCryptocurrency ExchangeTradingMarket DataFuturesWallets

Properties

Name Type Description
id integer Position identifier.
symbol string Symbol code.
margin_mode object
quantity string Position quantity.
price_entry string Average weighted price of position open orders.
price_margin_call string Margin call price.
price_liquidation string Liquidation price.
pnl string Unrealized profit and loss.
fee_cumulative string Total amount of fees paid throughout the position lifetime until it is closed. Format: Decimal Values: `0` if a new position created ⚠️ This value does zero out after the position closes and does not
created_at string Position creation date and time.
updated_at string Position last update date and time.
status string Position status. Values: * `normal`—the client can place and cancel orders, amend and change the margin; * `blocked`—the client cannot place orders on either side; * `closeOnly`—the client may only pl
required_margin string Amount of currency reserved for close orders.
orders_margin string Amount of currency reserved for open orders.
margin_call boolean Flag indicating whether additional margin is required to maintain the position.
margin_auto boolean Flag indicating whether AMM (auto margin management) is enabled for the position.
amr boolean Current value of the AMR (auto margin replenishment) flag of the position.
leverage string Leverage—the ratio of the user own funds to funds borrowed from the platform.
View JSON Schema on GitHub

JSON Schema

hitbtc-trading-position-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-position-schema.json",
  "title": "Margin position",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hitbtc-margin-positions-api-openapi.yml#/components/schemas/trading_Position",
  "allOf": [
    {
      "$ref": "#/$defs/trading_PositionBase"
    },
    {
      "$ref": "#/$defs/trading_Leverage"
    }
  ],
  "$defs": {
    "trading_Leverage": {
      "title": "Leverage",
      "type": "object",
      "required": [
        "leverage"
      ],
      "properties": {
        "leverage": {
          "type": "string",
          "description": "Leverage—the ratio of the user own funds to funds borrowed from the\nplatform.\n"
        }
      }
    },
    "trading_MarginModeCommon": {
      "title": "Margin mode",
      "type": "string",
      "enum": [
        "cross",
        "Cross",
        "isolated",
        "Isolated"
      ],
      "description": "Margin mode."
    },
    "trading_PositionBase": {
      "title": "Margin position",
      "type": "object",
      "required": [
        "id",
        "symbol",
        "margin_mode",
        "quantity",
        "price_entry",
        "price_margin_call",
        "price_liquidation",
        "pnl",
        "created_at",
        "updated_at",
        "status",
        "required_margin",
        "orders_margin",
        "margin_auto",
        "amr"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "format": "uint64",
          "description": "Position identifier."
        },
        "symbol": {
          "type": "string",
          "description": "Symbol code."
        },
        "margin_mode": {
          "$ref": "#/$defs/trading_MarginModeCommon"
        },
        "quantity": {
          "type": "string",
          "description": "Position quantity."
        },
        "price_entry": {
          "type": "string",
          "description": "Average weighted price of position open orders."
        },
        "price_margin_call": {
          "type": "string",
          "description": "Margin call price."
        },
        "price_liquidation": {
          "type": "string",
          "description": "Liquidation price."
        },
        "pnl": {
          "type": "string",
          "description": "Unrealized profit and loss."
        },
        "fee_cumulative": {
          "type": "string",
          "description": "Total amount of fees paid throughout the position lifetime until it\n is closed.\n\nFormat: Decimal\n\nValues: `0` if a new position created\n\n⚠️ This value does zero out after the position closes  and does not\n when it flips.\n"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "Position creation date and time."
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "description": "Position last update date and time."
        },
        "status": {
          "type": "string",
          "enum": [
            "normal",
            "blocked",
            "closeOnly"
          ],
          "description": "Position status.\n\nValues:\n* `normal`—the client can place and cancel orders, amend and change\n  the margin;\n* `blocked`—the client cannot place orders on either side;\n* `closeOnly`—the client may only place orders to close the\n  position.\n"
        },
        "required_margin": {
          "type": "string",
          "description": "Amount of currency reserved for close orders.\n"
        },
        "orders_margin": {
          "type": "string",
          "description": "Amount of currency reserved for open orders.\n"
        },
        "margin_call": {
          "type": "boolean",
          "description": "Flag indicating whether additional margin is required to maintain the position.\n"
        },
        "margin_auto": {
          "type": "boolean",
          "description": "Flag indicating whether AMM (auto margin management) is enabled for\n the position.\n"
        },
        "amr": {
          "type": "boolean",
          "description": "Current value of the AMR (auto margin replenishment) flag of the\n position.\n"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/hitbtc-trading-position"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.