ContractsImp..::..GetTickerByContractAddressAsync Method
Get ticker data for a contract with a given address..
Namespace:
CoinpaprikaApi.ImpAssembly: CoinpaprikaApi (in CoinpaprikaApi.dll)
Syntax
public Task<TickerItem> GetTickerByContractAddressAsync( string platform_id, string contract_address )
Public Function GetTickerByContractAddressAsync ( _ platform_id As String, _ contract_address As String _ ) As Task(Of TickerItem)
Parameters
- platform_id
- Type: String
The platform identifier. GetPlatformsAsync()()()()
- contract_address
- Type: String
The contract address (ex: 0xd26114cd6ee289accf82350c8d8487fedb8a0c07).
Return Value
A Task<TickerItem> representing the asynchronous operation.Exceptions
Exception | Condition |
---|---|
ArgumentNullException | platform_id - Invalid value, platform_id must be a valid platform identified (ex: eth-ethereum) |
ArgumentNullException | contract_address - Invalid value, contract_address must be a valid smart contract identified (ex: 0xd26114cd6ee289accf82350c8d8487fedb8a0c07) |