BTSE · Schema
Twap
TWAP order — slices a large order into smaller child orders spread across a time window
CompanyCryptocurrencyExchangeTradingDigital AssetsFuturesWebSocket
Properties
| Name | Type | Description |
|---|---|---|
| orderType | string | TWAP |
| symbol | string | Trading pair, e.g. BTC-USDT |
| orderSide | string | BUY or SELL |
| orderSize | number | Total order quantity in base currency |
| timePeriod | integer | Total execution window in seconds |
| clOrderId | string | Client-supplied order identifier, echoed in the response (max 64 characters) |
| makerFirst | boolean | If true, place child orders as post-only first before falling back to taker |
| randomizeSize | boolean | If true, randomize child order sizes to reduce predictability |
| subTwapMaxOrderSize | number | Maximum size of each child order, in base currency |
| maxSpread | number | Pause execution while the bid-ask spread exceeds this value |
| maxDistanceThroughBook | number | 0 to 1; omit or set negative to disable, defaults to -1 (disabled) |
| pausePrice | number | Pause execution when the reference price crosses this level |
| activationTriggerPrice | number | Delay execution until the market price reaches this level |
| activationTriggerPriceType | string | Reference price for the activation trigger (LAST_PRICE, MARK_PRICE, or INDEX_PRICE) |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/btse/main/json-schema/btse-twap-schema.json",
"title": "Twap",
"description": "TWAP order — slices a large order into smaller child orders spread across a time window",
"x-generated": "2026-10-13",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/btse-spot-openapi.yml#/components/schemas/Twap",
"allOf": [
{
"$ref": "#/$defs/PlaceAlgoOrderReq"
},
{
"type": "object",
"properties": {
"symbol": {
"type": "string",
"description": "Trading pair, e.g. BTC-USDT"
},
"orderType": {
"type": "string",
"description": "TWAP",
"enum": [
"LIMIT",
"MARKET",
"PEG",
"OCO",
"TWAP",
"CONDITIONAL",
"TRAILING"
]
},
"orderSide": {
"type": "string",
"description": "BUY or SELL",
"enum": [
"BUY",
"SELL"
]
},
"orderSize": {
"type": "number",
"format": "double",
"description": "Total order quantity in base currency"
},
"timePeriod": {
"type": "integer",
"format": "int64",
"description": "Total execution window in seconds"
},
"clOrderId": {
"type": "string",
"description": "Client-supplied order identifier, echoed in the response (max 64 characters)"
},
"makerFirst": {
"type": "boolean",
"description": "If true, place child orders as post-only first before falling back to taker"
},
"randomizeSize": {
"type": "boolean",
"description": "If true, randomize child order sizes to reduce predictability"
},
"subTwapMaxOrderSize": {
"type": "number",
"format": "double",
"description": "Maximum size of each child order, in base currency"
},
"maxSpread": {
"type": "number",
"format": "double",
"description": "Pause execution while the bid-ask spread exceeds this value"
},
"maxDistanceThroughBook": {
"type": "number",
"format": "double",
"default": -1,
"description": "0 to 1; omit or set negative to disable, defaults to -1 (disabled)"
},
"pausePrice": {
"type": "number",
"format": "double",
"description": "Pause execution when the reference price crosses this level"
},
"activationTriggerPrice": {
"type": "number",
"format": "double",
"description": "Delay execution until the market price reaches this level"
},
"activationTriggerPriceType": {
"type": "string",
"description": "Reference price for the activation trigger (LAST_PRICE, MARK_PRICE, or INDEX_PRICE)",
"enum": [
"INDEX_PRICE",
"LAST_PRICE",
"MARK_PRICE"
]
}
}
}
],
"required": [
"orderSide",
"orderSize",
"orderType",
"symbol",
"timePeriod"
],
"$defs": {
"PlaceAlgoOrderReq": {
"properties": {
"orderType": {
"type": "string"
}
},
"required": [
"orderType"
]
}
}
}
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-twap"
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.