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