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 Entry ¶
type Entry struct { Side string `json:"side"` Price number.Integer `json:"price"` Amount number.Decimal `json:"amount"` Funds number.Decimal `json:"funds"` // contains filtered or unexported fields }
type OrderEvent ¶
type Page ¶
type Page struct { Side string // contains filtered or unexported fields }
type TransactCallback ¶
Click to show internal directories.
Click to hide internal directories.