[Type] 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/graphql/
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 Example Token to get familiar with our API GraphQL 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 graphql = JSON.stringify({
query: "query Sectors {\r\n securities {\r\n nodes {\r\n id\r\n custodianId\r\n securityTypeId\r\n currencyId\r\n primarySymbol\r\n cusip\r\n sedol\r\n isin\r\n ticker\r\n description\r\n sectorId\r\n industry\r\n }\r\n }\r\n}",
variables: {}
})
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: graphql,
redirect: 'follow'
};
fetch("https://api.wealthtechs.com/v2/graphql/", requestOptions)
.then(response => response.json())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Example Response
{
"data": {
"securities": {
"nodes": [
{
"id": 8400,
"custodianId": 0,
"securityTypeId": 33,
"currencyId": 139,
"primarySymbol": "C00840033",
"cusip": "C00840033",
"sedol": null,
"isin": "USC00840033T",
"ticker": null,
"description": "VEHICLE SAMPLE MUNICIPAL BONDS 840033",
"sectorId": null,
"industry": null
},
{
"id": 8401,
"custodianId": 0,
"securityTypeId": 33,
"currencyId": 139,
"primarySymbol": "C00840133",
"cusip": "C00840133",
"sedol": null,
"isin": "USC00840133T",
"ticker": null,
"description": "VEHICLE SAMPLE MUNICIPAL BONDS 840133",
"sectorId": null,
"industry": null
},
{
"id": 8402,
"custodianId": 0,
"securityTypeId": 15,
"currencyId": 139,
"primarySymbol": "T00000840215",
"cusip": "C00840215",
"sedol": "S008417",
"isin": "USC00840215T",
"ticker": "T00000840215",
"description": "VEHICLE SAMPLE COMMON STOCKS 840215",
"sectorId": null,
"industry": null
},
{
"id": 8403,
"custodianId": 0,
"securityTypeId": 7,
"currencyId": 139,
"primarySymbol": "C00084037",
"cusip": "C00084037",
"sedol": null,
"isin": "USC00084037T",
"ticker": null,
"description": "VEHICLE SAMPLE CORPORATE BONDS 84037",
"sectorId": null,
"industry": null
},
{
"id": 8404,
"custodianId": 0,
"securityTypeId": 7,
"currencyId": 139,
"primarySymbol": "C00084047",
"cusip": "C00084047",
"sedol": null,
"isin": "USC00084047T",
"ticker": null,
"description": "VEHICLE SAMPLE CORPORATE BONDS 84047",
"sectorId": null,
"industry": null
},
{
"id": 8405,
"custodianId": 0,
"securityTypeId": 7,
"currencyId": 139,
"primarySymbol": "C00076837",
"cusip": "C00084057",
"sedol": null,
"isin": "USC00084057T",
"ticker": null,
"description": "VEHICLE SAMPLE CORPORATE BONDS 84057",
"sectorId": null,
"industry": null
},
{
"id": 8406,
"custodianId": 0,
"securityTypeId": 7,
"currencyId": 139,
"primarySymbol": "C00084067",
"cusip": "C00084067",
"sedol": null,
"isin": "USC00084067T",
"ticker": null,
"description": "VEHICLE SAMPLE CORPORATE BONDS 84067",
"sectorId": null,
"industry": null
},
{
"id": 8407,
"custodianId": 0,
"securityTypeId": 33,
"currencyId": 139,
"primarySymbol": "C00840733",
"cusip": "C00840733",
"sedol": null,
"isin": null,
"ticker": null,
"description": "VEHICLE SAMPLE MUNICIPAL BONDS 840733",
"sectorId": null,
"industry": null
},
{
"id": 8408,
"custodianId": 0,
"securityTypeId": 33,
"currencyId": 139,
"primarySymbol": "C00840833",
"cusip": "C00840833",
"sedol": null,
"isin": null,
"ticker": null,
"description": "VEHICLE SAMPLE MUNICIPAL BONDS 840833",
"sectorId": null,
"industry": null
},
{
"id": 8409,
"custodianId": 0,
"securityTypeId": 33,
"currencyId": 139,
"primarySymbol": "C00840933",
"cusip": "C00840933",
"sedol": null,
"isin": null,
"ticker": null,
"description": "VEHICLE SAMPLE MUNICIPAL BONDS 840933",
"sectorId": null,
"industry": null
}
]
}
}
}