krapio
Library referenceClasses

AppTradesApi

the player's trades; scope trades:read. creating, accepting and cancelling are writes and stay out

Constructors

Constructor

new AppTradesApi(gapi, auth): AppTradesApi;

Parameters

ParameterType
gapiKrunkerClient
authRecord<string, string>

Returns

AppTradesApi

Methods

count()

count(): Promise<AppTradeCount>;

GET /app/v1/trades/count (trades:read), how many trades are open and completed

Returns

Promise<AppTradeCount>


list()

list(query?): Promise<AppPage<AppTrade>>;

GET /app/v1/trades (trades:read), open trades in both directions, or completed ones newest first

Parameters

ParameterType
query?AppTradesQuery

Returns

Promise<AppPage<AppTrade>>

On this page