HitBTC · Schema
Positions history
CompanyCryptocurrencyCryptocurrency ExchangeTradingMarket DataFuturesWallets
Properties
| Name | Type | Description |
|---|---|---|
| id | integer | Position identifier. |
| entry_value | string | Position value in currency. |
| entry_price | string | Weighted average open price. |
| avg_buy_price | string | Weighted average buy price. |
| avg_sell_price | string | Weighted average sell price. |
| quantity | string | Position quantity. |
| buy_quantity | string | Total quantity of buy trades in the position. |
| sell_quantity | string | Total quantity of sell trades in the position. |
| margin_call_price | string | If the market is equal to or worse than this price a margin call will be issued. |
| liquidation_price | string | The price at which the platform begins to close the position. |
| bankruptcy_price | string | The price at which the position can no longer be closed with any non-negative PnL. |
| margin | string | Amount of margin expressed in the quote currency. |
| required_margin | string | Margin reserved for close orders. |
| orders_margin | string | Margin reserved for open orders. |
| pnl | string | Unrealized Profit and Loss. |
| leverage | string | Position leverage. |
| margin_mode | object | |
| state | string | Position state. |
| 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 |
| symbol | string | Symbol code. |
| margin_call | boolean | Flag indicating the position is close to the liquidation, and increased margin may prevent it from happening. |
| margin_auto | boolean | Flag indicating whether AMM (auto margin management) was enabled for the position. |
| amr | boolean | Value of the AMR (auto margin replenishment) flag of the position. |
| create_timestamp | integer | Timestamp of the position creation in nanoseconds. |
| update_timestamp | integer | Timestamp of the position last update in nanoseconds. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/hitbtc/main/json-schema/hitbtc-trading-position-history-schema.json",
"title": "Positions history",
"x-generated": "2026-10-13",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/hitbtc-openapi.yml#/components/schemas/trading_PositionHistory",
"type": "object",
"required": [
"id",
"entry_value",
"entry_price",
"avg_buy_price",
"avg_sell_price",
"quantity",
"buy_quantity",
"sell_quantity",
"margin_call_price",
"liquidation_price",
"bankruptcy_price",
"margin",
"required_margin",
"orders_margin",
"pnl",
"leverage",
"margin_mode",
"state",
"symbol",
"margin_call",
"margin_auto",
"amr",
"create_timestamp",
"update_timestamp"
],
"properties": {
"id": {
"type": "integer",
"format": "uint64",
"description": "Position identifier."
},
"entry_value": {
"type": "string",
"description": "Position value in currency."
},
"entry_price": {
"type": "string",
"description": "Weighted average open price."
},
"avg_buy_price": {
"type": "string",
"description": "Weighted average buy price."
},
"avg_sell_price": {
"type": "string",
"description": "Weighted average sell price."
},
"quantity": {
"type": "string",
"description": "Position quantity."
},
"buy_quantity": {
"type": "string",
"description": "Total quantity of buy trades in the position."
},
"sell_quantity": {
"type": "string",
"description": "Total quantity of sell trades in the position."
},
"margin_call_price": {
"type": "string",
"description": "If the market is equal to or worse than this price a margin call will be issued."
},
"liquidation_price": {
"type": "string",
"description": "The price at which the platform begins to close the position."
},
"bankruptcy_price": {
"type": "string",
"description": "The price at which the position can no longer be closed with any non-negative PnL."
},
"margin": {
"type": "string",
"description": "Amount of margin expressed in the quote currency."
},
"required_margin": {
"type": "string",
"description": "Margin reserved for close orders."
},
"orders_margin": {
"type": "string",
"description": "Margin reserved for open orders."
},
"pnl": {
"type": "string",
"description": "Unrealized Profit and Loss."
},
"leverage": {
"type": "string",
"description": "Position leverage."
},
"margin_mode": {
"$ref": "#/$defs/trading_MarginModeCommon"
},
"state": {
"type": "string",
"description": "Position state.",
"enum": [
"closed",
"active",
"liquidated"
]
},
"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"
},
"symbol": {
"type": "string",
"description": "Symbol code."
},
"margin_call": {
"type": "boolean",
"description": "Flag indicating the position is close to the liquidation, and increased margin may prevent it from happening."
},
"margin_auto": {
"type": "boolean",
"description": "Flag indicating whether AMM (auto margin management) was enabled for\n the position.\n"
},
"amr": {
"type": "boolean",
"description": "Value of the AMR (auto margin replenishment) flag of the position.\n"
},
"create_timestamp": {
"type": "integer",
"format": "uint64",
"description": "Timestamp of the position creation in nanoseconds."
},
"update_timestamp": {
"type": "integer",
"format": "uint64",
"description": "Timestamp of the position last update in nanoseconds."
}
},
"$defs": {
"trading_MarginModeCommon": {
"title": "Margin mode",
"type": "string",
"enum": [
"cross",
"Cross",
"isolated",
"Isolated"
],
"description": "Margin mode."
}
}
}
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-position-history"
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.