Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tq_get date limits problem #210

Open
espher1987 opened this issue Dec 26, 2021 · 0 comments
Open

tq_get date limits problem #210

espher1987 opened this issue Dec 26, 2021 · 0 comments

Comments

@espher1987
Copy link

Hi to everyone, i'm trying to use tq_get() to get information but i have a doubt about the to= parameter

library(tidyquant)

x <- tq_get("AMZN",
            from = "2010-12-31",
            to = "2013-12-31")

last(x$date)
#> [1] "2013-12-30"

Created on 2021-12-25 by the reprex package (v2.0.1)

the last date i get is one day before the limit , is this the correct behavior of this? or im doing something wrong? Thanks for this amazing package!


version

platform       x86_64-pc-linux-gnu         
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          4                           
minor          0.4                         
year           2021                        
month          02                          
day            15                          
svn rev        80002                       
language       R                           
version.string R version 4.0.4 (2021-02-15)
nickname       Lost Library Book 


Package: tidyquant
Type: Package
Title: Tidy Quantitative Financial Analysis
Version: 1.0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant