ToolsImp..::..PriceConvertAsync Method
Converts a set amount of base currency to quote currency.
Namespace:
CoinpaprikaApi.ImpAssembly: CoinpaprikaApi (in CoinpaprikaApi.dll)
Syntax
public Task<PriceConverterResponse> PriceConvertAsync( string base_currency_id, string quote_currency_id, decimal amount )
Public Function PriceConvertAsync ( _ base_currency_id As String, _ quote_currency_id As String, _ amount As Decimal _ ) As Task(Of PriceConverterResponse)
Parameters
- base_currency_id
- Type: String
The base currency identifier.
- quote_currency_id
- Type: String
The quote currency identifier.
- amount
- Type: Decimal
The amount.
Return Value
A Task<PriceConverterResponse> representing the asynchronous operation.Exceptions
Exception | Condition |
---|---|
ArgumentNullException | base_currency_id - Invalid value, base_currency_id must be a valid currency id. |
ArgumentNullException | quote_currency_id - Invalid value, quote_currency_id must be a valid currency id. |