Skip to main content
Tutorial binds a UI WebSocket, runs a step machine, and evaluates your ladder actions against the current step. Product overview: Tutorial. Shared connect and placeOrder fields: API overview.

Protocol

  1. Connect to wss://www.getavenir.co/ws
  2. { "action": "userConnected", "token": "<Clerk JWT>", "applicationType": "tutorial" }
  3. Receive orderBook and tutorialInstruction
  4. Trade with placeOrder / cancelOrder / cancelAllOrders, or advance with tutorialNext / tutorialPrevious
  5. Disconnect clears tutorial progress (nothing is logged as a past session)

Client actions

Bot on/off during the walkthrough is server-driven per step. Do not use toggleBots.

Server messages

tutorialInstruction

orderBook

Standard book for instrument 0.