portfolio-balancer/README.md

36 lines
402 B
Markdown
Raw Normal View History

2020-07-13 02:47:21 +00: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.