mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-25 13:10:33 +08:00
Gets almost 100x speed up over iterating over the values and summing up the values in Python. Farms out the work to numpy and atlas by using the vector dot product of the amounts and last sale prices. Adds some wiring of keeping track of an index into the numpy arrays for each position, so that value can be overwritten as events update those amounts and sale prices.