HitBTC · Schema
trading_HistoryOrder
CompanyCryptocurrencyCryptocurrency ExchangeTradingMarket DataFuturesWallets
Properties
| Name | Type | Description |
|---|---|---|
| id | integer | Unique order identifier as assigned by the exchange. |
| clientOrderId | string | Unique order identifier as assigned by the trader. The order history may list several orders with the same `"clientOrderId"`. |
| symbol | string | Symbol code. |
| side | string | Trade side. |
| status | string | Order state: * *new*—an order is placed in the order book. * *suspended*—a `stopLimit`, `stopMarket`, `takeProfitLimit` or `takeProfitMarket` order is parked until it meets the conditions for placemen |
| type | string | Order type. |
| timeInForce | string | Order expiration mode. Values: * *GTC* ("Good-Till-Canceled")—order will not be closed until it is filled. * *IOC* ("Immediate-Or-Cancel")—order must be executed immediately. Any part of an IOC order |
| quantity | string | Order quantity. |
| displayQuantity | string | The visible part of the hidden order quantity. The only valid value is '0'. |
| cumQuantity | string | Executed order quantity. |
| price | string | Order price. |
| avgPrice | string | Average price of executed lots. |
| expireTime | string | Date of order expiration. Specified if `"timeInForce"` is `GTD`. |
| positionId | integer | Position identifier. |
| stopPrice | string | The price level that triggers order activation. Specified if `"type"` is `stopLimit`, `stopMarket`, `takeProfitLimit`, or `takeProfitMarket`. |
| createdAt | string | Date of order's creation. |
| updatedAt | string | Date of order's last update. |
| orderListId | string | Order list identifier. Returned only for an order list request. |
| contingencyType | string | Order list type. Returned only for an order list request. |
| margin_mode | string | Margin mode. |
| closePosition | boolean | Flag indicating a stop market order must close a margin position when executed or be canceled otherwise. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/hitbtc/main/json-schema/hitbtc-trading-history-order-schema.json",
"title": "trading_HistoryOrder",
"x-generated": "2026-10-13",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/hitbtc-v2-openapi.yml#/components/schemas/trading_HistoryOrder",
"required": [
"id",
"clientOrderId",
"symbol",
"side",
"status",
"type",
"timeInForce",
"quantity",
"cumQuantity",
"price",
"avgPrice",
"createdAt",
"updatedAt",
"margin_mode"
],
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "uint64",
"description": "Unique order identifier as assigned by the exchange."
},
"clientOrderId": {
"type": "string",
"description": "Unique order identifier as assigned by the trader. The order history may list several orders with the same `\"clientOrderId\"`."
},
"symbol": {
"type": "string",
"description": "Symbol code."
},
"side": {
"type": "string",
"enum": [
"sell",
"buy"
],
"description": "Trade side."
},
"status": {
"type": "string",
"enum": [
"new",
"suspended",
"partiallyFilled",
"filled",
"canceled",
"expired"
],
"description": "Order state:\n* *new*—an order is placed in the order book.\n* *suspended*—a `stopLimit`, `stopMarket`, `takeProfitLimit` or `takeProfitMarket` order is parked until it meets the conditions for placement in the order book.\n* *partiallyFilled*—an order is executed, but a part of its quantity is not filled yet.\n* *filled*—order quantity filled completely.\n* *canceled*—an order is canceled. It can either be done by a user through a cancel/replace request or by the system under specific circumstances.\n* *expired*—an order is deactivated after it no longer satisfies Time in Force (IOC, FOK) or Post Only requirements.\n* *rejected*—an order has been rejected.\n"
},
"type": {
"type": "string",
"enum": [
"limit",
"market",
"stopLimit",
"stopMarket",
"takeProfitLimit",
"takeProfitMarket"
],
"description": "Order type."
},
"timeInForce": {
"type": "string",
"enum": [
"GTC",
"IOC",
"FOK",
"Day",
"GTD"
],
"description": "Order expiration mode.\n\nValues:\n* *GTC* (\"Good-Till-Canceled\")—order will not be closed until it is filled.\n* *IOC* (\"Immediate-Or-Cancel\")—order must be executed immediately. Any part of an IOC order that cannot be filled immediately will be canceled.\n* *FOK* (\"Fill-Or-Kill\")—order must be executed immediately and completely or not executed at all.\n* *Day*—keeps the order active until the end of the trading day (23:59 UTC+0).\n* *GTD* (\"Good-Till-Date\")—order will be canceled on the specified date.\n"
},
"quantity": {
"type": "string",
"description": "Order quantity."
},
"displayQuantity": {
"type": "string",
"description": "The visible part of the hidden order quantity. The only valid value is '0'."
},
"cumQuantity": {
"type": "string",
"description": "Executed order quantity."
},
"price": {
"type": "string",
"description": "Order price."
},
"avgPrice": {
"type": "string",
"description": "Average price of executed lots."
},
"expireTime": {
"type": "string",
"format": "date-time",
"description": "Date of order expiration. Specified if `\"timeInForce\"` is `GTD`."
},
"positionId": {
"type": "integer",
"format": "uint64",
"description": "Position identifier."
},
"stopPrice": {
"type": "string",
"description": "The price level that triggers order activation. Specified if `\"type\"` is `stopLimit`, `stopMarket`, `takeProfitLimit`, or `takeProfitMarket`."
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "Date of order's creation."
},
"updatedAt": {
"type": "string",
"format": "date-time",
"description": "Date of order's last update."
},
"orderListId": {
"type": "string",
"description": "Order list identifier. Returned only for an order list request."
},
"contingencyType": {
"type": "string",
"enum": [
"allOrNone",
"oneCancelOther",
"oneTriggerOther",
"oneTriggerOneCancelOther"
],
"description": "Order list type. Returned only for an order list request."
},
"margin_mode": {
"type": "string",
"enum": [
"isolated",
"cross"
],
"description": "Margin mode."
},
"closePosition": {
"type": "boolean",
"description": "Flag indicating a stop market order must close a margin position\n when executed or be canceled otherwise.\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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/hitbtc-trading-history-order"
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.