Candlestick Patterns
GET/api/v1.0/quote/kline-shape/listGet the catalog of supported K-line chart patterns (Double Bottom, Triple Bottom, Head and Shoulders, Flag, Double Top, etc.). Returns: shape_type, shape_name, direction (BULLISH / BEARISH), shape_brief, shape_image, and shape_url. For pattern stock screening use quote.kline_shape_stocks; for per-stock pattern detection and backtest use quote.kline_shape_analysis.
Request
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
filter_type | string | query | no | Pattern filter: ALL (default) / RISE (bullish) / FALL (bearish) / RECOMMEND |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/kline-shape/list?filter_type=1' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse
| Field | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].shape_type | integer | Pattern type ID (1~10 bullish, 1001~1010 bearish) |
data.items[].shape_name | integer | Pattern enum name |
data.items[].direction | integer | Direction: BULLISH / BEARISH |
data.items[].shape_brief | string | Pattern technical description |
data.items[].shape_image | string | Pattern illustration image URL |
data.items[].shape_url | string | Pattern help article URL |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -7 | invalid_symbol | Unknown symbol |
| -8 | unsupported | Market or product is not supported |
| -9 | permission_denied | Missing permission |
| -10 | no_data | No data |
| -11 | rate_limited | Too many requests |
Sample
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"shape_type": 0,
"shape_name": 0,
"direction": 0,
"shape_brief": "example",
"shape_image": "example",
"shape_url": "example"
}
]
}
}