HitBTC · Schema

Cross

CompanyCryptocurrencyCryptocurrency ExchangeTradingMarket DataFuturesWallets

Properties

Name Type Description
symbol string Trading symbol, where base currency is the currency of funds reserved on the exchange account for positions and quote currency is the currency of funds reserved on a margin account.
type object
created_at string Account creation date and time.
updated_at string Account last update date and time.
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 margin account.
amr boolean Current value of the AMR (auto margin replenishment) flag of the margin account.
leverage string Leverage—the ratio of the user own funds to funds borrowed from the platform.
positions array Open positions of the margin account.
currencies array Amount of funds on margin account.
View JSON Schema on GitHub

JSON Schema

hitbtc-trading-account-cross-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-account-cross-schema.json",
  "title": "Cross",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hitbtc-margin-accounts-api-openapi.yml#/components/schemas/trading_AccountCross",
  "allOf": [
    {
      "$ref": "#/$defs/trading_AccountBase"
    },
    {
      "$ref": "#/$defs/trading_Leverage"
    },
    {
      "type": "object",
      "required": [
        "positions"
      ],
      "properties": {
        "positions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/trading_Position"
          },
          "description": "Open positions of the margin account."
        },
        "currencies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/trading_IsolatedAccountBalance"
          },
          "description": "Amount of funds on margin account.\n"
        }
      }
    }
  ],
  "$defs": {
    "trading_AccountBase": {
      "title": "Margin account",
      "type": "object",
      "required": [
        "symbol",
        "type",
        "created_at",
        "updated_at",
        "currencies",
        "margin_call",
        "margin_auto",
        "amr"
      ],
      "properties": {
        "symbol": {
          "type": "string",
          "description": "Trading symbol, where base currency is the currency of funds\nreserved on the exchange account for positions and quote currency is\nthe currency of funds reserved on a margin account.\n"
        },
        "type": {
          "$ref": "#/$defs/trading_MarginModeCommon"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "Account creation date and time.\n"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "description": "Account last update date and time.\n"
        },
        "margin_call": {
          "type": "boolean",
          "description": "Flag indicating whether additional margin is required to maintain\nthe position.\n"
        },
        "margin_auto": {
          "type": "boolean",
          "description": "Flag indicating whether AMM (auto margin management) is enabled for\nthe margin account.\n"
        },
        "amr": {
          "type": "boolean",
          "description": "Current value of the AMR (auto margin replenishment) flag of the\nmargin account.\n"
        }
      }
    },
    "trading_IsolatedAccountBalance": {
      "title": "Margin account balance",
      "type": "object",
      "required": [
        "code",
        "margin_balance",
        "reserved_orders",
        "reserved_positions"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "Currency code."
        },
        "margin_balance": {
          "type": "string",
          "description": "The total value of funds reserved for the position."
        },
        "reserved_orders": {
          "type": "string",
          "description": "The value reserved for active orders in the position."
        },
        "reserved_positions": {
          "type": "string",
          "description": "The minimum value reserved for position's executed quantity that cannot be reduced."
        }
      }
    },
    "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_Position": {
      "title": "Margin position",
      "allOf": [
        {
          "$ref": "#/$defs/trading_PositionBase"
        },
        {
          "$ref": "#/$defs/trading_Leverage"
        }
      ]
    },
    "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-account-cross"
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.