exchanges/ftx: populate best bid/ask sizes when handling ticker ws events (#795)

This commit is contained in:
Yordan Miladinov
2021-10-05 18:13:16 -07:00
committed by GitHub
parent 01dea7e219
commit 4f0d5d175c

View File

@@ -270,7 +270,9 @@ func (f *FTX) wsHandleData(respRaw []byte) error {
f.Websocket.DataHandler <- &ticker.Price{
ExchangeName: f.Name,
Bid: resultData.Ticker.Bid,
BidSize: resultData.Ticker.BidSize,
Ask: resultData.Ticker.Ask,
AskSize: resultData.Ticker.AskSize,
Last: resultData.Ticker.Last,
LastUpdated: timestampFromFloat64(resultData.Ticker.Time),
Pair: p,