GrandExchangeActions for GE offers, TradeActions for player trades, and ShopActions for NPC shops. Price reads come from the SDK market APIs.
Grand Exchange
GrandExchangeActions (com.n3plugins.Api.actions) manages independent GE operations. Every acting method returns InteractionResult, and offer construction returns TaskPipeline steps that route through the shared pacer.
openNearest() and collectAll() check the pacer before queuing and return PACED while the gate is closed, so a per-tick retry loop lands the action once the pacer clears. Calls made while the GE is closed return a non-success status instead of throwing.
Player trades
TradeActions writes on the two-screen trade interface:
TRADE_NOT_OPEN when neither trade screen is visible, and the pacer gates every write. Inspect screen state, acceptance state, and either side’s offer through TradeQuery, and re-validate the other player’s offer on the confirmation screen before acceptSecondScreen().
Shops
ShopActions provides paced, result-aware purchase dispatches for NPC shops. Run buy methods only while the shop interface is open; a blocked action returns PACED for a next-tick retry.
Name overloads are case-insensitive and match the tag-stripped display name. Stock reads:
isOpen(), getStock(itemId) (0 when absent or closed), and getItems() for the visible stock list.
Item info and prices
Thesdk.items package reads item metadata and prices without dispatching anything:
PricesApireturns current price quotes for an item.ItemInfoexposes name and examine metadata.WikiMarketClientfetches market data, andMarketPricemodels a quote for analysis code such asAlchemyCandidateSelector.