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

@@ -966,6 +966,7 @@ func (b *Bitfinex) WsInsertSnapshot(p currency.Pair, assetType asset.Item, books
book.Pair = p
book.ExchangeName = b.Name
book.NotAggregated = true
book.HasChecksumValidation = true
book.IsFundingRate = fundingRate
return b.Websocket.Orderbook.LoadSnapshot(&book)
}