Table of Contents

Class CommerceClient

Namespace
GuildWars2.Commerce
Assembly
GW2SDK.dll

Provides query methods for Black Lion Trading Company services.

public sealed class CommerceClient
Inheritance
CommerceClient
Inherited Members

Constructors

CommerceClient(HttpClient)

Initializes a new instance of the CommerceClient class.

Methods

ExchangeGemsToGold(int, MissingMemberBehavior, CancellationToken)

Retrieves the current exchange rate of gems to gold.

ExchangeGoldToGems(Coin, MissingMemberBehavior, CancellationToken)

Retrieves the current exchange rate of gold to gems.

GetBuyOrders(int, int?, string?, MissingMemberBehavior, CancellationToken)

Retrieves a page of current buy orders on the account. This endpoint is only accessible with a valid access token.

GetDeliveryBox(string?, MissingMemberBehavior, CancellationToken)

Retrieves information about items and coins ready for pickup from the Black Lion Trading Company. This endpoint is only accessible with a valid access token.

GetItemPriceById(int, MissingMemberBehavior, CancellationToken)

Retrieves the best price for an item by its ID.

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

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

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.

GetItemPricesByIds(IEnumerable<int>, MissingMemberBehavior, CancellationToken)

Retrieves the best price for items by their IDs.

GetItemPricesIndex(CancellationToken)

Retrieves the item IDs of all items with listings on the trading post.

GetOrderBookById(int, MissingMemberBehavior, CancellationToken)

Retrieves the demand and supply of an item by its ID.

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

Retrieves the demand and supply of all items by chunking requests and executing them in parallel.

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

Retrieves the demand and supply of items by their IDs by chunking requests and executing them in parallel. Supports more than 200 IDs.

GetOrderBooksByIds(IEnumerable<int>, MissingMemberBehavior, CancellationToken)

Retrieves the demand and supply of items by their IDs.

GetOrderBooksIndex(CancellationToken)

Retrieves the item IDs of all items with listings on the trading post.

GetPurchases(int, int?, string?, MissingMemberBehavior, CancellationToken)

Retrieves a page of completed purchases on the account. This endpoint is only accessible with a valid access token.

GetSales(int, int?, string?, MissingMemberBehavior, CancellationToken)

Retrieves a page of completed sales on the account. This endpoint is only accessible with a valid access token.

GetSellOrders(int, int?, string?, MissingMemberBehavior, CancellationToken)

Retrieves a page of current sell orders on the account. This endpoint is only accessible with a valid access token.