go-deribit
go-deribit copied to clipboard
Go library for using the Deribit's Websocket API
After running for a few hours I got this error: panic: runtime error: slice bounds out of range [:6477] with capacity 4096 ``` goroutine 237 [running]: bufio.(*Reader).Read(0xc000205aa0, 0xc0002be000, 0x22, 0x2000,...
As discussed here https://github.com/adampointer/go-deribit/issues/24. Found also a bug when generating the models for v3, `subscriptions` was missing in the Exchange struct.
Prerequisite: 1- Subscribe to the orders, e.g. with `SubscribeUserOrdersKind` Reproduction steps: 1- create 2 or more limits order in an open position (so that an array is returned and not...
Tests
Find a mocking framework for websockets maybe nock? Need to add basic tests around handling of messages from the remote as some break the type system where we expect objects...