This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) | |