Separate LimitOrderBook#match into its own method
This commit is contained in:
parent
0ba5914b9c
commit
cd2262e895
@ -23,6 +23,10 @@ module Rex
|
|||||||
|
|
||||||
def add_and_match_order(order)
|
def add_and_match_order(order)
|
||||||
add_order(order)
|
add_order(order)
|
||||||
|
match
|
||||||
|
end
|
||||||
|
|
||||||
|
def match
|
||||||
@matcher.match(self)
|
@matcher.match(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user