Screener

Screener Strategy Detail

GEThttps://openapi.longbridge.com/v1/quote/ai/screener/strategy/{id}

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

Get the full configuration of a single stock screener strategy by strategy ID, including all indicator groups and the filter range for each indicator. (strategy ID as path parameter)

>_ CLI
longbridge screener run 42

Request

Path parameters

NameTypeRequiredDescription
idintegerRequiredStrategy ID from `screener_recommend_strategies` or `screener_user_strategies`

Response

Response properties

NameTypeRequiredDescription
idintegerOptionalStrategy ID
marketstringOptionalTarget market
filterobjectOptionalFilter configuration
└ filtersobject[]OptionalFilter conditions
└ ∟ keystringOptionalIndicator key, e.g. `filter_pettm`.
└ ∟ minstringOptionalLower bound
└ ∟ maxstringOptionalUpper bound
└ ∟ tech_valuesobjectOptionalTechnical indicator params

Response JSON example

{
  "code": 0,
  "message": "success",
  "data": {
    "id": 19,
    "name": "Stocks that surged today",
    "market": "US",
    "type": "platform",
    "filter": {
      "filters": [
        {
          "key": "prevchg",
          "min": "2",
          "max": "",
          "tech_values": {}
        }
      ]
    }
  }
}

Error code

See the Error Codes page for the full list of error codes.