TickersImp..::..GetTickerAsync Method
Get price data of a single cryptocurrency.
Namespace:
CoinpaprikaApi.ImpAssembly: CoinpaprikaApi (in CoinpaprikaApi.dll)
Syntax
public Task<TickerItem> GetTickerAsync( string coin_id, IEnumerable<string> quotes )
Public Function GetTickerAsync ( _ coin_id As String, _ quotes As IEnumerable(Of String) _ ) As Task(Of TickerItem)
Parameters
- coin_id
- Type: String
The coin identifier (ex: btc-bitcoin).
- quotes
- Type: IEnumerable<(Of <(<'String>)>)>
A list of quotes to return. Up to 3 quotes at once. Currently allowed values: BTC, ETH, USD, EUR, PLN, KRW, GBP, CAD, JPY, RUB, TRY, NZD, AUD, CHF, UAH, HKD, SGD, NGN, PHP, MXN, BRL, THB, CLP, CNY, CZK, DKK, HUF, IDR, ILS, INR, MYR, NOK, PKR, SEK, TWD, ZAR, VND, BOB, COP, PEN, ARS, ISK. Default: USD
Return Value
A Task<TickerItem> representing the asynchronous operation.Exceptions
Exception | Condition |
---|---|
ArgumentNullException | coin_id - Invalid value, coin_id must be a valid coin identified (ex: btc-bitcoin) |