Repository navigation
- US-account asset APIs:
TradeContextgainsus_cash_and_buy_power,us_available_holding,us_transaction_historyandus_exchange_ratesfor 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_executionsandPortfolioContext.exchange_ratenow returnHttpClientError::DcRegionRestrictedfor a US data-center token without sending the request, instead of gateway code 12 / HTTP 500 (#613) - Region errors name the alternative: the
DcRegionRestrictedmessage 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.sidedefaults toUnknownwhen the response omits it, sohistory_executionsworks for Longbridge US accounts (#613) USCryptoEntrynow carriesquantity,market,name, prices,today_pland the other fields the gateway returns (#613)option_chain_info_by_datecallsPOST /v1/quote/options/strikes(#612)
Full Changelog: v5.2.2...v5.3.0