Commit 8346d55
fix: critical bugs, type corrections, RTDS race condition, and comprehensive test coverage
- Fix UpdateBalanceAllowance response not being unmarshaled (pkg/clob)
- Fix SignatureType enum collision: SignatureMagic and SignatureProxy both had value 1 (pkg/auth)
- Fix salt validation inconsistency: generation limited to 53 bits but validation allowed 63 bits (pkg/clob)
- Fix PriceHistoryPoint.Price type from string to float64 to match API response (pkg/clob/clobtypes)
- Fix RTDS subscribe race condition: subscribeRaw now waits for WebSocket connection before sending
- Add comprehensive tests for pkg/data (9.4% → 63.8%), pkg/ctf (11.6% → 71.1%),
pkg/clob/ws (33.8% → 63.6%), pkg/rtds (35.0% → 62.1%), pkg/clob/rfq (38.5% → 100%),
pkg/bridge (42.0% → 67.0%)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 93c7db8 commit 8346d55
15 files changed
Lines changed: 3835 additions & 87 deletions
File tree
- pkg
- auth
- bridge
- clob
- clobtypes
- rfq
- ws
- ctf
- data
- rtds
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 74 | + | |
77 | 75 | | |
| 76 | + | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
0 commit comments