Infer a mesa trade from an operation
curl --request POST \
--url https://api.finsync.ar/api/mesas/{id}/infer \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"operation_id": 88
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({operation_id: 88})
};
fetch('https://api.finsync.ar/api/mesas/{id}/infer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({operation_id: 88})
};
fetch('https://api.finsync.ar/api/mesas/{id}/infer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/mesas/{id}/infer"
payload = { "operation_id": 88 }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"operationId": 88,
"suggestion": {
"side": "buy",
"localAmount": 125000,
"quoteAmount": 100,
"fx": 1250,
"fallback": false
},
"legs": []
}{
"error": "Mesas module not enabled for this company",
"code": "MESAS_DISABLED"
}Mesas
Infer a mesa trade from an operation
Suggests side / localAmount / fx from completed non-commission legs. Pass operation_id as a query param (GET or POST) or in the POST body.
POST
/
api
/
mesas
/
{id}
/
infer
Infer a mesa trade from an operation
curl --request POST \
--url https://api.finsync.ar/api/mesas/{id}/infer \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"operation_id": 88
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({operation_id: 88})
};
fetch('https://api.finsync.ar/api/mesas/{id}/infer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({operation_id: 88})
};
fetch('https://api.finsync.ar/api/mesas/{id}/infer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/mesas/{id}/infer"
payload = { "operation_id": 88 }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"operationId": 88,
"suggestion": {
"side": "buy",
"localAmount": 125000,
"quoteAmount": 100,
"fx": 1250,
"fallback": false
},
"legs": []
}{
"error": "Mesas module not enabled for this company",
"code": "MESAS_DISABLED"
}Authorizations
API Key for authentication
Path Parameters
Mesa ID
Query Parameters
Operation ID (required on GET; optional on POST if sent in the body)
Body
application/json
Example:
88
Response
Suggestion plus legs
The response is of type object.