Skip to content

Rename market symbol filter to market_id; render market_id on articles - #5

Merged
arjunjain merged 1 commit into
mainfrom
market/update
Aug 13, 2026
Merged

arjunjain merged 1 commit into
mainfrom
market/update

Conversation

@arjunjain

Copy link
Copy Markdown
Collaborator

Syncs this client with the python-client market update (PRs #24–#26).

Request filter

The /market and /market/count endpoints now take market_id instead of symbol. The old filter was removed upstream (62c4f80 removed symbol filter from market endpoints), so no back-compat alias is kept — this is a breaking change for anyone passing symbol.

Verification

Full test suite passes. Note the published openapi.json is stale: it still documents symbol and has no market_id, so it could not be used to verify this change.

Tool surface

get_market_news and get_market_counts now take market_id; SYMBOL_FILTER becomes MARKET_ID_FILTER. Docstrings, examples and the README are updated.

Response rendering

The API returns both symbol and market_id on market articles. The formatter now renders market_id alongside the existing symbols line — labelled exactly as the API names it, so the model reads the same name it must pass back as a filter.

Sync with python-client: the get_market_news and get_market_counts tools
now take market_id instead of symbol. SYMBOL_FILTER becomes
MARKET_ID_FILTER. The old filter was removed upstream, so no alias is
kept.

The article formatter also renders market_id, which the API returns
alongside symbol. Both are separate response fields and both are shown.
@arjunjain
arjunjain merged commit 1783c46 into main Aug 13, 2026
1 check passed
@arjunjain
arjunjain deleted the market/update branch August 13, 2026 06:53
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.

1 participant