GET /v2/odata/Securities
Return
This endpoint provides details about securities and financial assets available for investment. It includes information about stocks, bonds, and other financial instruments.
Endpoint URL
https://api.wealthtechs.com/v2/odata/Securities
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/Securities?$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#Securities",
"value": [
{
"Id": 8400,
"CustodianId": 0,
"SecurityTypeId": 33,
"CurrencyId": 139,
"PrimarySymbol": "C00840033",
"Description": "VEHICLE SAMPLE MUNICIPAL BONDS 840033",
"SectorId": null,
"Industry": null
},
{
"Id": 8401,
"CustodianId": 0,
"SecurityTypeId": 33,
"CurrencyId": 139,
"PrimarySymbol": "C00840133",
"Description": "VEHICLE SAMPLE MUNICIPAL BONDS 840133",
"SectorId": null,
"Industry": null
},
{
"Id": 8402,
"CustodianId": 0,
"SecurityTypeId": 15,
"CurrencyId": 139,
"PrimarySymbol": "T00000840215",
"Description": "VEHICLE SAMPLE COMMON STOCKS 840215",
"SectorId": null,
"Industry": null
},
{
"Id": 8403,
"CustodianId": 0,
"SecurityTypeId": 7,
"CurrencyId": 139,
"PrimarySymbol": "C00084037",
"Description": "VEHICLE SAMPLE CORPORATE BONDS 84037",
"SectorId": null,
"Industry": null
},
{
"Id": 8404,
"CustodianId": 0,
"SecurityTypeId": 7,
"CurrencyId": 139,
"PrimarySymbol": "C00084047",
"Description": "VEHICLE SAMPLE CORPORATE BONDS 84047",
"SectorId": null,
"Industry": null
}
]
}