Skip to content

v5.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Oct 18:06
c275573
  • US-account asset APIs: TradeContext gains us_cash_and_buy_power, us_available_holding, us_transaction_history and us_exchange_rates for Longbridge US data-center accounts. Available in Rust (async + blocking), Node.js and Python; Java gets the JNI entry points (#613)
  • AP-only calls fail fast on US accounts: account_balance, cash_flow, stock_positions, fund_positions, margin_ratio, order_detail, all_executions and PortfolioContext.exchange_rate now return HttpClientError::DcRegionRestricted for a US data-center token without sending the request, instead of gateway code 12 / HTTP 500 (#613)
  • Region errors name the alternative: the DcRegionRestricted message keeps its existing text and appends ; <hint> with the endpoint to call instead (e.g. GET /v1/us/assets/overview). Code that compares the message by exact equality must be updated; prefix matching keeps working (#613)
  • Executions without side: Execution.side defaults to Unknown when the response omits it, so history_executions works for Longbridge US accounts (#613)
  • USCryptoEntry now carries quantity, market, name, prices, today_pl and the other fields the gateway returns (#613)
  • option_chain_info_by_date calls POST /v1/quote/options/strikes (#612)

Full Changelog: v5.2.2...v5.3.0