-
Notifications
You must be signed in to change notification settings - Fork 70
Conversation
misspelled word ! |
still need to add testing |
6cee4b2
to
8711a45
Compare
// TickerResponseMessage is the message that is sent to the client when the | ||
// server has a price update for the subscribed asset pair. This is specific | ||
// to the ticker subscription. | ||
// | ||
// [ | ||
// 0, // ChannelID | ||
// { | ||
// "a": [ // Ask array | ||
// "5525.40000", // Best ask price | ||
// 1, // Whole lot volume | ||
// "1.000" // Lot volume | ||
// ], | ||
// "b": [ // Bid array | ||
// "5525.10000", // Best bid price | ||
// 1, // Whole lot volume | ||
// "1.000" // Lot volume | ||
// ], | ||
// "c": [ // Close array | ||
// "5525.10000", // Price | ||
// "0.00398963" // Lot volume | ||
// ], | ||
// "h": [ // High price array | ||
// "5783.00000", // Today | ||
// "5783.00000" // Last 24 hours | ||
// ], | ||
// "l": [ // Low price array | ||
// "5505.00000", // Today | ||
// "5505.00000" // Last 24 hours | ||
// ], | ||
// "o": [ // Open price array | ||
// "5760.70000", // Today | ||
// "5763.40000" // Last 24 hours | ||
// ], | ||
// "p": [ // Volume weighted average price array <- This is the value we want | ||
// "5631.44067", // Value Today | ||
// "5653.78939" // Value 24h | ||
// ], | ||
// "t": [ // Number of trades array | ||
// 11493, // Today | ||
// 16267 // Last 24 hours | ||
// ], | ||
// "v": [ // Volume array | ||
// "2634.11501494", // Value Today | ||
// "3591.17907851" // Value 24h | ||
// ] | ||
// }, | ||
// "ticker", // Channel name | ||
// "XBT/USD" // Asset pair | ||
// | ||
// ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting is ok when look at github.dev not sure why it looks incorrect on the other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also looks fine when looking locally
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #10 +/- ##
==========================================
+ Coverage 72.69% 72.94% +0.24%
==========================================
Files 99 103 +4
Lines 5282 5445 +163
==========================================
+ Hits 3840 3972 +132
- Misses 1178 1198 +20
- Partials 264 275 +11 ☔ View full report in Codecov by Sentry. |
// the handler should either return a response or a set of update messages. | ||
HandleMessage(message []byte) (response providertypes.GetResponse[K, V], updateMessages []WebsocketEncodedMessage, err error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding this mostly for completeness with the other function signature
No description provided.