(amount-of-shares portfolio symbol)Returns the amount of shares of symbol in portfolio.
Returns the amount of shares of `symbol` in `portfolio`.
(buy-shares portfolio symbol amount price)Buy amount shares of symbol at price into portfolio.
Buy `amount` shares of `symbol` at `price` into portfolio.
(make-portfolio money)Make an empty portfolio with money.
Make an empty portfolio with `money`.
(sell-shares portfolio symbol amount price)Sell amount shares of symbol at price into portfolio.
Sell `amount` shares of `symbol` at `price` into portfolio.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |