Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: longbridge/openapi-go

v0.24.2

02 Jun 09:44
3e77a38

Choose a tag to compare

Bug Fixes

  • calendar.CalendarEventsResponse: expose NextDate pagination cursor — fixes incomplete results when a date range spans multiple pages (e.g. CRM.US, PDD.US missing from a 2026-05-23→05-30 range query)
  • calendar.CalendarEventInfo.Symbol: convert raw counter_id (e.g. ST/US/CRM) to standard symbol format (CRM.US)
  • quote.DailyOptionVolume.Symbol: convert underlying_counter_id to standard symbol format

Changes

  • Add internal/counter.IDToSymbol as a shared counter_id → symbol conversion helper; sharelist migrated to use it

Upgrade

go get github.com/longbridge/[email protected]

v0.24.1

26 May 05:08
2ee338c

Choose a tag to compare

What's New

7 New Context Types

Package Context Description
alert AlertContext Price alert management — List / Add / Update / Delete
calendar CalendarContext Financial calendar — earnings, dividends, IPOs, macro data, market holidays
dca DCAContext DCA plan management — List / Create / Update / Pause / Resume / Stop / History / Stats / CheckSupport / CalcDate / SetReminder
fundamental FundamentalContext Fundamental data — financial statements, institutional ratings, dividends, EPS forecasts, valuation, company profile, executives, shareholders, fund holdings, corporate actions, buybacks, and more (20 methods)
market MarketContext Market data — broker holdings, A/H premium, trading stats, market anomalies, index constituents (9 methods)
portfolio PortfolioContext Portfolio analysis — FX rates, P&L breakdown by market / security / transaction
sharelist SharelistContext Community share list management — List / Detail / Popular / Create / Delete / AddSecurities / RemoveSecurities / SortSecurities

19 New APIs

  • FundamentalContext +9: Shareholders, BusinessSegments, InstitutionRatingViews, IndustryRank, IndustryPeers, FinancialReportSnapshot, and more
  • MarketContext +3: new market-related endpoints
  • QuoteContext +4: ShortPositions, OptionVolume, OptionVolumeDaily, UpdatePinned
  • New screener package +5: ScreenerRecommendStrategies / ScreenerUserStrategies / ScreenerSearch and more, endpoints migrated to /v1/quote/ai/screener/*

Extensions to Existing APIs

  • QuoteContext — added ShortPositions, OptionVolume, OptionVolumeDaily, UpdatePinned
  • WatchedSecurity — added IsPinned bool field
  • Config — added WithHeader(key, value string) *Config to inject custom HTTP headers per request

HTTP Connection Improvements

  • Removed req.Close = true that was forcing a new TCP connection per request
  • Configured a custom http.Transport with IdleConnTimeout of 60 seconds to enable connection reuse

Breaking Changes

  • AlertContext.Enable / AlertContext.Disable merged into a single AlertContext.Update(item *AlertItem) method
  • StockEventsTopMovers; StockEventsResponseTopMoversResponse
  • HkShortPositions removed; use ShortPositions(ctx, symbol, count) instead
  • Response types for ShortPositions, ShortTrades, TopMovers, RankList, ValuationComparison changed from raw JSON to typed structs; timestamps unified to RFC 3339
  • ScreenerRecommendStrategies / ScreenerUserStrategies now accept a market parameter; ScreenerSearch accepts typed ScreenerCondition objects

Bug Fixes

  • fundamental.ValuationPoint.Timestamp, ForecastEpsItem.ForecastStartDate/EndDate: fixed deserialization failure when API returns string timestamps
  • dca.DcaPlan.AlterHours: fixed type mismatch
  • quote.ShortPositions: corrected request parameter to counter_id format
  • quote.UpdatePinned: mode now sends string "add" / "remove" instead of integer
  • dca.CalcDate: handle both Unix timestamp and YYYY-MM-DD formats returned by the API
  • OperatingFinancial: renamed CounterIDSymbol (auto-converts ST/US/AAPLAAPL.US)
  • oauth: fixed panic (sync: unlock of unlocked mutex) when authorization flow fails

Upgrade

go get github.com/longbridge/[email protected]

v0.24.0

24 Apr 07:29
e7e4a85

Choose a tag to compare

What's Changed

Full Changelog: v0.23.0...v0.24.0

v0.23.0

03 Apr 02:54
473e8c6

Choose a tag to compare

What's Changed

  • feat(content): add ContentContext with topic and reply APIs by @huacnlee in #82
  • feat(asset): add StatementContext for statement list and download APIs, support staging environment by @ZGeomantic in #83
  • refactor: rename ListMyTopicsOptions to MyTopicsOptions by @wuxsoft in #84
  • upgrade changelog by @wuxsoft in #85

New Contributors

Full Changelog: v0.22.0...v0.23.0

v0.22.0

20 Mar 11:00

Choose a tag to compare

What's Changed

migrate CN endpoints to longbridge.cn, update token storage path

Full Changelog: v0.21.0...v0.22.0

v0.21.0

19 Mar 10:18
d213845

Choose a tag to compare

What's Changed

  • Add news topics and filings by @wuxsoft in #80

New Contributors

  • @wuxsoft made their first contribution in #80

Full Changelog: v0.20.0...v0.21.0

v0.20.0

19 Mar 07:36
b9f72a6

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.17.1...v0.20.0

v0.17.1

21 Nov 10:00
e183969

Choose a tag to compare

What's Changed

  • fix: candle stick trade session is different to trade session in prot… by @sunfuze in #77

Full Changelog: v0.17.0...v0.17.1

v0.17.0

21 Nov 09:52
21a7c1e

Choose a tag to compare

What's Changed

  • support get over night trade session kline by @sunfuze in #76

Full Changelog: v0.16.4...v0.17.0

v0.16.4

21 Aug 02:21
f494776

Choose a tag to compare

What's Changed

  • fix: should set accept-language by config.Language by @sunfuze in #74

Full Changelog: v0.16.3...v0.16.4