AssetsImp..::..GetAssetHistoryAsync Method
Get asset history as an asynchronous operation.
Namespace:
CoinCapApi.ImpAssembly: 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
Exception | Condition |
---|---|
ArgumentNullException | id - Null or invalid value, id must be a valid asset id. |
ArgumentOutOfRangeException | Invalid start/end values, start and end must both be valid timestamps. |
ArgumentOutOfRangeException | end - Invalid value, end must be a valid timestamp greater than start. |
ArgumentOutOfRangeException | start - Invalid value, start must be in the past. |