WebsockexNova.Examples.AdapterDeribit (WebsockexNova v0.1.1)

View Source

Example Deribit adapter using use WebsockexNova.Adapter macro.

This demonstrates how to build a Deribit WebSocket API adapter with minimal overrides.

Summary

Functions

Handle WebSocket frames directly. This is crucial for proper handling of Deribit's heartbeat mechanism, which requires responding to test_request frames with a public/test request.

Functions

handle_frame(type, data, state)

Handle WebSocket frames directly. This is crucial for proper handling of Deribit's heartbeat mechanism, which requires responding to test_request frames with a public/test request.