placeOrder fields: API overview.
Protocol
- Connect to
wss://www.getavenir.co/ws { "action": "userConnected", "token": "<Clerk JWT>", "applicationType": "tutorial" }- Receive
orderBookandtutorialInstruction - Trade with
placeOrder/cancelOrder/cancelAllOrders, or advance withtutorialNext/tutorialPrevious - 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.
Related
- Guide: Tutorial
- Shared auth and orders: API overview