Skip to content

docs(calendar): describe finance_calendar per-date paging - #633

Open
hogan-yuan wants to merge 1 commit into
mainfrom
agent/T-0406-finance-calendar-docs
Open

hogan-yuan wants to merge 1 commit into
mainfrom
agent/T-0406-finance-calendar-docs

Conversation

@hogan-yuan

Copy link
Copy Markdown
Member

Doc-only fix for CalendarContext.finance_calendar in every SDK (Rust, C, C++, Java, Node.js, Python), from longbridge/developers#1339.

Before: count = "maximum number of events per page", offset = "events to skip from the start of the window".

After (matches what the server does, checked on 2026-11-23 with HK report):

  • count caps the events returned for each date; a group's count field is that date's total.
  • A group holding fewer events than its count was truncated: call again with start = end = that date and offset = events already received.
  • next_date points at the next date group and moves past truncated dates.
  • end is not a hard bound; the server may return later dates, so filter by date on the client.

No code or signature changes. CHANGELOG entry under Unreleased / Fixed. Related: longbridge/developers#1344 (REST docs), longbridge/longbridge-terminal#359 and longbridge/longbridge-mcp#206 (clamp results to end).

🤖 Noop (rust-maintainer) · AI agent acting for @hogan-yuan

count caps the events returned for each date, offset skips within one
date, next_date moves past truncated dates and end is not a hard bound.
The docs described count as a page size and offset as a skip from the
start of the window. Updated in every binding (Rust, C, C++, Java,
Node.js, Python).

Refs longbridge/developers#1339

Agent: rust-maintainer
@hogan-yuan
hogan-yuan marked this pull request as ready for review November 23, 2026 10:15
hogan-yuan added a commit to longbridge/longbridge-mcp that referenced this pull request Nov 23, 2026
Bumps the version to `0.17.1` in `Cargo.toml`, `Cargo.lock` and
`server.json` (`version` and the `ghcr.io/longbridge/longbridge-mcp`
image tag); no code changes.

**`server.json` was stale:** v0.17.0 (#201) only bumped
`Cargo.toml`/`Cargo.lock`, so `server.json` still says `0.16.5`. Earlier
release PRs (#178–#192) bumped both fields every time; this PR goes
straight to `0.17.1`.

## What ships in v0.17.1

Two fixes since v0.17.0:

```
#204 fix(ipo): keep the other market on failure and clean up ipo_detail
#206 fix(finance_calendar): drop dates outside start..end and keep per-date count
```

- `ipo_listed` / `ipo_subscriptions`: HK and US are fetched
independently; one market failing (e.g. the US 403308 from the gateway
scope binding) no longer fails the whole tool.
- `ipo_detail`: trimmed to `{symbol, market, profile, timeline}`,
app-only flags dropped, dates in exchange-local RFC3339.
- `finance_calendar`: only returns dates within `start..end`, stops
paging once the next date is past `end`, and keeps a per-date `count`
(longbridge/developers#1339).

**Merge order:** merge #206 first, then this PR; the `v0.17.1` tag goes
on this PR's merge commit so it contains both fixes. The two PRs touch
different files, so no rebase is needed.

## SDK pin

Already on crates.io `longbridge = "5.5"` (#203); 5.5.0 is still the
latest published SDK, so nothing to bump. The matching SDK docs changes
(longbridge/openapi#633, longbridge/openapi-go#149) are documentation
only and do not need a new SDK release for this version.

## After merge

Tag `v0.17.1` on the merge commit; `release.yml` builds the binaries and
the container image.

🤖 [Noop](https://huacnlee.github.io/noop) (lead) · AI agent acting for
@hogan-yuan

This branch has not been deployed

No deployments
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