Raw schema
{
"type": "object",
"properties": {
"instrumentType": {
"description": "Linear quote-margined instruments only. Inverse contracts and liquidation are unsupported.",
"type": "string",
"const": "linear"
},
"quoteCurrency": {
"description": "Currency shared by all monetary inputs. Defaults to USD; no currency conversion is performed.",
"type": "string",
"pattern": "^[A-Z][A-Z0-9]{1,9}$"
},
"entryPrice": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000,
"description": "Planned entry price in quote currency per base unit."
},
"stopPrice": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000,
"description": "Planned stop price. Direction is derived from entry and stop."
},
"fees": {
"description": "User-supplied rates. Omission explicitly assumes zero fees; no exchange rate lookup is performed.",
"type": "object",
"properties": {
"entryPercent": {
"type": "number",
"minimum": 0,
"exclusiveMaximum": 100,
"description": "Entry fee percent, e.g. 0.05 means 0.05%, not 5%."
},
"stopPercent": {
"type": "number",
"minimum": 0,
"exclusiveMaximum": 100,
"description": "Stop exit fee percent, e.g. 0.05."
},
"targetPercent": {
"description": "Target exit fee percent; defaults to stopPercent.",
"type": "number",
"minimum": 0,
"exclusiveMaximum": 100
}
},
"required": [
"entryPercent",
"stopPercent"
],
"additionalProperties": false
},
"accountBalance": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000,
"description": "Account balance in the same quote currency as prices."
},
"riskPercent": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 100,
"description": "User-chosen account risk percentage, e.g. 1 means 1%. Never infer a risk preference."
},
"targetPrice": {
"description": "Optional profit target, opposite the stop relative to entry.",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000000
}
},
"required": [
"entryPrice",
"stopPrice",
"accountBalance",
"riskPercent"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}