Feat/interactive examples market information#152
Merged
PradeepJaiswar merged 4 commits intoMay 18, 2026
Conversation
upstox-security-review
previously approved these changes
May 18, 2026
upstox-security-review
approved these changes
May 18, 2026
PradeepJaiswar
approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two new categories to
interactive_examples/— Fundamentals Analysis and Market Information — mirroring the existing CLI + Streamlit pattern, soevery sub-page in the Upstox Fundamentals and Market Information docs has a runnable example.
Fundamentals Analysis (8 endpoints)
CLI scripts under
interactive_examples/fundamentals/+ Streamlit branches:Endpoints with optional query params are exposed as Streamlit filters with API defaults pre-selected:
type(consolidated | standalone),fs(false | true)type,time_period(yearly | quarterly),fsWhen
fs=true, an additional Full Statement (detailed line items) pivot table (Particular × Periods) is rendered below the summary view.Corporate Actions now pivots
event_details[]into separate columns per detail name instead of packing them into one string, so the table is readable.Market Information (6 new + 3 existing)
New CLI scripts under
interactive_examples/market_information/:Plus the existing Market Holidays / Market Timings / Exchange Status surfaced under the same Streamlit category. Each multi-param endpoint exposes every SDK
param as a filter (segment, interval, from, underlying, expiry, date, bucket, lookback) with sensible defaults — expiry/date use
st.date_input(default =today + 7 days for expiry, today for date).
Streamlit responses are flattened defensively (handles dict-of-segment shapes for FII/DII and decodes
time_stampepoch-ms → IST date) and any nestedlist/dict columns are dropped before render to avoid
[object]cells.Other changes
test_runner.py: adds 14 new rows (6 Market Information, 8 Fundamentals) and a_next_thursday()helper for OI / Max Pain / PCR expiry defaults; categorycount bumped to 10.
README.md: new sections documenting both categories with sample commands.