krapio
Library referenceClasses

AppMarketApi

the player's own listings and market history; scope market:read. public market data is on the game tier

Constructors

Constructor

new AppMarketApi(gapi, auth): AppMarketApi;

Parameters

ParameterType
gapiKrunkerClient
authRecord<string, string>

Returns

AppMarketApi

Methods

history()

history(query?): Promise<AppPage<AppMarketHistoryEntry>>;

GET /app/v1/market/history (market:read), completed sales and purchases plus cancelled listings, newest first

Parameters

ParameterType
query?AppPageQuery

Returns

Promise<AppPage<AppMarketHistoryEntry>>


listings()

listings(): Promise<AppListing[]>;

GET /app/v1/market/listings (market:read), every active listing of the player; not paged, the game caps them

Returns

Promise<AppListing[]>

On this page