GET /v2/odata/Prices
Return
Returns information about market prices for various financial assets. You can obtain historical and current prices.
Endpoint URL
https://api.wealthtechs.com/v2/odata/Prices
Authorization
// Authorization via JWT Token.
Authorization: Bearer <YourToken>
Learn how to get access to our API V2.0 by clicking here.
You canΒ copyΒ andΒ useΒ ourΒ API v2.0 Public TokenΒ to get familiar with ourΒ API OData Resources.
Responses
Code | Type |
---|---|
200 | Success |
204 | No Content |
400 | Bad Request |
401 | Unauthorized |
Example Code
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySW5mbyI6IntcIklkXCI6OTgxLFwiSWRlbnRpdHlJZFwiOlwiNjMyMzhhZTQtMzAyMC00NWI5LWEwODktOTE2ZTY4MDMyZTY3XCIsXCJVc2VyTmFtZVwiOlwiMF9URVNUX0NMSUVOVFwiLFwiRW1haWxcIjpcInRlc3RjbGllbnRAd2VhbHRodGVjaHMuY29tXCIsXCJGaXJzdE5hbWVcIjpcIlRlc3RcIixcIkxhc3ROYW1lXCI6XCJDbGllbnRcIixcIklzQ2xpZW50VXNlclwiOmZhbHNlfSIsIm5iZiI6MTY5NDcwMjU3OSwiZXhwIjoxOTI0OTIzNjAwLCJpc3MiOiJXZWFsdGhUZWNocyIsImF1ZCI6IkFQSVVzZXJzIn0.bNcP0ouNwtFoxrI7pYXw0WKiw0TN6w_R2-Ban5moo1A");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.wealthtechs.com/v2/odata/Prices?$top=5", requestOptions)
.then(response => response.json())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Example Response
{
"@odata.context": "https://api.wealthtechs.com/v2/odata/$metadata#Prices",
"value": [
{
"CustodianId": 0,
"ProcessDate": "2023-09-11T00:00:00-04:00",
"SecurityId": 8400,
"PriceValue": 93.817
},
{
"CustodianId": 0,
"ProcessDate": "2023-09-11T00:00:00-04:00",
"SecurityId": 8401,
"PriceValue": 78.612
},
{
"CustodianId": 0,
"ProcessDate": "2023-09-11T00:00:00-04:00",
"SecurityId": 8402,
"PriceValue": 0
},
{
"CustodianId": 0,
"ProcessDate": "2023-09-11T00:00:00-04:00",
"SecurityId": 8403,
"PriceValue": 100.4674
},
{
"CustodianId": 0,
"ProcessDate": "2023-09-11T00:00:00-04:00",
"SecurityId": 8404,
"PriceValue": 87.2417
}
]
}