Longbridge Developers
Get Started

Account API Overview

Account management APIs covering portfolio analysis, price alerts, recurring investment plans, and share lists. Most methods require Trade-level authentication.

PortfolioContext

Portfolio profit/loss analysis and currency exchange rates.

MethodDescription
profit_analysis_summaryOverall portfolio P&L summary
profit_analysis_detailPer-position P&L breakdown
profit_analysis_by_marketP&L grouped by market
capital_flowAccount capital flow history
exchange_ratesCurrent exchange rates for supported currencies

AlertContext

Create and manage price alerts for securities.

MethodDescription
list_alertsList all active price alerts
create_alertCreate a new price alert
update_alertUpdate an existing alert
delete_alertDelete a price alert

DCAContext

Manage dollar-cost averaging (recurring investment) plans.

MethodDescription
list_dcaList all DCA plans
create_dcaCreate a new DCA plan
dca_historyView execution history for a DCA plan
delete_dcaCancel a DCA plan

SharelistContext

Create and manage community share lists (watchlists shared with others).

MethodDescription
list_sharelistList all share lists
create_sharelistCreate a new share list
update_sharelistUpdate a share list
delete_sharelistDelete a share list