CoinsImp..::..GetCoinHistoryAsync Method

Get historical data (name, price, market, stats) at a given date for a coin.

Namespace:  CoinGeckoAPI.Imps
Assembly:  CoinGeckoAPI (in CoinGeckoAPI.dll)

Syntax


public Task<CoinHistoryResponse> GetCoinHistoryAsync(
	string id,
	DateTimeOffset date,
	bool localization
)
Public Function GetCoinHistoryAsync ( _
	id As String, _
	date As DateTimeOffset, _
	localization As Boolean _
) As Task(Of CoinHistoryResponse)

Parameters

id
Type: String
The id of the coin cryptocurrency. See GetCoinsListAsync(Boolean).
date
Type: DateTimeOffset
The date of data snapshot.
localization
Type: Boolean
Set to true to include all localized languages in response.

Return Value

A Task<CoinHistoryResponse> representing the asynchronous operation.

Exceptions


ExceptionCondition
ArgumentNullExceptionid - Invalid value. Value must be a valid coin id (EX: bitcoin, ethereum)
ArgumentOutOfRangeExceptiondate - Invalid value. Value must be a valid date to snapshot a coins history.