Skip to content

Historical Data for expired Futures showing empty data #321

Description

@NMNDV

Current Date: 2025-11-01, and the Future expired on 2025-10-28

op = client.historical_data(
    "M", "D", 458303, "60m", "2025-10-26", "2025-10-27"
)

print(op)
Empty DataFrame
Columns: []
Index: []

Note that script data also does not contain the old/expired futures.

Removed row: M,D,458303,GOLDPETAL 30 SEP 2025,2025-09-30,XX,0,EX MUMBAI,1,1,10000,1,GOLDPETAL,Y,,GOLDPETAL 30 SEP 2025_20250930,

How do we fetch the old data for analysis?

feature request?

So,

  1. the historical data requires ScripCode of the asset, but the latest scrip data does not contain the expired and previous asset's data, and

  2. Even if we have the script code stored for further use, the data is empty from the historical_data API https://openapi.5paisa.com/V2/historical/..., maybe a deviation from the "Historical Data" feature.

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