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

Error in api_positions : could not find function "api_positions" #107

Closed bharath-cchmc closed 3 years ago

bharath-cchmc commented 3 years ago

When I use any function api_xxx (eg api_tickers or api_instruments I get an error Error in api_positions : could not find function "api_positions")

When I use get_xxx I see those are working fine.

Any help would be appreciated

 sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RobinHood_1.4
JestonBlu commented 3 years ago

@bharath-cchmc are you using the CRAN version or the Github version? In the CRAN version, the api_* functions are not exported so they cant be called directly. If you want to do that you will need to use the Github version.