class Orderbook::Model

Included Modules

Defined in:

orderbook/model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(bids : Orders = {} of BigDecimal => BigDecimal, asks : Orders = {} of BigDecimal => BigDecimal, orders : Array(LimitOrder) = [] of LimitOrder) #

[View source]

Instance Method Detail

def add_order(order : LimitOrder) #

[View source]
def apply(tick : Tick) #

[View source]
def asks : Hash(BigDecimal, BigDecimal) #

[View source]
def bids : Hash(BigDecimal, BigDecimal) #

[View source]