Table of Contents

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 int

The item ID.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(ItemPrice Value, MessageContext Context)>

A task that represents the API request.