The JSON-RPC 2.0 request/response envelope and the WebSocket and HTTP transports shared by every method.
The Derive v3 API is JSON-RPC 2.0. Every method — market data, trading, account, vaults — shares one
request/response envelope and is reachable over two transports: a persistent WebSocket connection or
a single HTTP POST. The method name and its params are identical across both; only the framing differs.
The envelope
A request carries an id, the protocol version, the method path, and a params object.