Submit signed order
curl --request POST \
--url https://api.unitedmarket.ai/markets/{id}/orders \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"salt": "<string>",
"maker": "<string>",
"signer": "<string>",
"taker": "0x0000000000000000000000000000000000000000",
"tokenId": "<string>",
"makerAmount": "<string>",
"takerAmount": "<string>",
"expiration": "0",
"nonce": "<string>",
"feeRateBps": "15",
"signature": "<string>"
},
"orderType": "GTC"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
order: {
salt: '<string>',
maker: '<string>',
signer: '<string>',
taker: '0x0000000000000000000000000000000000000000',
tokenId: '<string>',
makerAmount: '<string>',
takerAmount: '<string>',
expiration: '0',
nonce: '<string>',
feeRateBps: '15',
signature: '<string>'
},
orderType: 'GTC'
})
};
fetch('https://api.unitedmarket.ai/markets/{id}/orders', 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"
payload = {
"order": {
"salt": "<string>",
"maker": "<string>",
"signer": "<string>",
"taker": "0x0000000000000000000000000000000000000000",
"tokenId": "<string>",
"makerAmount": "<string>",
"takerAmount": "<string>",
"expiration": "0",
"nonce": "<string>",
"feeRateBps": "15",
"signature": "<string>"
},
"orderType": "GTC"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"orderHash": "<string>",
"status": "<string>"
}{
"message": "<string>",
"statusCode": 123
}Orders
Submit signed order
Submits an EIP-712 signed order for a market. SIWE login is optional for this route; the order signature is still required.
POST
https://api.unitedmarket.ai
/
markets
/
{id}
/
orders
Submit signed order
curl --request POST \
--url https://api.unitedmarket.ai/markets/{id}/orders \
--header 'Content-Type: application/json' \
--data '
{
"order": {
"salt": "<string>",
"maker": "<string>",
"signer": "<string>",
"taker": "0x0000000000000000000000000000000000000000",
"tokenId": "<string>",
"makerAmount": "<string>",
"takerAmount": "<string>",
"expiration": "0",
"nonce": "<string>",
"feeRateBps": "15",
"signature": "<string>"
},
"orderType": "GTC"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
order: {
salt: '<string>',
maker: '<string>',
signer: '<string>',
taker: '0x0000000000000000000000000000000000000000',
tokenId: '<string>',
makerAmount: '<string>',
takerAmount: '<string>',
expiration: '0',
nonce: '<string>',
feeRateBps: '15',
signature: '<string>'
},
orderType: 'GTC'
})
};
fetch('https://api.unitedmarket.ai/markets/{id}/orders', 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"
payload = {
"order": {
"salt": "<string>",
"maker": "<string>",
"signer": "<string>",
"taker": "0x0000000000000000000000000000000000000000",
"tokenId": "<string>",
"makerAmount": "<string>",
"takerAmount": "<string>",
"expiration": "0",
"nonce": "<string>",
"feeRateBps": "15",
"signature": "<string>"
},
"orderType": "GTC"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"orderHash": "<string>",
"status": "<string>"
}{
"message": "<string>",
"statusCode": 123
}⌘I
