ContractsImp..::..GetHistoricalTicksByContractAddressAsync Method

Get historical ticks for a contract with a given address.

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

Syntax


public Task<IEnumerable<TickItem>> GetHistoricalTicksByContractAddressAsync(
	string platform_id,
	string contract_address,
	DateTimeOffset start,
	Nullable<DateTimeOffset> end,
	uint limit,
	bool quote_btc,
	TickerInterval interval
)
Public Function GetHistoricalTicksByContractAddressAsync ( _
	platform_id As String, _
	contract_address As String, _
	start As DateTimeOffset, _
	end As Nullable(Of DateTimeOffset), _
	limit As UInteger, _
	quote_btc As Boolean, _
	interval As TickerInterval _
) As Task(Of IEnumerable(Of TickItem))

Parameters

platform_id
Type: String
The platform identifier. GetPlatformsAsync()()()()
contract_address
Type: String
The contract address (ex: 0xd26114cd6ee289accf82350c8d8487fedb8a0c07).
start
Type: DateTimeOffset
The start start point for historical data.
end
Type: Nullable<(Of <(<'DateTimeOffset>)>)>
The end point for for historical data.
limit
Type: UInt32
The limit of result rows (max 5000). Default: 1000
quote_btc
Type: Boolean
Set to true to use BTC as quote currency, else quote is USD.
interval
Type: CoinpaprikaApi.Types..::..TickerInterval
The bucket interval.

Return Value

A Task<IEnumerable<TickItem>> representing the asynchronous operation.

Exceptions


ExceptionCondition
ArgumentNullExceptionplatform_id - Invalid value, platform_id must be a valid platform identified (ex: eth-ethereum)
ArgumentNullExceptioncontract_address - Invalid value, contract_address must be a valid smart contract identified (ex: 0xd26114cd6ee289accf82350c8d8487fedb8a0c07)
ArgumentOutOfRangeExceptionend - Invalid value, end must be a valid date after start.