Exchanges: Bypass websocket book validation (#613)

* Exchanges: Bypass websocket book validation on exchanges when checksum is implemented, fix FTX test, go mod tidy

* Orderbook: Change orderbook base field name
This commit is contained in:
Ryan O'Hara-Reid
2021-01-05 15:55:46 +11:00
committed by GitHub
parent eb0571cc9b
commit 010fab02ca
8 changed files with 28 additions and 18 deletions

View File

@@ -678,12 +678,13 @@ func (o *OKGroup) WsProcessPartialOrderBook(wsEventData *WebsocketOrderBook, ins
}
newOrderBook := orderbook.Base{
Asks: asks,
Bids: bids,
AssetType: a,
LastUpdated: wsEventData.Timestamp,
Pair: instrument,
ExchangeName: o.Name,
Asks: asks,
Bids: bids,
AssetType: a,
LastUpdated: wsEventData.Timestamp,
Pair: instrument,
ExchangeName: o.Name,
HasChecksumValidation: true,
}
return o.Websocket.Orderbook.LoadSnapshot(&newOrderBook)
}