Description Value Super classes Methods Author(s)
Asset manager.
Object of type instrument
ims::portfolio
-> ims::account
-> instrument
new()
Object initializer. This function will be automatically called when we initialize object.
instrument$new(owner)
owner:
The name of the owner of the instrument
NA
add_instrument()
Adding instrument(s) as our asset once we buy them.
instrument$add_instrument( account_id, portfolio_symbol, open_price, value, order_id, user_name, platform )
account_id:
The account_id of the owner
portfolio_symbol:
The symbol of portfolio (pair) that we are collected as asset(s)/instrument(s)
open_price:
The price when we buy the asset(s)/instrument(s)
value:
How many we buy the asset(s)/instrument(s)
order_id:
The id registered when we buy the instrument(s)
Object of type instrument
print()
Method to print out our instrument class specifically
instrument$print()
String to print information about the owner of the instruments
clone()
The objects of this class are cloneable with this method.
instrument$clone(deep = FALSE)
deep
Whether to make a deep clone.
Suberlin Sinaga @2021
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.