Documentation ¶
Index ¶
- Variables
- func BookServer(ws *websocket.Conn)
- func GetBook(symbol string) *Book
- func GetLatestBook(instrument Instrument) *Book
- func NewGrpcServer() protocol.ExchangeServer
- func OrderList() orderList
- func StartWebServer(addr string)
- type BookRequest
- type MarketEvent
- type Packet
- type PacketHistory
- type SPSC
- type Statistics
Constants ¶
This section is empty.
Variables ¶
View Source
var App myApplication
View Source
var TheExchange exchange
Functions ¶
func BookServer ¶
func GetLatestBook ¶
func GetLatestBook(instrument Instrument) *Book
func NewGrpcServer ¶
func NewGrpcServer() protocol.ExchangeServer
func StartWebServer ¶
func StartWebServer(addr string)
Types ¶
type BookRequest ¶
type MarketEvent ¶
type MarketEvent struct {
// contains filtered or unexported fields
}
type PacketHistory ¶
type SPSC ¶
type SPSC struct {
// contains filtered or unexported fields
}
SPSC is a lock-free queue for []byte (single producer, single consumer), used to recycle marketdata multicast packets
type Statistics ¶
Click to show internal directories.
Click to hide internal directories.