Aggregate closed-period analysis
curl --request GET \
--url https://api.finsync.ar/api/mesas/{id}/analysis \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/mesas/{id}/analysis', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/mesas/{id}/analysis', 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}/analysis"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"mesa": {
"id": 1,
"company_id": 42,
"name": "ARS/USD desk",
"local_currency": "ARS",
"quote_currency": "USD",
"costing_method": "fifo",
"account_ids": [
10,
11
],
"created_by": null,
"created_at": "2026-03-01T00:00:00.000Z",
"updated_at": "2026-03-01T00:00:00.000Z",
"deleted_at": null
},
"analysis": {
"totals": {
"pnlLocal": 15000,
"pnlQuote": 12.4,
"tradeCount": 3
},
"closingLocal": 250000,
"closingAvgFx": 1210,
"dailyPnl": [],
"rows": []
}
}{
"error": "Mesas module not enabled for this company",
"code": "MESAS_DISABLED"
}Mesas
Aggregate closed-period analysis
Aggregate closed periods by period_ids or from/to (YYYY-MM-DD, opened_at). An empty range returns an empty analysis. include_open=true appends today’s live day (not cached). Closed ids stay cached.
GET
/
api
/
mesas
/
{id}
/
analysis
Aggregate closed-period analysis
curl --request GET \
--url https://api.finsync.ar/api/mesas/{id}/analysis \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/mesas/{id}/analysis', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.finsync.ar/api/mesas/{id}/analysis', 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}/analysis"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"mesa": {
"id": 1,
"company_id": 42,
"name": "ARS/USD desk",
"local_currency": "ARS",
"quote_currency": "USD",
"costing_method": "fifo",
"account_ids": [
10,
11
],
"created_by": null,
"created_at": "2026-03-01T00:00:00.000Z",
"updated_at": "2026-03-01T00:00:00.000Z",
"deleted_at": null
},
"analysis": {
"totals": {
"pnlLocal": 15000,
"pnlQuote": 12.4,
"tradeCount": 3
},
"closingLocal": 250000,
"closingAvgFx": 1210,
"dailyPnl": [],
"rows": []
}
}{
"error": "Mesas module not enabled for this company",
"code": "MESAS_DISABLED"
}Authorizations
API Key for authentication
Path Parameters
Mesa ID
Query Parameters
Comma-separated closed period IDs (alternative to from/to)
Example:
"4,5"
Inclusive opened_at start (YYYY-MM-DD)
Example:
"2026-09-01"
Inclusive opened_at end (YYYY-MM-DD)
Example:
"2026-09-08"
Append today's live open day (not cached)
Response
Aggregated closed-period analysis
The response is of type object.