Longbridge OpenAPI C++ SDK
Classes | Enumerations
longbridge::portfolio Namespace Reference

Classes

struct  ExchangeRate
 Exchange rate for a currency pair. More...
 
struct  ExchangeRates
 Collection of exchange rates for supported currencies. More...
 
struct  ProfitSummaryInfo
 P&L summary for one asset category. More...
 
struct  ProfitSummaryBreakdown
 P&L breakdown by asset type. More...
 
struct  ProfitAnalysisSummary
 Account-level P&L summary. More...
 
struct  ProfitAnalysisItem
 P&L for one security. More...
 
struct  ProfitAnalysisSublist
 Per-security P&L breakdown. More...
 
struct  ProfitAnalysis
 Combined portfolio P&L analysis response. More...
 
struct  ProfitAnalysisByMarketItem
 One security entry in a by-market P&L response. More...
 
struct  ProfitAnalysisByMarket
 P&L grouped by market response. More...
 
struct  FlowItem
 One profit-analysis flow record. More...
 
struct  ProfitAnalysisFlows
 Paginated list of profit-analysis flow records. More...
 
struct  ProfitDetailEntry
 One P&L detail line item (credit, debit, or fee). More...
 
struct  ProfitDetails
 Detailed P&L breakdown for one asset class. More...
 
struct  ProfitAnalysisDetail
 Detailed P&L for one security. More...
 
class  PortfolioContext
 Portfolio analytics context — exchange rates and P&L analysis. More...
 

Enumerations

enum class  AssetType { Unknown = 0 , Stock = 1 , Fund = 2 , Crypto = 3 }
 Asset class category. More...
 
enum class  FlowDirection { Unknown = 0 , Buy = 1 , Sell = 2 }
 Trade flow direction. More...
 

Enumeration Type Documentation

◆ AssetType

Asset class category.

Enumerator
Unknown 
Stock 
Fund 
Crypto 

◆ FlowDirection

Trade flow direction.

Enumerator
Unknown 
Buy 
Sell