IExchange.BuyAsync method
Buy quantity of an item at price via the game’s own trade buy. The game builds the request and validates it server-side.
public Task<ExchangeBuyOutcome> BuyAsync(int itemId, int quantity, long price, CancellationToken ct = default)| parameter | description |
|---|---|
| itemId | The item’s config id. |
| quantity | How many to buy. |
| price | The unit price to pay (match a current listing). |
| ct | Cancels the request before dispatch. |
Return Value
Section titled “Return Value”The game’s outcome for the buy.
See Also
Section titled “See Also”- enum ExchangeBuyOutcome
- interface IExchange
- namespace Stellar.Abstractions.Services