Description Usage Arguments Value Examples
Function adds holding from portfolio without a cash transaction
1 2 | transfer_in(pobj, date = Sys.Date(), symbol, quantity, price,
desc = "")
|
pobj |
portfolio object |
date |
date of transaction. Date type |
symbol |
symbol ticker. character type |
quantity |
number of shares. numeric type |
price |
price of shares. numeric type |
desc |
trade description. string type |
updated portfolio object
1 2 3 4 | library(tidyverse)
p1 <- portfolio("new_port") %>%
make_deposit(Sys.Date(), amount = 2000) %>%
transfer_in(Sys.Date()-1, symbol = "SPY", quantity = 10, price = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.