Documentation ¶
Index ¶
- type ByBestAsk
- type ByBestBid
- type Limit
- type Limits
- type Match
- type Order
- type Orderbook
- func (ob *Orderbook) AskTotalVolume() float64
- func (ob *Orderbook) Asks() []*Limit
- func (ob *Orderbook) BidTotalVolume() float64
- func (ob *Orderbook) Bids() []*Limit
- func (ob *Orderbook) CancelOrder(o *Order)
- func (ob *Orderbook) PlaceLimitOrder(price float64, o *Order)
- func (ob *Orderbook) PlaceMarketOrder(o *Order) []Match
- type Orders
- type Trade
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limit ¶
func (*Limit) DeleteOrder ¶
type Orderbook ¶
type Orderbook struct { Trade []*Trade AskLimits map[float64]*Limit BidLimits map[float64]*Limit Orders map[int64]*Order // contains filtered or unexported fields }
func NewOrderbook ¶
func NewOrderbook() *Orderbook
func (*Orderbook) AskTotalVolume ¶
func (*Orderbook) BidTotalVolume ¶
func (*Orderbook) CancelOrder ¶
func (*Orderbook) PlaceLimitOrder ¶
func (*Orderbook) PlaceMarketOrder ¶
Click to show internal directories.
Click to hide internal directories.