UtilCryptocurrencyGetCryptoCurrencyPriceAsync Method
Note: This API is now obsolete.
Asynchronously 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 Task<double> GetCryptoCurrencyPriceAsync(
ICryptoCurrency cryptoCurrency,
double amount,
FiatCurrencies currency
)
<ObsoleteAttribute("This API is obsolete.", true)>
Public Shared Function GetCryptoCurrencyPriceAsync (
cryptoCurrency As ICryptoCurrency,
amount As Double,
currency As FiatCurrencies
) As Task(Of Double)
Dim cryptoCurrency As ICryptoCurrency
Dim amount As Double
Dim currency As FiatCurrencies
Dim returnValue As Task(Of Double)
returnValue = UtilCryptocurrency.GetCryptoCurrencyPriceAsync(cryptoCurrency,
amount, currency)
public:
[ObsoleteAttribute(L"This API is obsolete.", true)]
static Task<double>^ GetCryptoCurrencyPriceAsync(
ICryptoCurrency^ cryptoCurrency,
double amount,
FiatCurrencies currency
)
[<ObsoleteAttribute("This API is obsolete.", true)>]
static member GetCryptoCurrencyPriceAsync :
cryptoCurrency : ICryptoCurrency *
amount : float *
currency : FiatCurrencies -> Task<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.
TaskDouble
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 = Await GetCryptoCurrencyPriceAsync(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.
|