Initial commit
This commit is contained in:
11
spec/trading/matching/order_book_manager_spec.rb
Normal file
11
spec/trading/matching/order_book_manager_spec.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# encoding: UTF-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
describe Matching::OrderBookManager do
|
||||
context '.build_order' do
|
||||
it 'should build limit order' do
|
||||
order = ::Matching::OrderBookManager.build_order id: 1, market: 'btcusd', ord_type: 'limit', type: 'ask', price: '1.0', volume: '1.0', timestamp: 12_345
|
||||
expect(order).to be_instance_of(::Matching::LimitOrder)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user