app / de.uniks.codliners.stock_simulator.network / IEXApi

IEXApi

interface IEXApi

The IEX API interface.

Author
Jonas Thelemann

Author
Jan Müller

Functions

historicalPrices

Requests a List of IEXHistoricalPrices for an IEX share.

abstract suspend fun historicalPrices(symbol: String, range: String = "1m", chartCloseOnly: Boolean, token: String = IEX_API_TOKEN): List<IEXHistoricalPrice>

news

Requests News for an IEX share.

abstract suspend fun news(symbol: String, token: String = IEX_API_TOKEN): List<News>

quote

Requests an IEXQuote for an IEX share.

abstract suspend fun quote(symbol: String, token: String = IEX_API_TOKEN): IEXQuote

symbols

Requests all IEXSymbols.

abstract suspend fun symbols(token: String = IEX_API_TOKEN): List<IEXSymbol>