Skip to content

brettsmentek/iex-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL + IEX Cloud

What is this?

This is an Apollo GraphQL server that can be used to fetch financial data from IEX Cloud. It is built on top of IEX Cloud's REST API, and allows you to combine data from multiple REST endpoints with one query. Also, you can limit the fields returned for each query to that which is only needed by the client. It is deployed using Now 2.0.

Here is an example query for getting data on AMZN from a variety of IEX Cloud API endpoints:

query {
  security(ticker: "AMZN") {
    symbol
    volume
    lastSalePrice
    estimates {
      consensusEPS
      numberOfEstimates
    }
    earnings {
      actualEPS
      EPSReportDate
    }
  }
}

Data provided by IEX Cloud