torreyleonard / algotrader

Simple algorithmic stock and option trading for Node.js.
https://www.npmjs.com/package/algotrader
Apache License 2.0
635 stars 119 forks source link

Fix bug for when Portfolio contains only one item #46

Closed mattwebbio closed 4 years ago

mattwebbio commented 4 years ago

When a user's portfolio contains only one item, res is an object rather than an array.