Get daily MEP accumulated
Returns today's accumulated USD buy and sell amounts for an account's MEP operations, along with its daily limit.
GET
/v1/operations/usd-mep/daily-accumulatedRequest
Headers
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token in Bearer ACCESS_TOKEN format |
Not applicable: Path Parameters, Body.
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
accountNumber | integer | Yes | Client account number to retrieve the daily accumulated amounts for. |
Response
2XX Success
| Field | Type | Description |
|---|---|---|
buy_accumulated | number | Total USD amount bought through MEP operations today. |
sell_accumulated | number | Total USD amount sold through MEP operations today. |
daily_limit | number | Maximum USD amount allowed for MEP operations for the account today. |
Error Codes
| Status | Description |
|---|---|
400 | Bad Request — accountNumber is missing or the caller does not have access to the account |
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": "BAD_REQUEST",
"description": "accountNumber is required"
}
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X GET "https://b2b.allaria.cloud/v1/operations/usd-mep/daily-accumulated?accountNumber=12345" \
-H "Authorization: Bearer ACCESS_TOKEN"
const accountNumber = 12345;
const response = await fetch(
`https://b2b.allaria.cloud/v1/operations/usd-mep/daily-accumulated?accountNumber=${accountNumber}`,
{
method: 'GET',
headers: { 'Authorization': 'Bearer ACCESS_TOKEN' }
}
);
const data = await response.json();
console.log(data);
import requests
response = requests.get(
'https://b2b.allaria.cloud/v1/operations/usd-mep/daily-accumulated',
headers={ 'Authorization': 'Bearer ACCESS_TOKEN' },
params={ 'accountNumber': 12345 }
)
data = response.json()
print(data)
const axios = require('axios');
const response = await axios.get(
'https://b2b.allaria.cloud/v1/operations/usd-mep/daily-accumulated',
{
headers: { Authorization: 'Bearer ACCESS_TOKEN' },
params: { accountNumber: 12345 }
}
);
console.log(response.data);
2XX Success
{
"buy_accumulated": 15000.00,
"sell_accumulated": 3200.00,
"daily_limit": 50000.00
}