Uses of Class
com.longbridge.OpenApiException
-
-
Uses of OpenApiException in com.longbridge
Methods in com.longbridge that throw OpenApiException Modifier and Type Method Description static ConfigConfig. fromApikey(String appKey, String appSecret, String accessToken)Create a newConfigfrom API key credentials.static ConfigConfig. fromApikeyEnv()Create a newConfigfrom the given environment variablesstatic HttpClientHttpClient. fromApikeyEnv()Create a newHttpClientfrom environment variables (API Key authentication).static ConfigConfig. fromOAuth(OAuth oauth)Create a newConfigfor OAuth 2.0 authentication. -
Uses of OpenApiException in com.longbridge.alert
Methods in com.longbridge.alert that throw OpenApiException Modifier and Type Method Description CompletableFuture<Void>AlertContext. add(AddAlertOptions opts)Add a price alert.CompletableFuture<Void>AlertContext. delete(DeleteAlertOptions opts)Delete price alerts.CompletableFuture<Void>AlertContext. disable(String alertId)Disable a price alert.CompletableFuture<Void>AlertContext. enable(String alertId)Enable a price alert.CompletableFuture<AlertList>AlertContext. list()List all price alerts. -
Uses of OpenApiException in com.longbridge.asset
Methods in com.longbridge.asset that throw OpenApiException Modifier and Type Method Description CompletableFuture<Object>AssetContext. getStatementDownloadUrl(String fileKey)Get statement data download URLCompletableFuture<Object>AssetContext. getStatements(GetStatementListOptions opts)Get statement data list -
Uses of OpenApiException in com.longbridge.calendar
Methods in com.longbridge.calendar that throw OpenApiException Modifier and Type Method Description CompletableFuture<CalendarEventsResponse>CalendarContext. getFinanceCalendar(FinanceCalendarOptions opts)Get financial calendar events -
Uses of OpenApiException in com.longbridge.content
Methods in com.longbridge.content that throw OpenApiException Modifier and Type Method Description CompletableFuture<String>ContentContext. createTopic(CreateTopicOptions opts)Create a new topicCompletableFuture<OwnedTopic[]>ContentContext. getMyTopics(MyTopicsOptions opts)Get topics created by the current authenticated userCompletableFuture<NewsItem[]>ContentContext. getNews(String symbol)Get news listCompletableFuture<TopicItem[]>ContentContext. getTopics(String symbol)Get discussion topics list -
Uses of OpenApiException in com.longbridge.dca
Methods in com.longbridge.dca that throw OpenApiException Modifier and Type Method Description CompletableFuture<DcaCalcDateResult>DcaContext. calcDate(DcaCalcDateOptions opts)Calculate the next projected trade date for a DCA plan with the given schedule parameters.CompletableFuture<DcaSupportList>DcaContext. checkSupport(String[] symbols)Check DCA support for a batch of securities.CompletableFuture<DcaCreateResult>DcaContext. createDca(DcaCreateOptions opts)Create a new DCA plan.CompletableFuture<DcaHistoryResponse>DcaContext. history(DcaHistoryOptions opts)Get execution history for a DCA plan.CompletableFuture<DcaList>DcaContext. list(DcaListOptions opts)List DCA plans, optionally filtered by status and/or symbol.CompletableFuture<Void>DcaContext. pause(String planId)Pause a DCA plan.CompletableFuture<Void>DcaContext. resume(String planId)Resume a suspended DCA plan.CompletableFuture<Void>DcaContext. setReminder(String hours)Update the advance reminder hours for DCA execution notifications.CompletableFuture<DcaStats>DcaContext. stats(String symbol)Get DCA statistics, optionally scoped to a single security.CompletableFuture<Void>DcaContext. stop(String planId)Stop (permanently finish) a DCA plan.CompletableFuture<DcaCreateResult>DcaContext. updateDca(DcaUpdateOptions opts)Update an existing DCA plan. -
Uses of OpenApiException in com.longbridge.fundamental
Methods in com.longbridge.fundamental that throw OpenApiException Modifier and Type Method Description CompletableFuture<BusinessSegments>FundamentalContext. getBusinessSegments(String symbol)Get business segment breakdowns (latest snapshot).CompletableFuture<BusinessSegmentsHistory>FundamentalContext. getBusinessSegmentsHistory(BusinessSegmentsHistoryOptions opts)Get historical business segment breakdowns.CompletableFuture<BuybackData>FundamentalContext. getBuyback(String symbol)Get buyback data.CompletableFuture<CompanyOverview>FundamentalContext. getCompany(String symbol)Get company overview.CompletableFuture<FinancialConsensus>FundamentalContext. getConsensus(String symbol)Get financial consensus estimates.CompletableFuture<CorpActions>FundamentalContext. getCorpAction(String symbol)Get corporate actions.CompletableFuture<DividendList>FundamentalContext. getDividend(String symbol)Get dividend history.CompletableFuture<DividendList>FundamentalContext. getDividendDetail(String symbol)Get detailed dividend information.CompletableFuture<ExecutiveList>FundamentalContext. getExecutive(String symbol)Get executive and board member information.CompletableFuture<FinancialReports>FundamentalContext. getFinancialReport(String symbol, FinancialReportOptions opts)Get financial reports.CompletableFuture<FinancialReportSnapshot>FundamentalContext. getFinancialReportSnapshot(FinancialReportSnapshotOptions opts)Get a financial report snapshot (earnings snapshot).CompletableFuture<ForecastEps>FundamentalContext. getForecastEps(String symbol)Get EPS forecasts.CompletableFuture<FundHolders>FundamentalContext. getFundHolder(String symbol)Get fund and ETF holders.CompletableFuture<IndustryPeersResponse>FundamentalContext. getIndustryPeers(IndustryPeersOptions opts)Get the industry peer chain for a security or industry.CompletableFuture<IndustryRankResponse>FundamentalContext. getIndustryRank(IndustryRankOptions opts)Get industry rank for a market.CompletableFuture<IndustryValuationList>FundamentalContext. getIndustryValuation(String symbol)Get industry peer valuation comparison.CompletableFuture<IndustryValuationDist>FundamentalContext. getIndustryValuationDist(String symbol)Get industry valuation distribution.CompletableFuture<InstitutionRating>FundamentalContext. getInstitutionRating(String symbol)Get analyst ratings (latest + consensus summary).CompletableFuture<InstitutionRatingDetail>FundamentalContext. getInstitutionRatingDetail(String symbol)Get historical analyst rating details.CompletableFuture<InstitutionRatingViews>FundamentalContext. getInstitutionRatingViews(String symbol)Get historical institutional rating view time-series.CompletableFuture<InvestRelations>FundamentalContext. getInvestRelation(String symbol)Get investor relations data.CompletableFuture<MacroeconomicResponse>FundamentalContext. getMacroeconomic(String indicatorCode, String startDate, String endDate, Integer offset, Integer limit)Get historical data for a macroeconomic indicator.CompletableFuture<MacroeconomicIndicatorListResponse>FundamentalContext. getMacroeconomicIndicators(String country, String keyword, Integer offset, Integer limit)List macroeconomic indicators.CompletableFuture<OperatingList>FundamentalContext. getOperating(String symbol)Get operating metrics and financial report summaries.CompletableFuture<StockRatings>FundamentalContext. getRatings(String symbol)Get stock ratings.CompletableFuture<ShareholderList>FundamentalContext. getShareholder(String symbol)Get major shareholders.CompletableFuture<ShareholderDetailResponse>FundamentalContext. getShareholderDetail(ShareholderDetailOptions opts)Get holding history and trade detail for a specific shareholder.CompletableFuture<ShareholderTopResponse>FundamentalContext. getShareholderTop(String symbol)Get top 20 major shareholders with multi-period holdings.CompletableFuture<ValuationData>FundamentalContext. getValuation(String symbol)Get valuation metrics (PE / PB / PS / dividend yield).CompletableFuture<ValuationComparisonResponse>FundamentalContext. getValuationComparison(ValuationComparisonOptions opts)Get valuation comparison between a symbol and optional peer symbols.CompletableFuture<ValuationHistoryResponse>FundamentalContext. getValuationHistory(String symbol)Get historical valuation data. -
Uses of OpenApiException in com.longbridge.market
Methods in com.longbridge.market that throw OpenApiException Modifier and Type Method Description CompletableFuture<AhPremiumKlines>MarketContext. getAhPremium(AhPremiumOptions opts)Get A/H premium K-linesCompletableFuture<AhPremiumIntraday>MarketContext. getAhPremiumIntraday(String symbol)Get A/H premium intradayCompletableFuture<AnomalyResponse>MarketContext. getAnomaly(String market)Get market anomaly alertsCompletableFuture<BrokerHoldingTop>MarketContext. getBrokerHolding(BrokerHoldingOptions opts)Get top broker holdings. period: 0=rct_1,1=rct_5,2=rct_20,3=rct_60CompletableFuture<BrokerHoldingDailyHistory>MarketContext. getBrokerHoldingDaily(BrokerHoldingDailyOptions opts)Get daily broker holding historyCompletableFuture<BrokerHoldingDetail>MarketContext. getBrokerHoldingDetail(String symbol)Get full broker holding detailsCompletableFuture<IndexConstituents>MarketContext. getConstituent(String symbol)Get index constituent stocksCompletableFuture<MarketStatusResponse>MarketContext. getMarketStatus()Get current trading status for all marketsCompletableFuture<RankCategoriesResponse>MarketContext. getRankCategories()Get rank category keys for the popularity leaderboard.CompletableFuture<RankListResponse>MarketContext. getRankList(RankListOptions opts)Get ranked stock list for a given category key (from getRankCategories).CompletableFuture<TopMoversResponse>MarketContext. getTopMovers(TopMoversOptions opts)Get top movers (stocks with unusual price movements) across one or more marketsCompletableFuture<TradeStatsResponse>MarketContext. getTradeStats(String symbol)Get trade statistics -
Uses of OpenApiException in com.longbridge.portfolio
Methods in com.longbridge.portfolio that throw OpenApiException Modifier and Type Method Description CompletableFuture<ExchangeRates>PortfolioContext. getExchangeRate()Get exchange rates for supported currencies.CompletableFuture<ProfitAnalysis>PortfolioContext. getProfitAnalysis(ProfitAnalysisOptions opts)Get portfolio P&L analysis (summary and per-security breakdown).CompletableFuture<ProfitAnalysisByMarket>PortfolioContext. getProfitAnalysisByMarket(ProfitAnalysisByMarketOptions opts)Get paginated P&L analysis filtered by market.CompletableFuture<ProfitAnalysisDetail>PortfolioContext. getProfitAnalysisDetail(ProfitAnalysisDetailOptions opts)Get P&L detail for a specific security.CompletableFuture<ProfitAnalysisFlowsResponse>PortfolioContext. getProfitAnalysisFlows(ProfitAnalysisFlowsOptions opts)Get paginated profit-analysis flow records for a security. -
Uses of OpenApiException in com.longbridge.quote
Methods in com.longbridge.quote that throw OpenApiException Modifier and Type Method Description CompletableFuture<Long>QuoteContext. createWatchlistGroup(CreateWatchlistGroup req)Create watchlist groupCompletableFuture<Void>QuoteContext. deleteWatchlistGroup(DeleteWatchlistGroup req)Delete watchlist groupCompletableFuture<SecurityBrokers>QuoteContext. getBrokers(String symbol)Get security brokersCompletableFuture<SecurityCalcIndex[]>QuoteContext. getCalcIndexes(String[] symbols, CalcIndex[] indexes)Get security calc indexesCompletableFuture<Candlestick[]>QuoteContext. getCandlesticks(String symbol, Period period, int count, AdjustType adjustType, TradeSessions tradeSessions)Get security candlesticksCompletableFuture<CapitalDistributionResponse>QuoteContext. getCapitalDistribution(String symbol)Get capital distributionCompletableFuture<CapitalFlowLine[]>QuoteContext. getCapitalFlow(String symbol)Get capital flow intradayCompletableFuture<SecurityDepth>QuoteContext. getDepth(String symbol)Get security depthCompletableFuture<FilingItem[]>QuoteContext. getFilings(String symbol)Get filings listCompletableFuture<Candlestick[]>QuoteContext. getHistoryCandlesticksByDate(String symbol, Period period, AdjustType adjustType, LocalDate start, LocalDate end, TradeSessions tradeSessions)Get history candlesticks by dateCompletableFuture<Candlestick[]>QuoteContext. getHistoryCandlesticksByOffset(String symbol, Period period, AdjustType adjustType, boolean forward, LocalDateTime datetime, int count, TradeSessions tradeSessions)Get history candlesticks by offsetCompletableFuture<HistoryMarketTemperatureResponse>QuoteContext. getHistoryMarketTemperature(Market market, LocalDate start, LocalDate end)Get historical market temperatureCompletableFuture<IntradayLine[]>QuoteContext. getIntraday(String symbol, TradeSessions tradeSessions)Get security intraday linesCompletableFuture<MarketTemperature>QuoteContext. getMarketTemperature(Market market)Get current market temperatureCompletableFuture<LocalDate[]>QuoteContext. getOptionChainExpiryDateList(String symbol)Get option chain expiry date listCompletableFuture<StrikePriceInfo[]>QuoteContext. getOptionChainInfoByDate(String symbol, LocalDate expiryDate)Get option chain info by dateCompletableFuture<OptionQuote[]>QuoteContext. getOptionQuote(String[] symbols)Get quote of option securitiesCompletableFuture<OptionVolumeStats>QuoteContext. getOptionVolume(String symbol)Get option volume statistics for a symbolCompletableFuture<OptionVolumeDaily>QuoteContext. getOptionVolumeDaily(OptionVolumeDailyOptions opts)Get daily option volume for a symbolCompletableFuture<ParticipantInfo[]>QuoteContext. getParticipants()Get participantsCompletableFuture<SecurityQuote[]>QuoteContext. getQuote(String[] symbols)Get quote of securitiesCompletableFuture<SecurityBrokers>QuoteContext. getRealtimeBrokers(String symbol)Get real-time broker queueCompletableFuture<Candlestick[]>QuoteContext. getRealtimeCandlesticks(String symbol, Period period, int count)Get real-time candlesticksCompletableFuture<SecurityDepth>QuoteContext. getRealtimeDepth(String symbol)Get real-time depthCompletableFuture<RealtimeQuote[]>QuoteContext. getRealtimeQuote(String[] symbols)Get real-time quotesCompletableFuture<Trade[]>QuoteContext. getRealtimeTrades(String symbol, int count)Get real-time tradesCompletableFuture<Security[]>QuoteContext. getSecurityList(Market market)Security list without categoryCompletableFuture<Security[]>QuoteContext. getSecurityList(Market market, SecurityListCategory category)Security listCompletableFuture<ShortPositionsResponse>QuoteContext. getShortPositions(String symbol)Get short positions for a symbolCompletableFuture<ShortTradesResponse>QuoteContext. getShortTrades(ShortTradesOptions opts)Get daily short sale volume for US or HK stocks (market auto-detected from symbol suffix).CompletableFuture<SecurityStaticInfo[]>QuoteContext. getStaticInfo(String[] symbols)Get basic information of securitiesCompletableFuture<Subscription[]>QuoteContext. getSubscrptions()Get subscription informationCompletableFuture<Trade[]>QuoteContext. getTrades(String symbol, int count)Get security tradesCompletableFuture<MarketTradingDays>QuoteContext. getTradingDays(Market market, LocalDate begin, LocalDate end)Get market trading daysCompletableFuture<MarketTradingSession[]>QuoteContext. getTradingSession()Get trading session of the dayCompletableFuture<IssuerInfo[]>QuoteContext. getWarrantIssuers()Get warrant issuersCompletableFuture<WarrantQuote[]>QuoteContext. getWarrantQuote(String[] symbols)Get quote of warrant securitiesCompletableFuture<WatchlistGroup[]>QuoteContext. getWatchlist()Get watchlistCompletableFuture<WarrantInfo[]>QuoteContext. queryWarrantList(QueryWarrantOptions opts)Query warrant listCompletableFuture<Void>QuoteContext. subscribe(String[] symbols, int flags)SubscribeCompletableFuture<Candlestick[]>QuoteContext. subscribeCandlesticks(String symbol, Period period, TradeSessions tradeSessions)Subscribe security candlesticksCompletableFuture<Void>QuoteContext. unsubscribe(String[] symbols, int flags)UnsubscribeCompletableFuture<Void>QuoteContext. unsubscribeCandlesticks(String symbol, Period period)Unsubscribe security candlesticksCompletableFuture<Void>QuoteContext. updatePinned(UpdatePinnedRequest req)Update pinned securities (add or remove).CompletableFuture<Long>QuoteContext. updateWatchlistGroup(UpdateWatchlistGroup req)Update watchlist group -
Uses of OpenApiException in com.longbridge.screener
Methods in com.longbridge.screener that throw OpenApiException Modifier and Type Method Description CompletableFuture<ScreenerIndicatorsResponse>ScreenerContext. getIndicators()Get all available screener indicator definitions.CompletableFuture<ScreenerRecommendStrategiesResponse>ScreenerContext. getRecommendStrategies()Get platform-preset screener strategies (defaults to US market).CompletableFuture<ScreenerRecommendStrategiesResponse>ScreenerContext. getRecommendStrategies(String market)Get platform-preset screener strategies for the given market (default "US").CompletableFuture<ScreenerStrategyResponse>ScreenerContext. getStrategy(ScreenerStrategyOptions opts)Get detail for one screener strategy by ID.CompletableFuture<ScreenerUserStrategiesResponse>ScreenerContext. getUserStrategies()Get the current user's saved screener strategies (defaults to US market).CompletableFuture<ScreenerUserStrategiesResponse>ScreenerContext. getUserStrategies(String market)Get the current user's saved screener strategies for the given market (default "US").CompletableFuture<ScreenerSearchResponse>ScreenerContext. search(ScreenerSearchOptions opts)Search / screen securities using a strategy ID or custom filters. -
Uses of OpenApiException in com.longbridge.sharelist
Methods in com.longbridge.sharelist that throw OpenApiException Modifier and Type Method Description CompletableFuture<Void>SharelistContext. addSecurities(long id, String[] symbols)Add securities to a sharelist.CompletableFuture<Void>SharelistContext. create(CreateSharelistOptions opts)Create a new sharelist.CompletableFuture<Void>SharelistContext. delete(long id)Delete a sharelist.CompletableFuture<SharelistDetail>SharelistContext. detail(long id)Get sharelist detail including its constituent securities.CompletableFuture<SharelistList>SharelistContext. list(int count)List the user's own and subscribed sharelists.CompletableFuture<SharelistList>SharelistContext. popular(int count)Get popular sharelists.CompletableFuture<Void>SharelistContext. removeSecurities(long id, String[] symbols)Remove securities from a sharelist.CompletableFuture<Void>SharelistContext. sortSecurities(long id, String[] symbols)Reorder securities in a sharelist. -
Uses of OpenApiException in com.longbridge.trade
-