tq_exchange returning error message

This issue has been created since 2021-01-25.

The tq_exchange function is returning the same error for any exchange:
Error: Can't rename columns that don't exist.
x Column 'Symbol' doesn't exist.

mdancho84 wrote this answer on 2021-01-29

Here's the website. https://www.nasdaq.com/market-activity/stocks/screener?exchange=nyse

I can't find the link that will download the CSV from it. Seems like they don't want people getting the CSV via CURL.

mcfsalla wrote this answer on 2021-01-30
tzeenech wrote this answer on 2021-02-04

I ran into the same issue. I found when you click on the download CSV button there is an API call made that returns a JSON envelope back with the info. No authorization header required.

https://api.nasdaq.com/api/screener/stocks?tableonly=true&limit=25&offset=0&exchange=nyse&download=true

The exchange can be tweaked, the limit=25 doesn't seem to matter.

mdancho84 wrote this answer on 2021-02-04

Awesome! This could be the solution.

HarryGrosse wrote this answer on 2021-02-14

Ran into the same problem:

tq_exchange("NASDAQ")
Error: Can't rename columns that don't exist.
x Column `Symbol` doesn't exist.

Looking for guidance from the team, It seems like this is the path to a solution:
https://stackoverflow.com/questions/37996827/convert-json-file-to-a-csv-file-using-r

Agree?

tzeenech wrote this answer on 2021-02-14

I ended up using httr's GET() function which can do json parsing. It produces a data frame with the column headers and a list of rows, each being a list of values.

mdancho84 wrote this answer on 2021-02-14

Solution seems straightforward. I'm tied up and won't be able to tackle for a bit. If someone can make a pull request, it would be much appreciated. Otherwise I'll tackle once I get some free time.

mgei wrote this answer on 2021-02-26

I tried to fix it, works for me: #194

mdancho84 wrote this answer on 2021-02-28

Hey everyone, #194 has just been merged. Thanks @mgei for helping with integrating. It works very fast. Give him a 👏

mdancho84 wrote this answer on 2021-02-28

Until this fix gets to CRAN please install using:

remotes::install_github("business-science/tidyquant")
More Details About Repo
Owner Name business-science
Repo Name tidyquant
Full Name business-science/tidyquant
Language R
Created Date 2016-12-30
Updated Date 2022-09-05
Star Count 758
Watcher Count 76
Fork Count 166
Issue Count 91

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Goodcheck linter cause an error no matter if it's disabled 5 2022-08-01 2022-08-20
[台北/中山][部分遠端][月薪6.5萬~10萬][報導者] Fullstack Engineer 1 2021-03-11 2022-09-27
[徵才][台北][年薪 45K USD or up] Industrial Engineer - Women's Health 1 2021-03-21 2022-09-16
[台北/信義][月薪8萬以上][M800 台灣資信] Sr. Backend Engineer - golang 3 2021-03-29 2022-09-16
关闭后仍然驻留于内存中,任务管理器显示有10%的CPU占用 2 2022-03-17 2022-09-29
Plot Functions Improvement 5 2021-06-27 2022-09-16
Railsconf 35: update t() in app/views/case_contacts/edit.html.erb 0 2022-05-16 2022-05-16
Railsconf 37: update t() in app/views/case_contacts/new.html.erb 0 2022-05-16 2022-05-16
Delivery time pop-up calendar content only shown in English language and format 0 2022-03-30 2022-08-23
您好!请问大神应用识别时候的置信度如何求得? 2 2022-03-29 2022-09-10
Copy input_id properties to forwarded 19 2021-09-18 2022-08-16
Custom dimensions (ratio and pixel resolution) 3 2021-08-07 2022-08-19
RouterOS 6 may no longer working on newly created Vultr instance (if normally installed) 1 2021-08-07 2022-09-17
Maven repo error 1 2021-07-09 2022-01-23
Xbox 360 Accessories Software 1.2 1 2021-02-08 2022-09-17
Support Camel 3 metadata 0 2022-04-13 2022-09-28
Support for set operators: Intersect, Union, Except, in TypeOrm 2 2022-01-30 2022-08-02
Document requirements for SQLite DB file system 2 2022-04-04 2022-07-22
Use the stable hierarcy endpoint from MSC2946 6 2021-11-12 2022-09-17
highlight glossary words in guide and api doc 3 2016-01-24 2022-09-16
minecraft not launching 1 2022-06-21 2022-09-07
[Bug]读取云管平台ES日志信息通过记录数筛选报错 1 2021-10-25 2022-09-13
Context menu issue with Uploads 4 2021-10-14 2022-09-21
loading configuration failed 9 2021-11-27 2022-08-23
Gitify using insane amounts of CPU 0 2022-03-09 2022-09-05
Invalid characters cause error in HEX detection 1 2021-09-01 2022-08-11
Documentation: Add code to show how to "join" or complete asynchronous library calls 5 2022-02-23 2022-09-17
NewRelic metric errors (monotonic values must be positive) 3 2022-05-23 2022-09-28
No update email is sent when changing from recurrence event to the single event 0 2021-05-24 2022-08-03
MetaZonePeriod creates duplicate Json files for different locales 0 2022-07-26 2022-09-23
Datatable: extend usage of selectionPageOnly attribute 0 2021-08-17 2022-09-16
NP command has been waiting 2 2021-11-08 2022-09-20
[a11y] Make WbPlanView's picklists accessible 0 2021-09-27 2022-07-23
Compensation Maintainer 39 2019-08-21 2022-09-24
Deprecate public HTTPServer constructors/Recommend using HTTPServer.Builder 1 2021-09-14 2022-09-07
WARNING: sendResponseHeaders: being invoked with a content length for a HEAD request 4 2021-08-16 2022-09-19
打开书架漫画没有自动更新最后阅读时间 0 2020-04-16 2022-01-01
MAX_DATA_SIZE is too low for full support of "Structured-appended" feature 3 2021-08-02 2022-09-09
Apigee Actions module but seems it's not compatible with Drupal 9.2.4 3 2021-09-27 2022-07-06
EDSC-3067: Fix 508 compliance 'Empty form label' findings 0 2021-04-15 2022-09-07
The win32 wheel package on pypi embeds a 64-bit library 1 2022-07-29 2022-09-07
LICENSE missing copyright line 1 2021-01-27 2022-08-13
Upgrade commons-io in repository-hdfs plugin 1 2021-11-16 2022-09-21
passwall分流所用的geosite和geoip的来源是哪里? 1 2021-11-09 2022-09-29
[dart:core] Uri `queryParameters` to support pimitive types 6 2022-04-06 2022-07-30
Add ebriney to MAINTAINERS 1 2020-07-07 2022-09-24
Feature Request: Add custom annotations to postgres-operator-ui objects 0 2022-01-20 2022-08-06
Argument parsing silently drops unknown arguments 0 2020-06-05 2022-08-02
FEATURE: add multilanguage capability 0 2017-10-29 2022-08-22
Abstract build/ path in the manifest.json file 0 2021-05-28 2022-09-15