.rp_make_opt_symbol | R Documentation |
Build Option Symbol (Internal)
.rp_make_opt_symbol(under_sym, exp, type, strike)
under_sym |
= (string) Underlying symbol for the option: ex. 'SPY' |
exp |
= (string) The option expiration: ex. "2025-08-15" |
type |
= (string) The option type: 'C' for Call & 'P' for Put |
strike |
= (double/int) The option strike price: 631 or 631.00 |
Returns a valid symbol string
for the option contract of interest
## Not run:
# Return the proper option symbol of interest: "TSLA250808C00325000"
.rp_make_opt_symbol(under_sym="TSLA", exp="2025-08-08", type="C", strike=325)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.