Method ExchangeGoldToGems
- Namespace
- GuildWars2.Commerce
- Assembly
- GW2SDK.dll
ExchangeGoldToGems(Coin, MissingMemberBehavior, CancellationToken)
Retrieves the current exchange rate of gold to gems.
public Task<(GoldToGems Value, MessageContext Context)> ExchangeGoldToGems(Coin gold, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
gold
CoinThe amount of gold to exchange for gems.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(GoldToGems Value, MessageContext Context)>
A task that represents the API request.