UtilCryptocurrencyGetCryptoCurrencyPrice Method
Note: This API is now obsolete.
Gets the price of the specified cryptocurrency converted to the target currency.
Namespace: DevCase.Core.Finances.CryptoCurrenciesAssembly: 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
)
<ObsoleteAttribute("This API is obsolete.", true)>
Public Shared Function GetCryptoCurrencyPrice (
cryptoCurrency As ICryptoCurrency,
amount As Double,
currency As FiatCurrencies
) As Double
Dim cryptoCurrency As ICryptoCurrency
Dim amount As Double
Dim currency As FiatCurrencies
Dim returnValue As Double
returnValue = UtilCryptocurrency.GetCryptoCurrencyPrice(cryptoCurrency,
amount, currency)
public:
[ObsoleteAttribute(L"This API is obsolete.", true)]
static double GetCryptoCurrencyPrice(
ICryptoCurrency^ cryptoCurrency,
double amount,
FiatCurrencies currency
)
[<ObsoleteAttribute("This API is obsolete.", true)>]
static member GetCryptoCurrencyPrice :
cryptoCurrency : ICryptoCurrency *
amount : float *
currency : FiatCurrencies -> float
No code example is currently available or this language may not be supported.
- cryptoCurrency ICryptoCurrency
-
The source ICryptoCurrency.
- amount Double
-
The amount value of the source cryptocurrency.
- currency FiatCurrencies
-
The target currency.
Double
The resulting price.
This is a code example.
No code example is currently available or this language may not be supported.
Dim btc As ICryptoCurrency = New Bitcoin()
Dim price As double = GetCryptoCurrencyPrice(btc, 1, Currencies.USD)
Console.WriteLine(String.Format("{0:C}", price, CultureInfo.GetCultureInfo("en-US")))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
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.
|