Skip to content

Downloading commodity prices from STOOQ #925

Open
@cyrbaufr

Description

@cyrbaufr

Hi,

Since late 2021, I am not able to get historical prices on commodities from stooq.com using datareader.
I use StooqDailyReader from pandas_datareader.stooq.

When I try to get prices on ^DJI for exemple, no problem.
from pandas_datareader.stooq import StooqDailyReader
StooqDailyReader('^DJI').read().sort_index(ascending=True)

However, if I try with ticker 'CB.F':
StooqDailyReader('CB.F').read().sort_index(ascending=True)
I get the following error:
OSError: StooqDailyReader request returned no data; check URL for invalid inputs: https://stooq.com/q/d/l/

When I check the website, I see historical prices here: https://stooq.com/q/d/?s=cb.f.

Any idea? Thanks.

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