Skip to content

chore: release 4.2.2#534

Merged
hogan-yuan merged 4 commits into
releasefrom
main
Jun 2, 2026
Merged

chore: release 4.2.2#534
hogan-yuan merged 4 commits into
releasefrom
main

Conversation

@hogan-yuan
Copy link
Copy Markdown
Member

Merge main into release to publish 4.2.2.

Changes in 4.2.2

Fixed

  • All languages: CalendarEventsResponse now exposes next_date cursor — callers can pass it as start (with the same end) to fetch the next page of /v1/quote/finance_calendar results
  • All languages: CalendarEventInfo.symbol now returns standard symbol format (e.g. CRM.US) instead of raw counter_id format (e.g. ST/US/CRM)

hogan-yuan and others added 4 commits May 23, 2026 19:58
## Summary

Migrates all screener endpoints from `/v1/quote/screener/*` to
`/v1/quote/ai/screener/*` per [longbridge-terminal PR
#217](longbridge/longbridge-terminal#217).

## Changes

| Old endpoint | New endpoint |
|---|---|
| `GET /v1/quote/screener/strategies/recommend` | `GET
/v1/quote/ai/screener/strategies/recommend` |
| `GET /v1/quote/screener/strategies/mine` | `GET
/v1/quote/ai/screener/strategies/mine` |
| `GET /v1/quote/screener/strategy?id=N` | `GET
/v1/quote/ai/screener/strategy/{id}` |
| `POST /v1/quote/screener/search` | `POST /v1/quote/ai/screener/search`
|
| `GET /v1/quote/screener/indicators` | `GET
/v1/quote/ai/screener/indicators` |

### Breaking changes

- `screener_recommend_strategies(market)` and
`screener_user_strategies(market)` now require a `market` parameter
(Rust/Python/Node.js/Java/C)
- `screener_strategy(id)` uses path param instead of query param

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…532)

## Summary

- The `/v1/quote/finance_calendar` endpoint paginates via a `next_date`
cursor, but all SDK bindings were silently dropping it, making
multi-page range queries return incomplete data (e.g. CRM.US, PDD.US,
MRVL.US missing for a 2026-05-23→05-30 range)
- `next_date` is now returned as-is in `CalendarEventsResponse` across
all language SDKs so callers can follow the cursor themselves

## Changes

| File | Change |
|------|--------|
| `rust/src/calendar/types.rs` | Add `next_date` to
`CalendarEventsResponse` |
| `rust/src/calendar/context.rs` | Revert to single request (no internal
pagination) |
| `c/src/calendar_context/types.rs` | Add `next_date` to C binding
owned/FFI types |
| `c/csrc/include/longbridge.h` | Add `next_date` to
`lb_calendar_events_response_t` |
| `cpp/include/calendar_context.hpp` | Add `next_date` to C++
`CalendarEventsResponse` struct |
| `cpp/src/calendar_context.cpp` | Populate `next_date` from C response
in callback |
| `nodejs/index.d.ts` | Add `nextDate: string` to
`CalendarEventsResponse` |
| `python/pysrc/longbridge/openapi.pyi` | Add `next_date: str` to
`CalendarEventsResponse` |
| `java/.../CalendarEventsResponse.java` | Add `public String nextDate`
|

## Related

- Go SDK fix: longbridge/openapi-go#fix/finance-calendar-pagination
- Issue:
longbridge/developers#1045 (comment)

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
## Summary

Bump version to `4.2.2` and add CHANGELOG entry.

## Changes in 4.2.2

### Fixed

- **All languages:** `CalendarEventsResponse` now exposes `next_date`
cursor — callers can pass it as `start` (with the same `end`) to fetch
the next page of `/v1/quote/finance_calendar` results
- **All languages:** `CalendarEventInfo.symbol` now returns standard
symbol format (e.g. `CRM.US`) instead of raw `counter_id` format (e.g.
`ST/US/CRM`)

## Related

- PR #532
@hogan-yuan hogan-yuan merged commit 78d8ddc into release Jun 2, 2026
170 of 173 checks passed
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.

2 participants