Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

chore: add missing brace and remove redundant word in comment #910

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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 providers/base/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ func TestWebSocketProvider(t *testing.T) {
expectedPrices: map[connecttypes.CurrencyPair]*big.Int{},
},
{
name: "updates the timestamp associated with a result if the the data is unchanged and still valid",
name: "updates the timestamp associated with a result if the data is unchanged and still valid",
handler: func() wshandlers.WebSocketQueryHandler[connecttypes.CurrencyPair, *big.Int] {
// First response is valid and sets the data.
resolved := map[connecttypes.CurrencyPair]providertypes.ResolvedResult[*big.Int]{
Expand Down
33 changes: 17 additions & 16 deletions providers/websockets/bybit/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,22 +154,23 @@ type SubscriptionResponse struct {
//
// Example:
//
// {
// "topic": "tickers.BTCUSDT",
// "ts": 1673853746003,
// "type": "snapshot",
// "cs": 2588407389,
// "data": {
// "symbol": "BTCUSDT",
// "lastPrice": "21109.77",
// "highPrice24h": "21426.99",
// "lowPrice24h": "20575",
// "prevPrice24h": "20704.93",
// "volume24h": "6780.866843",
// "turnover24h": "141946527.22907118",
// "price24hPcnt": "0.0196",
// "usdIndexPrice": "21120.2400136"
// }
// {
// "topic": "tickers.BTCUSDT",
// "ts": 1673853746003,
// "type": "snapshot",
// "cs": 2588407389,
// "data": {
// "symbol": "BTCUSDT",
// "lastPrice": "21109.77",
// "highPrice24h": "21426.99",
// "lowPrice24h": "20575",
// "prevPrice24h": "20704.93",
// "volume24h": "6780.866843",
// "turnover24h": "141946527.22907118",
// "price24hPcnt": "0.0196",
// "usdIndexPrice": "21120.2400136"
// }
// }
type TickerUpdateMessage struct {
Topic string `json:"topic"`
Data TickerUpdateData `json:"data"`
Expand Down