Skip to main content

Security details

Query

query securityDetails ($startDate:String, $isinCode:String) {
  securities(isinCode: $isinCode) {
    securityCode
    id
    name
    isinCode
    currency {
      securityCode
    }
    exchange {
      code
    }
    latestMarketData{
      price:close
      date:obsDate
    }
    marketDataHistory(startDate: $startDate){
      price: close
      date: obsDate
    }
  }
}

Variables

{
  "startDate": "2021-11-10",
  "isinCode": "IE00B4BNMY34"
}

Result

{
  "data": {
    "securities": [
      {
        "securityCode": "ACN US",
        "id": 566,
        "name": "Accenture PLC",
        "isinCode": "IE00B4BNMY34",
        "currency": {
          "securityCode": "USD"
        },
        "exchange": {
          "code": "XNYS"
        },
        "latestMarketData": {
          "price": 366.21,
          "date": "2021-11-11"
        },
        "marketDataHistory": [
          {
            "price": 364.74,
            "date": "2021-11-10"
          },
          {
            "price": 366.21,
            "date": "2021-11-11"
          }
        ]
      }
    ]
  }
}