Skip to content

Commit

Permalink
start 30 days before today to no have some trades not show up..
Browse files Browse the repository at this point in the history
  • Loading branch information
mpisanko committed Sep 9, 2024
1 parent 76ac090 commit 36cdb2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reference-service/src/reference_service/data/loader.clj
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
{:id "TRADE-52355-AABBCC" :security "BAC" :accountId 52355 :unitPrice 20 :quantity 2400 :side "Buy"}])

(def trade-dates
(let [t0 (System/currentTimeMillis)
day (* 24 60 60 1000)]
(let [day (* 24 60 60 1000)
t0 (- (System/currentTimeMillis) (* 30 day))]
(mapv
(fn [t]
{:created (+ (* t day) t0)
Expand Down

0 comments on commit 36cdb2a

Please sign in to comment.