Refactor soa_series example to use a constant for ticks
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
(push my_ticks {:price 11.2 :volume 200 :msg "B"})
|
||||
(push my_ticks {:price 15.5 :volume 300 :msg "C"})
|
||||
|
||||
(repeat n 100 (push my_ticks {:price (+ n 15.5) :volume (ceil (/ n 300)) :msg "??"})
|
||||
;(repeat n 100 (push my_ticks {:price (+ n 15.5) :volume (ceil (/ n 300)) :msg "??"})
|
||||
|
||||
|
||||
(def prices (.price my_ticks))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user