DEX: Create DEX Order
Creates a new order on the DEX.
Creates an order with the parameters specified.
Authorizations
Body
objectOptionalExample:
{"market":"BTC_USD_PERP","quantity":"0.5","side":"BUY","type":"MARKET"}Responses
200
OK
application/json
Responseobject
post
/api/v1/mtf/create_orderPOST /api/v1/api/v1/mtf/create_order HTTP/1.1
Host: api.hybrid-chain.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"market": "BTC_USD_PERP",
"quantity": "0.5",
"side": "BUY",
"type": "MARKET"
}200
OK
{
"response": {
"context": null,
"event_manager_id": "72cbaae5-b464-4792-8855-ed3ee0661e13",
"event_manager_timestamp": "2025-04-09 04:47:43.429700",
"exec_time_ms": 124.74896386265755,
"message": "New instance of mtf.external_order_request created with id 72cbaae5-b464-4792-8855-ed3ee0661e13",
"payload": {
"environment_tag": "mtf_uat_odoo",
"model": "mtf.external_order_request",
"operation": "create",
"record": {
"market_id": 6,
"market_symbol": "BTC_USD_PERP",
"market_uuid": "4811484f0317409cae3a3c3ca5e9239a",
"matching_engine_client_id": 774321,
"open_quantity": "0.05",
"order_condition": 0,
"order_uuid": "c43942dc75bd4ca7b159f8588d35563f",
"pmx_id": "9uFzOHyhTjs=",
"pmx_uuid": "f6e173387ca14e3ba31740b779f8b18a",
"price": "100",
"sender_message_id": "fd352713728b4a538a910c54abe44f89",
"side": "buy"
}
},
"source": "HYBRID",
"success": true
},
"success": true
}Last updated
Was this helpful?

