Table of Contents

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 Coin

The amount of gold to exchange for gems.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(GoldToGems Value, MessageContext Context)>

A task that represents the API request.