UtilCryptocurrencyGetCryptoCurrencyPrice Method

Note: This API is now obsolete.
Gets the price of the specified cryptocurrency converted to the target currency.

Definition

Namespace: DevCase.Core.Finances.CryptoCurrencies
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[ObsoleteAttribute("This API is obsolete.", true)]
public static double GetCryptoCurrencyPrice(
	ICryptoCurrency cryptoCurrency,
	double amount,
	FiatCurrencies currency
)

Parameters

cryptoCurrency  ICryptoCurrency
The source ICryptoCurrency.
amount  Double
The amount value of the source cryptocurrency.
currency  FiatCurrencies
The target currency.

Return Value

Double
The resulting price.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

NotImplementedException The specified currency is not supported by this API.
HttpListenerException The requested cryptocurrency rate info is empty due to an unknown error.
FormatException Element name '{0}' not found. Unknown error reason.

See Also