Table of Contents

Method GetItemPricesBulk

Namespace
GuildWars2.Commerce
Assembly
GW2SDK.dll

GetItemPricesBulk(IEnumerable<int>, MissingMemberBehavior, int, int, IProgress<BulkProgress>?, CancellationToken)

Retrieves the best price for items by their IDs by chunking requests and executing them in parallel. Supports more than 200 IDs.

public IAsyncEnumerable<(ItemPrice Value, MessageContext Context)> GetItemPricesBulk(IEnumerable<int> itemIds, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, int degreeOfParallelism = 20, int chunkSize = 200, IProgress<BulkProgress>? progress = null, CancellationToken cancellationToken = default)

Parameters

itemIds IEnumerable<int>

The item IDs.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

degreeOfParallelism int

The maximum number of chunks to request in parallel.

chunkSize int

How many IDs to request per chunk.

progress IProgress<BulkProgress>

A progress report provider.

cancellationToken CancellationToken

A token to cancel the request(s).

Returns

IAsyncEnumerable<(ItemPrice Value, MessageContext Context)>

A task that represents the API request(s).

GetItemPricesBulk(MissingMemberBehavior, int, int, IProgress<BulkProgress>?, CancellationToken)

Retrieves all item prices by chunking requests and executing them in parallel.

public IAsyncEnumerable<(ItemPrice Value, MessageContext Context)> GetItemPricesBulk(MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, int degreeOfParallelism = 20, int chunkSize = 200, IProgress<BulkProgress>? progress = null, CancellationToken cancellationToken = default)

Parameters

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

degreeOfParallelism int

The maximum number of chunks to request in parallel.

chunkSize int

How many IDs to request per chunk.

progress IProgress<BulkProgress>

A progress report provider.

cancellationToken CancellationToken

A token to cancel the request(s).

Returns

IAsyncEnumerable<(ItemPrice Value, MessageContext Context)>

A task that represents the API request(s).