v1
latestOpenAPI 3.1.02026-07-241653251.3 MBTrades
Submit batch of trades
Submits a batch of trades for settlement that was matched and executed outside of zerohash.
post/trades/batch
Headers
X-SCX-SIGNEDstring required
HMAC-SHA256 signature of the request, base64-encoded. See the Authentication guide for the exact signing formula.
X-SCX-TIMESTAMPstring required
Example:1678901234
Current Unix timestamp in seconds. Must be within 60 seconds of server time or the request is rejected.
Request body
Example request
[
{
"batch_trade_id": "f2f14251-e296-42ac-9bc7-01c9186b9219",
"client_trade_id": "f2f14251-e296-42ac-9bc7-01c9186b9219",
"trade_reporter": "user@00SCXM.com",
"trade_reporter_code": "00SCXM",
"reporting_party": "SCXM",
"settlement_schedule": "ABCDEF",
"platform_code": "PLAT01",
"market_identifier_code": "SCXM",
"symbol": "BTC/USD",
"product_type": "spot",
"trade_type": "regular",
"trade_price": "10000",
"trade_quantity": "1.0",
"physical_delivery": true,
"transaction_timestamp": 2554408627334,
"accepted_timestamp": 2554408627334,
"defaulted_timestamp": 2554408627334,
"settled_timestamp": 2554408627334,
"comment": "OTC trade executed via phone instruction",
"last_update": 2554408627334,
"parties_anonymous": true,
"underlying": "BTC",
"quoted_currency": "USD",
"settlement_timestamp": 2554408627334,
"expiry_timestamp": 2554408627334,
"bank_fee": "1.00",
"spread_notional": "2.50",
"spread_bps": "100",
"origin": "rest_api",
"parties": [
{
"side": "buy",
"participant_code": "ABCDEF",
"asset": "BTC",
"amount": "0.00001",
"liquidity_indicator": "removed",
"client_order_id": "14f8ebb8-7530-4aa4-bef9-9d73d56313f3",
"order_id": "593dd810-f051-40a9-9f26-d45280efe8f3",
"obligations_outstanding_timestamp": 2554408627334,
"current_obligations_met_timestamp": 2554408627334,
"settlement_state": "settled",
"execution_id": "593dd810-f051-40a9-9f26-d45280efe8f3",
"account_label": "general",
"collateral_percentage": "0.1",
"account_profile": "nonprefunded",
"trader": "ABCDEF",
"manual_order_indicator": "manual"
}
],
"session_id": "20260504115000",
"payment_processor": {
"name": "checkout.out",
"id": "593dd810-f051-40a9-9f26-d45280efe8f3"
},
"fees": [
{
"name": "sample",
"amount": "1.95"
}
]
}
]Response
Successfully created batch of trades. Returns the created resource with generated IDs and timestamps.
Example response
{
"message": [
{
"batch_trade_id": null,
"trade_id": "78260d47-336e-4253-b800-d528894253b2",
"client_trade_id": "40b402b0-22ad-4d67-ae8c-7964be34ee29",
"trade_state": "terminated",
"market_identifier_code": "SCXM",
"trade_reporter_code": "00SCXM",
"symbol": "BTC/USD",
"trade_quantity": "0.00059241",
"trade_price": "81531.3718539524991138",
"trade_type": "regular",
"physical_delivery": true,
"comment": "",
"last_update": 1778771702391,
"transaction_timestamp": 1778771677000,
"accepted_timestamp": 1778771677972,
"defaulted_timestamp": null,
"settled_timestamp": 1778771702360,
"expiry_timestamp": null,
"settlement_timestamp": null,
"settlement_price_index_id": null,
"contract_size": 1,
"underlying": "BTC",
"quoted_currency": "USD",
"trade_reporter": "00SCXM",
"platform_code": "00SCXM",
"product_type": "spot",
"parties_anonymous": false,
"bank_fee": null,
"reporting_party": "00SCXM",
"settlement_schedule": null,
"parties": [
{
"settling": true,
"participant_code": "DL1BXT",
"side": "buy",
"asset": "BTC",
"amount": "0.00059241",
"liquidity_indicator": null,
"execution_id": "",
"order_id": "",
"obligations_outstanding_timestamp": null,
"current_obligations_met_timestamp": null,
"settlement_state": "settled",
"client_order_id": "",
"collateral_percentage": null,
"account_label": "general",
"account_profile": null,
"trader": null,
"zrn": null,
"manual_order_indicator": null
},
{
"settling": true,
"participant_code": "00SCXM",
"side": "sell",
"asset": "USD",
"amount": "48.3",
"liquidity_indicator": null,
"execution_id": "",
"order_id": "",
"obligations_outstanding_timestamp": null,
"current_obligations_met_timestamp": null,
"settlement_state": "settled",
"client_order_id": "",
"collateral_percentage": null,
"account_label": "inventory",
"account_profile": null,
"trader": null,
"zrn": null,
"manual_order_indicator": null
}
],
"session_id": "20260514151438",
"fees": [
{
"name": "LiquidityFee",
"amount": "1.7"
}
],
"issuer_fee_rate": "0",
"issuer_fee_amount": "0",
"issuer_fee_payor_type": null,
"payment_processor": null,
"network_fee_notional": null,
"network_fee_quantity": null,
"total_notional": "50.00",
"asset_cost_notional": "48.30",
"origin": "rest_api",
"spread_notional": "0.12075",
"spread_bps": "25"
}
]
}