Get Bloomberg codes of operable classes by risk level
Returns the Bloomberg codes of the operable share classes for the given risk levels (LOW, MEDIUM, HIGH; comma-separated, case-insensitive).
GET
/v1/market-data/funds/classes/codesRequest
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 |
|---|---|---|---|
risk | array of string | Yes | Risk levels (comma-separated): LOW, MEDIUM, HIGH. |
Response
2XX Success
Status: 200 — Bloomberg codes retrieved successfully
Returns an array of string.
Error Codes
| Status | Description |
|---|---|
400 | Invalid risk level |
401 | Missing or invalid authentication |
403 | Caller lacks the required role |
500 | Unexpected server error |
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X GET "https://b2b.allaria.cloud/v1/market-data/funds/classes/codes?risk=LOW%2CMEDIUM" \
-H "Authorization: Bearer ACCESS_TOKEN"
const response = await fetch('https://b2b.allaria.cloud/v1/market-data/funds/classes/codes?risk=LOW%2CMEDIUM', {
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/market-data/funds/classes/codes?risk=LOW%2CMEDIUM',
headers={ 'Authorization': 'Bearer ACCESS_TOKEN' },
)
print(response.json())
const axios = require('axios');
const response = await axios.get('https://b2b.allaria.cloud/v1/market-data/funds/classes/codes?risk=LOW%2CMEDIUM', {
headers: { 'Authorization': 'Bearer ACCESS_TOKEN' },
});
console.log(response.data);
2XX Success
[
"ALDIIIA AR Equity",
"ALCOMES AR Equity"
]