added suggestions
This commit is contained in:
@@ -114,15 +114,6 @@
|
||||
"ZZZZZZ"
|
||||
(:location x))]))))
|
||||
|
||||
(defn locations [pnl-data]
|
||||
(->> (client-locations pnl-data)
|
||||
(map second)
|
||||
set
|
||||
(sort-by (fn [x]
|
||||
(if (= x "HQ" )
|
||||
"ZZZZZZ"
|
||||
x)))))
|
||||
|
||||
(defn aggregate-accounts [pnl-data]
|
||||
(reduce (fnil + 0.0) 0.0 (map :amount (:data pnl-data))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user