Get SENEBI price ranges
Returns the currently cached SENEBI (bilateral negotiation) MEP price ranges, grouped by client configuration and operation side.
GET
/v1/operations/usd-mep/senebi/rangesRequest
Headers
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token in Bearer ACCESS_TOKEN format |
Not applicable: Path Parameters, Query Parameters, Body.
Response
2XX Success
The response is a JSON object keyed by client configuration identifier. Each value is an object keyed by operation side (buy/sell), containing the cached price range for that side.
| Field | Type | Description |
|---|---|---|
<client_configuration> | object | Key identifying the client configuration the price ranges belong to. |
<client_configuration>.buy | object | Cached price range for buy operations. |
<client_configuration>.buy.price | number | Current reference price for the range. |
<client_configuration>.buy.range_min | number | Minimum price of the valid range before it is recalculated. |
<client_configuration>.buy.range_max | number | Maximum price of the valid range before it is recalculated. |
<client_configuration>.sell | object | Cached price range for sell operations. Same fields as <client_configuration>.buy. |
Error Codes
| Status | Description |
|---|---|
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": "INTERNAL_SERVER_ERROR",
"description": "Unexpected error"
}
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X GET https://b2b.allaria.dev/v1/operations/usd-mep/senebi/ranges \
-H "Authorization: Bearer ACCESS_TOKEN"
const response = await fetch('https://b2b.allaria.dev/v1/operations/usd-mep/senebi/ranges', {
method: 'GET',
headers: { 'Authorization': 'Bearer ACCESS_TOKEN' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get(
'https://b2b.allaria.dev/v1/operations/usd-mep/senebi/ranges',
headers={ 'Authorization': 'Bearer ACCESS_TOKEN' }
)
data = response.json()
print(data)
const axios = require('axios');
const response = await axios.get('https://b2b.allaria.dev/v1/operations/usd-mep/senebi/ranges', {
headers: { Authorization: 'Bearer ACCESS_TOKEN' }
});
console.log(response.data);
2XX Success
{
"api-broker": {
"buy": {
"price": 1246.50,
"range_min": 1246.00,
"range_max": 1247.00
},
"sell": {
"price": 1243.00,
"range_min": 1242.50,
"range_max": 1243.50
}
}
}