class OrderBook

Defined in:

orderbook/orderbook.cr

Constant Summary

ASK = "ask"
BID = "bid"
COMPLETE = 1
LIMIT = "limit"
MARKET = "market"

String consts

Instance Method Summary

Instance Method Detail

def add_ask(order : Order) #

[View source]
def add_bid(order : Order) #

[View source]
def add_fill(bid, ask : Order, price, amount : Float64, taker : Bool) #

[View source]
def add_order(order : Order) #

[View source]
def add_stop(order : Order) #

[View source]
def asks : Array(Order) #

[View source]
def asks=(asks : Array(Order)) #

[View source]
def bids : Array(Order) #

[View source]
def bids=(bids : Array(Order)) #

[View source]
def clean_complete #

[View source]
def execute(order : Order) #

[View source]
def execute_limit_ask(order : Order, order_index : Int32) #

[View source]
def execute_limit_bid(order : Order, order_index : Int32) #

[View source]
def execute_market_ask(order : Order, order_index : Int32) #

[View source]
def execute_market_bid(order : Order, order_index : Int32) #

[View source]
def fills : Array(Fill) #

[View source]
def fills=(fills : Array(Fill)) #

[View source]
def fire #

[View source]
def get_index(order : Order) #

[View source]
def remove_complete_orders(order_list : Array) #

[View source]
def stops : Array(Order) #

[View source]
def stops=(stops : Array(Order)) #

[View source]