JestonBlu / RobinHood

An R interface for the RobinHood.com no commision investing site
https://jestonblu.github.io/RobinHood/
GNU Lesser General Public License v3.0
45 stars 12 forks source link

api_contracts function is not recognised #134

Closed paragemini closed 2 years ago

paragemini commented 2 years ago

After installing this package from CRAN and from Github all of the api functions seem to be unrecognizable. but all the get_functions works well? Is there any issue from my side that is creating this error?

d <- api_contracts(RH, chain_symbol= "TSLA", type = "call")
Error in api_contracts(RH, chain_symbol = "TSLA", type = "call") : 
  could not find function "api_contracts"
JestonBlu commented 2 years ago

The api functions are not exported in the CRAN version to keep the namespace small. The get functions are intended to be what the user executes. All get functions call one or more api functions. In the docs i have a network plot that shows how all functions are related.

If you want to be able to execute the api functions for trouble shooting or just wanting to do your own thing then you can install the github version of the package. I export all functions in that version mainly for the purpose of troubleshooting.

paragemini commented 2 years ago

all right, thanks. Just trying to get all the options contract for all expirations. I thought the api_contract function would return all of it. Might have to dig deep. Thanks for your help!