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_exchange("NASDAQ") Not working #248

Closed
mdancho84 opened this issue Aug 19, 2024 · 1 comment
Closed

tq_exchange("NASDAQ") Not working #248

mdancho84 opened this issue Aug 19, 2024 · 1 comment

Comments

@mdancho84
Copy link
Collaborator

Issue:

> tq_exchange("NASDAQ")
Getting data...

Error in open.connection(con, "rb") : 
  cannot open the connection to 'https://api.nasdaq.com/api/screener/stocks?tableonly=true&exchange=nasdaq&download=true'
In addition: Warning message:
In open.connection(con, "rb") :
  URL 'https://api.nasdaq.com/api/screener/stocks?tableonly=true&exchange=nasdaq&download=true': status was 'Stream error in the HTTP/2 framing layer'
@mdancho84
Copy link
Collaborator Author

This is working now. Make sure to use tidyquant >= 1.0.7.9001

Install using:

remotes::install_github("business-science/tidyquant")
> tq_exchange("NASDAQ")
Getting data...

# A tibble: 3,970 × 7
   symbol company                                          last.sale.price    market.cap country       ipo.year industry                         
   <chr>  <chr>                                                      <dbl>         <dbl> <chr>            <int> <chr>                            
 1 AACG   ATA Creativity Global American Depositary Shares           0.6        19200078 China             2008 Other Consumer Services          
 2 AADI   Aadi Bioscience Inc. Common Stock                          1.47       36183806 United States       NA Biotechnology: Pharmaceutical Pr3 AAGR   African Agriculture Holdings Inc. Common Stock             0.123       7123407 United States     2021 Farming/Seeds/Milling            
 4 AAGRW  African Agriculture Holdings Inc. Warrant                  0.009        520801 United States     2021 Farming/Seeds/Milling            
 5 AAL    American Airlines Group Inc. Common Stock                 10.0      6599874326 United States       NA Air Freight/Delivery Services    
 6 AAME   Atlantic American Corporation Common Stock                 1.55       31619625 United States       NA Life Insurance                   
 7 AAOI   Applied Optoelectronics Inc. Common Stock                  8.28      338616520 United States     2013 Semiconductors                   
 8 AAON   AAON Inc. Common Stock                                    88.7      7185056096 United States       NA Industrial Machinery/Components  
 9 AAPL   Apple Inc. Common Stock                                  226.    3436895168850 United States     1980 Computer Manufacturing           
10 ABAT   American Battery Technology Company Common Stock           1.03       60356077 United States       NA Metal Mining                     
# ℹ 3,960 more rows
# ℹ Use `print(n = ...)` to see more rows

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