Documentation
¶
Index ¶
Constants ¶
View Source
const ( OrderActionCreate = "CREATE" OrderActionCancel = "CANCEL" EventQueueSize = 8192 )
View Source
const ( OrderTypeLimit = "LIMIT" OrderTypeMarket = "MARKET" )
View Source
const ( PageSideAsk = "ASK" PageSideBid = "BID" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct {
// contains filtered or unexported fields
}
func NewBook ¶
func NewBook(ctx context.Context, market string, transact TransactCallback, cancel CancelCallback) *Book
func (*Book) AttachOrderEvent ¶
type CancelCallback ¶
type CancelCallback func(order *Order)
type OrderEvent ¶
Click to show internal directories.
Click to hide internal directories.