Learn R Programming

RobinHood (version 1.7.0)

get_contracts: Get a option contracts from RobinHood

Description

Get a option contracts from RobinHood

Usage

get_contracts(RH, chain_symbol, type, detail = FALSE)

Arguments

RH

object class RobinHood

chain_symbol

(string) a single ticket symbol

type

(string) one of call or put

detail

(logical) if TRUE (default) return additional info on greeks, prevous day, high/low fill rate prices

Examples

Run this code
if (FALSE) {
# Login in to your RobinHood account
RH <- RobinHood("username", "password")

get_contracts(RH, "IR")
}

Run the code above in your browser using DataLab