Broker historical data

Can I use my broker historical data before I export a package?

Stockey helps you check broker historical-data availability, understand setup limits, run historical tests where supported, and prepare a package with broker setup notes and example configuration for your own environment.

Broker selector

Z
Zerodha
D
Dhan
A
Angel One
G
Groww
U
Upstox
F
Fyers
S
Shoonya
K
Kotak Neo
I
ICICI Breeze
5
5paisa

Historical-data readiness

WHAT HAS BEEN CHECKED
BrokerHistorical DataEquityFuturesOptionsMCXInstrumentsData WindowStatus
ZerodhaNot yet verifiedNeeds checkNeeds checkNeeds checkNeeds checkNeeds checkBroker-limitedNeeds confirmation
DhanNot yet verifiedNeeds checkNeeds checkNeeds checkNeeds checkNeeds checkBroker-limitedNeeds confirmation
Angel OneNot yet verifiedNeeds checkNeeds checkNeeds checkNeeds checkNeeds checkBroker-limitedNeeds confirmation
GrowwNot yet verifiedNeeds checkNeeds checkNeeds checkUnknownNeeds checkBroker-limitedCheck data limits

Temporary connection status

Credentials

session-only

Secret storage

disabled by default

Historical fetch

user-requested

Order endpoints

blocked in Stockey

Data retained

temporary

Package config

prepared

Historical data onlyNo permanent broker-secret storage by defaultNo SaaS order operationUser-owned packageUser-controlled environment

Broker access is used for historical testing and package preparation, not Stockey-side order operation.

Stockey uses user-authorized broker access only for historical-data availability checks and user-requested testing where supported. Any exported package remains user-controlled after download.

User broker credentials

entered by the user for the current testing session

Temporary session

used only for requested historical data operations

Historical-data availability review

limited by broker-provided availability

Backtest engine

applies the user's own strategy rules

AI-assisted review

explains historical results, drawdowns, assumptions, and experiment ideas

Package configuration

prepares broker-specific example settings

Credentials not retained by default

no permanent secret storage by default

Broker historical-data status guide

Broker capability varies by broker, account permission, segment, instrument, timeframe, API approval, and rate limits. Stockey keeps those limitations visible before package export.

BrokerHistorical DataEquityF&OOptions ChainMCXInstrument MasterSetup StatusNotes
Z
Zerodha
Not yet verifiedNeeds checkNeeds checkNeeds checkNeeds checkNeeds checkNeeds confirmationAPI key, redirect/session flow, broker data limits
D
Dhan
Not yet verifiedNeeds checkNeeds checkNeeds checkNeeds checkNeeds checkNeeds confirmationConfiguration and data-limit checks needed
A
Angel One
Not yet verifiedNeeds checkNeeds checkNeeds checkNeeds checkNeeds checkNeeds confirmationSmartAPI setup and session handling need checking
G
Groww
Not yet verifiedNeeds checkNeeds checkNeeds checkUnknownNeeds checkCheck data limitsConfirm current API capability from broker documentation
U
Upstox
Not checked yetNeeds checkNeeds checkNeeds checkNeeds checkNeeds checkFuture checkCapability details need broker-documentation review
F
Fyers
Not checked yetNeeds checkNeeds checkNeeds checkNeeds checkNeeds checkFuture checkCapability details need broker-documentation review
S
Shoonya
Not checked yetNeeds checkNeeds checkNeeds checkNeeds checkNeeds checkFuture checkCapability details need broker-documentation review
K
Kotak Neo
Not checked yetNeeds checkNeeds checkNeeds checkNeeds checkNeeds checkFuture checkCapability details need broker-documentation review

Backtests run only as far back as your broker data allows.

Stockey shows the available historical window before running a backtest. If a broker provides limited data for a timeframe or segment, the backtest range is limited accordingly.

Historical Data Availability
Broker
Selected broker
Segment
User-selected segment
Instrument
User-selected instrument
Timeframe
User-selected timeframe
Earliest available candle
Broker-reported
Latest candle
Broker-reported
Backtest range
User-selected within broker-reported availability
Data gaps
Reviewed and reported when source data allows
1
Available data window
2
Selected backtest range
3
Data gaps
4
Report generated

Broker historical availability varies by broker, instrument, segment, and timeframe. Stockey does not invent missing market data.

Broker credentials are session-only by default.

Credentials used only for the current historical data request
No permanent broker-secret storage by default
No order placement endpoints called by Stockey
Secrets excluded from generated ZIP files
Generated package uses .env.example sample values
User configures broker keys on their own machine or VPS after export
safe session defaults
broker secrets: not stored by default
orders from Stockey SaaS: not placed
historical data: user-authorized where supported
support sharing: never send secrets

Each broker gets a setup checklist before export.

Checklist steps keep broker setup, data limits, package files, and user-controlled runtime responsibilities visible.

Want the public review rubric behind these setup steps?

Review the broker API checklist

API Access

  • Create API app
  • Configure redirect/session flow
  • Confirm historical data access
  • Verify instrument master

Data Limits

  • Check available symbols
  • Check timeframe support
  • Check historical depth
  • Check rate limits

Package Config

  • Prepare broker_config.example.yaml
  • Prepare instrument-mapping example
  • Prepare broker-data setup notes
  • Prepare risk_config.yaml

User-controlled Runtime

  • Add credentials to local .env
  • Configure VPS/static IP if required
  • Run dry-run verification
  • Review local setup checklist

AI explains the backtest. It does not tell you what to trade.

AI review is constrained to historical result explanation, risk observations, and user-approved experiment ideas.

Data limitations

AI explains whether the backtest was limited by timeframe, data gaps, segment, or broker availability.

Risk analysis

AI reviews drawdowns, stop-loss behavior, exposure, position sizing, and concentration.

User-run experiment ideas

AI can organize user-selected review questions, such as rule variants, risk-rule sensitivity, or different time windows.

AI analysis is for strategy review and education. It does not provide investment advice, security-selection guidance, or trade instructions.

Planned package exports include example broker configuration, not your secrets.

strategy_package/
strategy_package/
.env.example
config/
broker_config.example.yaml
strategy_config.yaml
risk_config.yaml
instruments.csv
src/
data/
broker_historical_fetch.py
instrument_master.py
backtest/
engine.py
metrics.py
reports.py
brokers/
base.py
broker/generated_adapter.py
selected_broker.example.py
README_BROKER_SETUP.md
strategy.py
main_backtest.py
execution/live_guards.py
deployment/
BROKER_SETUP.md
STATIC_IP_CHECKLIST.md
LOCAL_SETUP_CHECKLIST.md
RISK_DISCLOSURE.md

Safeguards

Secrets excluded from ZIP
Backtest uses historical data only
Exported runtime remains user-controlled
Dry-run enabled by default
User owns package
Broker capability warnings included

Prepare broker data. Test your rules. Export your package.

Stockey helps you understand what your broker can provide before you export the strategy as a self-hosted Python package.