Skip to content

stooq.com cannot get data related to USDJPY #895

Open
@begoat

Description

@begoat

Purpose:
I want to use pandas-datareader to retrieve USDJPY data.

Steps to reproduce

  1. res = DataReader('USDJPY', 'stooq')
  2. res shows no data

Reason of Empty Data

  1. The origin url is https://stooq.com/q/d/l/?s=USDJPY It returns data.

  2. But because of ⬇️

    if not symbol.startswith("^"):

  3. The url will be transformed to
    GET /q/d/l/?s=USDJPY.US

Solutions

  1. Currently I couldn't figure out a way to make it.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions