Get broker MEP quote
Retrieves the current buy/sell USD-MEP quote used by the API Broker, broken down by execution venue.
GET
/v1/broker/operations/mep/quote/{account-id}Request
Headers
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token in Bearer ACCESS_TOKEN format |
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
account-id | integer | Yes | Account number the quote is requested for. |
Not applicable: Query Parameters, Body.
Response
2XX Success
Response shape
The response is a JSON object keyed by execution venue (PPT, SENEBI); each venue contains an object keyed by operation side (BUY, SELL) with the corresponding price.
| Field | Type | Description |
|---|---|---|
PPT | object | Quote for the PPT execution venue, keyed by operation side. |
PPT.BUY | number | Buy price (ARS per USD) on the PPT venue. |
PPT.SELL | number | Sell price (ARS per USD) on the PPT venue. |
SENEBI | object | Quote for the SENEBI execution venue, keyed by operation side. |
SENEBI.BUY | number | Buy price (ARS per USD) on the SENEBI venue. |
SENEBI.SELL | number | Sell price (ARS per USD) on the SENEBI venue. |
Error Codes
| Status | Description |
|---|---|
400 | Bad Request — the account number is invalid |
401 | Unauthorized — invalid or missing access token |
403 | Forbidden — the token does not have permission to access this resource |
500 | Internal Server Error |
Error structure:
{
"code": "invalid_request",
"description": "Invalid account number: 70104"
}
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X GET https://b2b.allaria.cloud/v1/broker/operations/mep/quote/70104 \
-H "Authorization: Bearer ACCESS_TOKEN"
const accountId = 70104;
const response = await fetch(
`https://b2b.allaria.cloud/v1/broker/operations/mep/quote/${accountId}`,
{
method: 'GET',
headers: { 'Authorization': 'Bearer ACCESS_TOKEN' }
}
);
const data = await response.json();
console.log(data);
import requests
account_id = 70104
response = requests.get(
f'https://b2b.allaria.cloud/v1/broker/operations/mep/quote/{account_id}',
headers={ 'Authorization': 'Bearer ACCESS_TOKEN' }
)
data = response.json()
print(data)
const axios = require('axios');
const accountId = 70104;
const response = await axios.get(
`https://b2b.allaria.cloud/v1/broker/operations/mep/quote/${accountId}`,
{ headers: { Authorization: 'Bearer ACCESS_TOKEN' } }
);
console.log(response.data);
2XX Success
{
"PPT": {
"BUY": 1245.50,
"SELL": 1242.00
},
"SENEBI": {
"BUY": 1246.75,
"SELL": 1240.25
}
}