Cancel market order
curl --request POST \
--url https://api.unitedmarket.ai/markets/{id}/orders/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orderHash": "0xORDER_HASH"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({orderHash: '0xORDER_HASH'})
};
fetch('https://api.unitedmarket.ai/markets/{id}/orders/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.unitedmarket.ai/markets/{id}/orders/cancel"
payload = { "orderHash": "0xORDER_HASH" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Orders
Cancel market order
Cancels one order by order hash. Requires SIWE bearer auth and order ownership.
POST
https://api.unitedmarket.ai
/
markets
/
{id}
/
orders
/
cancel
Cancel market order
curl --request POST \
--url https://api.unitedmarket.ai/markets/{id}/orders/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orderHash": "0xORDER_HASH"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({orderHash: '0xORDER_HASH'})
};
fetch('https://api.unitedmarket.ai/markets/{id}/orders/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.unitedmarket.ai/markets/{id}/orders/cancel"
payload = { "orderHash": "0xORDER_HASH" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}