Skip to main content
Artefact runs a timed interview on three instruments (A, B, A−B). Connect as a UI client, start the interview, trade the arb, then end to receive a report. Product overview: Artefact. Shared connect and order fields: API overview.

Protocol

  1. Connect to wss://www.getavenir.co/ws
  2. { "action": "userConnected", "token": "<Clerk JWT>", "applicationType": "artefact" }
  3. Receive artefactConfig and orderBook
  4. { "action": "startInterview" } — bots on, timer starts
  5. Trade with placeOrder / cancelOrder on instrumentId 1, 2, or 3
  6. { "action": "endInterview" } — bots off; server pushes interviewReport
  7. Persist with recordSession if you want a past-session row (not automatic on disconnect)
Interview lifecycle actions require a UI socket (userConnected), not an Opera API client.

Client actions

Server messages

artefactConfig

Sent on connect. Ladder bounds for instruments 13 are in laddersByInstrument.

interviewReport

Or { "type": "interviewReport", "error": "not_found" } when no report exists.

orderBook

Multi-instrument book for 1, 2, and 3.