Skip to content

Show the equivalent curl request for every interactive example in the… - #161

Merged
elninad merged 3 commits into
masterfrom
feature/add-curl-request-to-examples
Aug 6, 2026
Merged

Show the equivalent curl request for every interactive example in the…#161
elninad merged 3 commits into
masterfrom
feature/add-curl-request-to-examples

Conversation

@PradeepJaiswar

@PradeepJaiswar PradeepJaiswar commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Every interactive example in the Streamlit app now shows the equivalent curl request(s) for
    its underlying SDK call(s), so users can see exactly what HTTP request the SDK sent and try it
    standalone.
  • Added a right-aligned "See the executed curl request ↓" link next to each example's action
    button that jumps to the curl block below the results.
  • utils.build_curl() gained extra_headers support (needed for the older v2 market-quote
    endpoints' required Api-Version header).
  • Loops that fire many near-identical calls (options chains, OI/gamma strike sweeps, etc.) show
    one representative call with a note stating the real request count, instead of dozens of
    duplicate blocks.
  • The 3 WebSocket-only examples (Live Depth 5-level / MCX / USDINR) are unaffected — they stop
    before any button or API call since live streaming isn't supported in the web UI.
  • Scope is Streamlit-only: instrument_search/search_equity.py (the CLI counterpart) briefly
    gained the same curl-print output and has been reverted back to its original behavior, so this
    CLI script ends up unchanged.

@elninad
elninad merged commit deeadef into master Aug 6, 2026
4 checks passed
@elninad
elninad deleted the feature/add-curl-request-to-examples branch August 6, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants