Method: Orderbook#start!
- Defined in:
- lib/orderbook.rb
#start! ⇒ Object
Used to start the thread that listens to updates on the websocket and applies them to the current orderbook to create a live book.
83 84 85 86 87 88 89 90 91 92 |
# File 'lib/orderbook.rb', line 83 def start! start_em_thread # Wait to make sure the snapshot sequence ID is higher than the sequence of # the first message in the queue. # sleep 0.3 apply_orderbook_snapshot start_processing_thread end |