Method GetItemPriceById
- Namespace
- GuildWars2.Commerce
- Assembly
- GW2SDK.dll
GetItemPriceById(int, MissingMemberBehavior, CancellationToken)
Retrieves the best price for an item by its ID.
public Task<(ItemPrice Value, MessageContext Context)> GetItemPriceById(int itemId, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
itemId
intThe item ID.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(ItemPrice Value, MessageContext Context)>
A task that represents the API request.