Package com.longbridge.screener
Class ScreenerContext
- java.lang.Object
-
- com.longbridge.screener.ScreenerContext
-
- All Implemented Interfaces:
AutoCloseable
public class ScreenerContext extends Object implements AutoCloseable
Screener context — stock screener strategies, search, and indicator metadata.
-
-
Constructor Summary
Constructors Constructor Description ScreenerContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static ScreenerContextcreate(Config config)CompletableFuture<ScreenerIndicatorsResponse>getIndicators()Get all available screener indicator definitions.CompletableFuture<ScreenerRecommendStrategiesResponse>getRecommendStrategies()Get platform-recommended screener strategies.CompletableFuture<ScreenerStrategyResponse>getStrategy(ScreenerStrategyOptions opts)Get detail for one screener strategy by ID.CompletableFuture<ScreenerUserStrategiesResponse>getUserStrategies()Get the current user's saved screener strategies.CompletableFuture<ScreenerSearchResponse>search(ScreenerSearchOptions opts)Search / screen securities using a strategy ID or custom filters.
-
-
-
Method Detail
-
create
public static ScreenerContext create(Config config)
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getRecommendStrategies
public CompletableFuture<ScreenerRecommendStrategiesResponse> getRecommendStrategies() throws OpenApiException
Get platform-recommended screener strategies.- Throws:
OpenApiException
-
getUserStrategies
public CompletableFuture<ScreenerUserStrategiesResponse> getUserStrategies() throws OpenApiException
Get the current user's saved screener strategies.- Throws:
OpenApiException
-
getStrategy
public CompletableFuture<ScreenerStrategyResponse> getStrategy(ScreenerStrategyOptions opts) throws OpenApiException
Get detail for one screener strategy by ID.- Throws:
OpenApiException
-
search
public CompletableFuture<ScreenerSearchResponse> search(ScreenerSearchOptions opts) throws OpenApiException
Search / screen securities using a strategy ID or custom filters.- Throws:
OpenApiException
-
getIndicators
public CompletableFuture<ScreenerIndicatorsResponse> getIndicators() throws OpenApiException
Get all available screener indicator definitions.- Throws:
OpenApiException
-
-