Skip to content

Data Download Future Options by Ticker #574

@AlexCatarino

Description

@AlexCatarino

The following command doesn't download data:

$ lean data download --dataset "US Future Options" --data-type "trade" --ticker "ES" --market "cme" --resolution "minute" --start "20140101" --end "20250605"

Likely because of FutureOptions directory structure.

LEAN CLI json:

"all": [
                    "futureoption\/{market}\/{resolution}\/{ticker}"
                ]

I tested

"all": [
                    "futureoption\/{market}\/{resolution}\/{ticker}\/{expiry}\/{date}_{data-type}.zip"
                ]

by expiry would be required.

Regex in the database:

/^futureoption\/\w+\/minute\/\w+\/\w+\/[^\/]+\.zip$/m

By the way, LEAN CLI for US Future Option Universe:

$ lean data download --dataset "US Future Option Universe" --data-type "universe" --ticker "ES" --market "cme" --start "20240606" --end "20250606"

doesn't work (needs expiry).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions