Go to file
2020-07-12 22:54:49 -04:00
src First commit 2020-07-12 22:54:49 -04:00
.gitignore First commit 2020-07-12 22:54:49 -04:00
.prettierrc First commit 2020-07-12 22:54:49 -04:00
package.json First commit 2020-07-12 22:54:49 -04:00
README.md First commit 2020-07-12 22:54:49 -04:00
test First commit 2020-07-12 22:54:49 -04:00
yarn.lock First commit 2020-07-12 22:54:49 -04:00

Quick attempt at an optimal portfolio balancer.

Note that it is not currently optimal (Work in progress)

To run:

yarn
cat test - | node .

Commands:

<TICKER>:<price> Sets the stock price for the given ticker

example:

AAPL:152.3

rebalance:<account_id> Triggers a rebalance for the given account ID

example:

rebalance:1

note: Account 1 is there by default.