(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 is a website building & hosting documentation for Clojure/Script libraries
× close