AssetsImp..::..GetAssetHistoryAsync Method

Get asset history as an asynchronous operation.

Namespace:  CoinCapApi.Imp
Assembly:  CoinCapApi (in CoinCapApi.dll)

Syntax


public Task<AssetHistoryResponse> GetAssetHistoryAsync(
	string id,
	TimeInterval interval,
	ulong start,
	ulong end
)
Public Function GetAssetHistoryAsync ( _
	id As String, _
	interval As TimeInterval, _
	start As ULong, _
	end As ULong _
) As Task(Of AssetHistoryResponse)

Parameters

id
Type: String
The unique identifier of the asset.
interval
Type: CoinCapApi.Types..::..TimeInterval
The interval to bucket data.
start
Type: UInt64
The start time, UNIX timestamp in milliseconds (UTC).
end
Type: UInt64
The end time, UNIX timestamp in milliseconds (UTC).

Return Value

A Task<AssetHistoryResponse> representing the asynchronous operation.

Exceptions


ExceptionCondition
ArgumentNullExceptionid - Null or invalid value, id must be a valid asset id.
ArgumentOutOfRangeExceptionInvalid start/end values, start and end must both be valid timestamps.
ArgumentOutOfRangeExceptionend - Invalid value, end must be a valid timestamp greater than start.
ArgumentOutOfRangeExceptionstart - Invalid value, start must be in the past.