@GET("stock/{symbol}/chart/{range}") abstract suspend fun historicalPrices(@Path("symbol") symbol: String, @Path("range") range: String = "1m", @Query("chartCloseOnly") chartCloseOnly: Boolean, @Query("token") token: String = IEX_API_TOKEN): List<IEXHistoricalPrice>
Requests a List of IEXHistoricalPrices for an IEX share.
symbol - The symbol of the IEX share.
range - The range of the data points. Defaults to 1m (one month).
chartCloseOnly - Requests only close values if true and full data otherwise.
token - The IEX API token. Defaults to IEX_API_TOKEN.
Return
The requested List of IEXHistoricalPrices.