tradeAnswer

Accept or decline an incoming trade request.

Answers the request in `trade.incoming`. Accepting opens the trade window, which then appears as `trade.trading`.

In Trading.

Request

POST /api/v1/sessions/{accountKey}/actions/tradeAnswer

Parameters

NameTypeRequiredDescription
accountId (account_id)stringyesWho asked — from `trade.incoming`.
acceptbooleanyesWhether to accept.

Example request

{ "accountId": "acc-5", "accept": true }

Response

`{ ok, accept }`.

Example response

{ "ok": true, "accept": true }

Errors

CodeWhen
action_failedNo character is in the lobby.
plan_limitNot on the free plan.

See also

DarkerAPI is an independent project. It is not affiliated with, endorsed by or associated with IRONMACE Co., Ltd. or Valve Corporation. “Dark and Darker” and related marks belong to their respective owners.