All notable changes to this project are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

0.1.0 — Initial beta release

Initial public beta. The SDK implements the Longbridge OpenAPI binary protocol over WebSocket for the quote and trade endpoints, plus 8 HTTP-backed context modules for alerts, asset, calendar, content, DCA, fundamental, market, portfolio, screener, sharelist, and quote-HTTP endpoints.

The SDK is feature-complete against the upstream protocol for the pinned longbridge/openapi-protobufs@gen/go/v0.7.0 protobuf definitions.

Added

Changed

  • Longbridge.QuoteHTTPContext.option_volume paths renamedGET /v1/quote/option-volume/v1/quote/option-volume-stats and /v1/quote/option-volume-daily/v1/quote/option-volume-stats/daily. Params renamed start_date/end_datestart/end. Response shapes updated. Mirrors upstream renaming.
  • Longbridge.TradeContext.estimate_max_purchase_quantity/2 endpoint correctedPOST /v1/trade/estimateGET /v1/trade/estimate/buy_limit with query params (matches upstream).
  • Longbridge.TradeContext.replace_order and cancel_order HTTP methods corrected — both were using POST /v1/trade/order/{replace,cancel} which don't exist. Now use PUT /v1/trade/order and DELETE /v1/trade/order?order_id=... matching upstream.

Endpoints

  • QuoteContext (28 methods) — static_info, quote, option_quote, warrant_quote, depth, brokers, participant_broker_ids, trades, intraday, candlesticks, history_candlesticks_by_offset, history_candlesticks_by_date, option_chain_date, option_chain_strike_info, warrant_issuer_info, warrant_list, calc_index, capital_flow_intraday, capital_flow_distribution, market_trade_period, market_trade_day, subscription, subscribe, unsubscribe, user_quote_profile, typed push callbacks (set_on_quote/depth/brokers/trades)
  • TradeContext (16 methods) — submit_order, replace_order, cancel_order, history_orders, today_orders, history_executions, today_executions, order_detail, account_balance, cash_flow, fund_positions, stock_positions, margin_ratio, estimate_max_purchase_quantity, subscribe/unsubscribe (push)
  • QuoteHTTPContext (15 methods) — short_positions, option_volume, option_volume_daily, security_list, watchlist_groups CRUD + update_pinned, market_temperature, history_market_temperature, short_trades
  • Other HTTP contexts — AlertContext, AssetContext, CalendarContext, ContentContext, DCAContext, FundamentalContext, MarketContext, PortfolioContext, ScreenerContext, SharelistContext

Transport

Test coverage