tradeSelect
Join a trading channel.
Clears the roster and chat before joining, so a re-select never shows the previous channel's rows. The roster then streams in — read it from `trade` a moment later, or take it off the WebSocket.
In Trading.
Request
POST /api/v1/sessions/{accountKey}/actions/tradeSelect
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
index | integer | yes | From `tradeChannels`. |
Example request
{ "index": 1 }
Response
`{ ok: true, index }`.
| Field | Type | Meaning |
|---|---|---|
ok | boolean | Whether the channel was joined. |
index | integer | The channel now joined — the `index` that was asked for. |
Example response
{ "ok": true, "index": 1 }
Errors
| Code | When |
|---|---|
action_failed | The channel is full, the index is unknown, or the select timed out. |
plan_limit | Not 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.