[Type] 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/graphql/

Authorization

// Authorization via JWT Token

Authorization: Bearer <YourToken>

Responses

CodeType
200Success
204No Content
400Bad Request
401Unauthorized

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 Prices {\r\n    prices {\r\n        nodes {\r\n            custodianId\r\n            processDate\r\n            securityId\r\n            priceValue\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": {
        "prices": {
            "nodes": [
                {
                    "custodianId": 0,
                    "processDate": "2023-09-11T00:00:00.000-04:00",
                    "securityId": 8400,
                    "priceValue": 93.8170000000
                },
                {
                    "custodianId": 0,
                    "processDate": "2023-09-11T00:00:00.000-04:00",
                    "securityId": 8401,
                    "priceValue": 78.6120000000
                },
                {
                    "custodianId": 0,
                    "processDate": "2023-09-11T00:00:00.000-04:00",
                    "securityId": 8402,
                    "priceValue": 0.0000000000
                },
                {
                    "custodianId": 0,
                    "processDate": "2023-09-11T00:00:00.000-04:00",
                    "securityId": 8403,
                    "priceValue": 100.4674000000
                },
                {
                    "custodianId": 0,
                    "processDate": "2023-09-11T00:00:00.000-04:00",
                    "securityId": 8404,
                    "priceValue": 87.2417000000
                },
                {
                    "custodianId": 0,
                    "processDate": "2023-09-11T00:00:00.000-04:00",
                    "securityId": 8405,
                    "priceValue": 89.2885000000
                },
                {
                    "custodianId": 0,
                    "processDate": "2023-09-11T00:00:00.000-04:00",
                    "securityId": 8406,
                    "priceValue": 97.2527000000
                },
                {
                    "custodianId": 0,
                    "processDate": "2023-09-11T00:00:00.000-04:00",
                    "securityId": 8407,
                    "priceValue": 99.6800000000
                },
                {
                    "custodianId": 0,
                    "processDate": "2023-09-11T00:00:00.000-04:00",
                    "securityId": 8408,
                    "priceValue": 99.6800000000
                },
                {
                    "custodianId": 0,
                    "processDate": "2023-09-11T00:00:00.000-04:00",
                    "securityId": 8409,
                    "priceValue": 85.9530000000
                }
            ]
        }
    }
}