List of asset entity objects
Returns a list of all asset entities
Retrieving all asset list in your database
Description | |
---|---|
HTTP Method | GET |
Path | /api/entities/asset/list/all/{asOfDate} |
Request parameters | None |
Example
curl -X GET "https://<Quantium WEB API URL>/api/asset/list/all/{asOfDate}" -H "accept: */*" -H "Authorization: Bearer Your token"
$.ajax({
url: 'http://<QuantiumAPIWebUrl>/api/asset/list/all/{asOfDate}',
type: 'GET',
contentType: 'application/json'
headers: {
'Authorization': 'Bearer <token>'
},
success: function (result) {
var data = JSON.parse(result);
console.log(data);
},
error: function (err) {
console.error(err);
}
});
var accessToken = "<Bearer token retrieved from previous section>";
using (var client = new HttpClient())
{
var url = "https://<Quantium CORE Web API URL>/api/asset/list/all/{asOfDate}";
client.DefaultRequestHeaders.Add("Authorization", accessToken);
var response = await client.GetStringAsync(url);
// Parse JSON response.
..
}
Retrieving asset list for a given scope
Description | |
---|---|
HTTP Method | GET |
Path | /api/entities/asset/list/perscope/{scopeId}/{asOfDate} |
Request parameters | Scope ID (string): An ID of the selected scope which can be acquired by the Scope list API |
Example
curl -X GET "https://<Quantium WEB API URL>/api/asset/list/perscope/{scopeId}/{asOfDate}" -H "accept: */*" -H "Authorization: Bearer Your token"
var scopeId = '5e38f5eb78aa254b747b3551';
var url = `http://<QuantiumAPIWebUrl>/api/asset/list/perscope/${scopeId}`;
$.ajax({
url: url,
type: 'GET',
contentType: 'application/json'
headers: {
'Authorization': 'Bearer <token>'
},
success: function (result) {
var data = JSON.parse(result);
console.log(data);
},
error: function (err) {
console.error(err);
}
});
var scopeId = "5e38f5eb78aa254b747b3551"; // Scope ID
var accessToken = "<Bearer token retrieved from previous section>";
using (var client = new HttpClient())
{
var url = $"https://<Quantium CORE Web API URL>/api/asset/list/perscope/{scopeId}";
client.DefaultRequestHeaders.Add("Authorization", accessToken);
var response = await client.GetStringAsync(url);
// Parse JSON response.
..
}
Updated over 1 year ago