CoinsImp..::..GetCoinOhlcLatestAsync Method
Get Open/High/Low/Close values with volume and market capitalization for the last full day.
Namespace:
CoinpaprikaApi.ImpAssembly: CoinpaprikaApi (in CoinpaprikaApi.dll)
Syntax
public Task<IEnumerable<OhlcvItem>> GetCoinOhlcLatestAsync( string coin_id, bool btc_quote )
Public Function GetCoinOhlcLatestAsync ( _ coin_id As String, _ btc_quote As Boolean _ ) As Task(Of IEnumerable(Of OhlcvItem))
Parameters
- coin_id
- Type: String
The coin identifier (ex: btc-bitcoin).
- btc_quote
- Type: Boolean
If set to true the quote currency is BTC, otherwise quote currency is USD.
Return Value
A Task<IEnumerableOhlcvItem>> representing the asynchronous operation.Exceptions
Exception | Condition |
---|---|
ArgumentNullException | coin_id - Invalid value, coin_id must be a valid coin identified (ex: btc-bitcoin) |