Skip to content

Commit

Permalink
Kraken: Fix websocket order updates (thrasher-corp#1327)
Browse files Browse the repository at this point in the history
* Kraken: Fix error on WS update without status

* Kraken: Fix parsing of WS updates without Desc

* Kraken: Fix WS market order handling

* Kraken: Fix tests in parallel using DataHandler

* WebsocketManager: Fix order summary printing

* Kraken: Fix parallel tests race with DataHandler

* Kraken: Issue a classification err on asset 404

* Kraken: Switch to testify and close fixture
  • Loading branch information
gbjk authored Sep 5, 2023
1 parent 0523273 commit 253b9a5
Show file tree
Hide file tree
Showing 6 changed files with 563 additions and 576 deletions.
4 changes: 2 additions & 2 deletions engine/websocketroutine_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (m *WebsocketRoutineManager) websocketDataHandler(exchName string, data int
if err != nil {
return err
}
m.printOrderSummary(d, true)
m.printOrderSummary(od, true)
}
case []order.Detail:
for x := range d {
Expand All @@ -330,7 +330,7 @@ func (m *WebsocketRoutineManager) websocketDataHandler(exchName string, data int
if err != nil {
return err
}
m.printOrderSummary(&d[x], true)
m.printOrderSummary(od, true)
}
}
case order.ClassificationError:
Expand Down
Loading

0 comments on commit 253b9a5

Please sign in to comment.