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
| Parameter | Type |
|---|---|
gapi | KrunkerClient |
auth | Record<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
| Parameter | Type |
|---|---|
query? | AppTradesQuery |