Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion v2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@ func IsRawBook(precision string) bool {
// raw book updates [ID, price, qty], aggregated book updates [price, amount, count]
func NewBookUpdateFromRaw(symbol, precision string, data []interface{}) (b *BookUpdate, err error) {
if len(data) < 3 {
return b, fmt.Errorf("data slice too short for book update, expected %d got %d: %#v", 5, len(data), data)
return b, fmt.Errorf("data slice too short for book update, expected %d got %d: %#v", 3, len(data), data)
}
var px float64
var id, cnt int64
Expand Down