Purpose:
I want to use pandas-datareader to retrieve USDJPY data.
Steps to reproduce
res = DataReader('USDJPY', 'stooq')
res shows no data
Reason of Empty Data
-
The origin url is https://stooq.com/q/d/l/?s=USDJPY It returns data.
-
But because of ⬇️
|
if not symbol.startswith("^"): |
-
The url will be transformed to
GET /q/d/l/?s=USDJPY.US
Solutions
- Currently I couldn't figure out a way to make it.
- I noticed 3398e41 this commit in the file
pandas_datareader/stooq.py introduced many complicated statements that make it impossibe to do this kind of API Request.
Purpose:
I want to use pandas-datareader to retrieve
USDJPYdata.Steps to reproduce
res = DataReader('USDJPY', 'stooq')res shows no dataReason of Empty Data
The origin url is
https://stooq.com/q/d/l/?s=USDJPYIt returns data.But because of ⬇️
pandas-datareader/pandas_datareader/stooq.py
Line 44 in b1247d1
The url will be transformed to
GET /q/d/l/?s=USDJPY.USSolutions
pandas_datareader/stooq.pyintroduced many complicated statements that make it impossibe to do this kind of API Request.