package
Version:
v0.0.0-...-629b520
Opens a new window with list of versions in this module.
Published: Dec 21, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Trade struct {
ID uint64 `json:"t"`
Symbol string `json:"s"`
Price string `json:"p"`
}
Trade is a model representing a single trade on binance.
Watcher listense to binance events.
func NewWatcher(logger logger) *Watcher
NewWatcher creates a new watcher.
Watch subscribes to symbol trades, and writes them into the channel.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.