Skip to content

Instantly share code, notes, and snippets.

View aredington's full-sized avatar

Alex Redington aredington

View GitHub Profile
@aredington
aredington / output.clj
Last active August 29, 2015 14:09 — forked from hmanish/output.clj
(defn compute-position
"returns a map
key is a vector -[ <settlement index name> <power primitive name>]
value is a map - {<Date representing yyyy-MM> <Double: the positon> }
For non power trades, primitive name will be nil"
[trade]
;;compute postion code)