Properties
| Name | Type | Description |
|---|---|---|
| status | integer | Status code of the closing order. |
| type | integer | Event type code of the closing order response. |
| symbol | string | Market symbol of the closing order (e.g. BTC-PERP). |
| postOnly | boolean | Whether the closing order is post-only. |
| orderSide | string | Side of the closing order (opposite to the position direction). |
| orderId | string | Server-assigned order id of the closing order. |
| clOrderID | string | Client-assigned order id echoed back, if provided in the request. |
| timestamp | integer | Server timestamp of the response, in milliseconds since epoch. |
| price | number | Requested limit price of the closing order (0 for market orders). |
| avgFilledPrice | number | Average fill price achieved so far. |
| message | string | Human-readable message describing the result. |
| originalOrderSize | integer | Original order size at submission, in contracts. |
| currentOrderSize | integer | Current remaining size on the order book, in contracts. |
| filledSize | integer | Size filled by the most recent fill event, in contracts. |
| totalFilledSize | integer | Total size filled since order submission, in contracts. |
| remainingSize | integer | Size still outstanding on the order, in contracts. |
| positionMode | string | Position mode of the closed position (ONE_WAY or HEDGE). |
| positionDirection | string | Position direction of the closed position (LONG or SHORT). |
| positionId | string | Identifier of the position being closed. |
| timeInForce | string | Time-in-force applied to the closing order (e.g. GTC, IOC, FOK). |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/btse/main/json-schema/btse-close-position-resp-schema.json",
"title": "ClosePositionResp",
"x-generated": "2026-10-13",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/btse-futures-openapi.yml#/components/schemas/ClosePositionResp",
"type": "object",
"properties": {
"status": {
"type": "integer",
"format": "int32",
"description": "Status code of the closing order."
},
"type": {
"type": "integer",
"format": "int32",
"description": "Event type code of the closing order response."
},
"symbol": {
"type": "string",
"description": "Market symbol of the closing order (e.g. BTC-PERP)."
},
"postOnly": {
"type": "boolean",
"description": "Whether the closing order is post-only."
},
"orderSide": {
"type": "string",
"description": "Side of the closing order (opposite to the position direction).",
"enum": [
"BUY",
"SELL"
]
},
"orderId": {
"type": "string",
"description": "Server-assigned order id of the closing order."
},
"clOrderID": {
"type": "string",
"description": "Client-assigned order id echoed back, if provided in the request."
},
"timestamp": {
"type": "integer",
"format": "int64",
"description": "Server timestamp of the response, in milliseconds since epoch."
},
"price": {
"type": "number",
"format": "double",
"description": "Requested limit price of the closing order (0 for market orders)."
},
"avgFilledPrice": {
"type": "number",
"format": "double",
"description": "Average fill price achieved so far."
},
"message": {
"type": "string",
"description": "Human-readable message describing the result."
},
"originalOrderSize": {
"type": "integer",
"format": "int64",
"description": "Original order size at submission, in contracts."
},
"currentOrderSize": {
"type": "integer",
"format": "int64",
"description": "Current remaining size on the order book, in contracts."
},
"filledSize": {
"type": "integer",
"format": "int64",
"description": "Size filled by the most recent fill event, in contracts."
},
"totalFilledSize": {
"type": "integer",
"format": "int64",
"description": "Total size filled since order submission, in contracts."
},
"remainingSize": {
"type": "integer",
"format": "int64",
"description": "Size still outstanding on the order, in contracts."
},
"positionMode": {
"type": "string",
"description": "Position mode of the closed position (ONE_WAY or HEDGE).",
"enum": [
"ONE_WAY",
"HEDGE",
"ISOLATED"
]
},
"positionDirection": {
"type": "string",
"description": "Position direction of the closed position (LONG or SHORT).",
"enum": [
"LONG",
"SHORT"
]
},
"positionId": {
"type": "string",
"description": "Identifier of the position being closed."
},
"timeInForce": {
"type": "string",
"description": "Time-in-force applied to the closing order (e.g. GTC, IOC, FOK)."
}
}
}
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/btse-close-position-resp"
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.