列出策略
返回所有策略,按 created_at 倒序。
接口
GET /strategies
鉴权: 公开。 分页: 无 —— 全量返回。
响应 — 200 OK
策略对象数组:
[
{
"id": 2,
"name": "eth-mean-reversion",
"author": "bob",
"description": "ETH mean reversion 15m",
"entry_condition": "rsi(14) < 30",
"exit_condition": "rsi(14) > 50",
"bot_name": "executor-mean-rev-v2",
"created_at": "2026-05-03T11:00:00",
"updated_at": "2026-05-03T11:00:00"
},
{
"id": 1,
"name": "btc-momentum-1h",
"author": "alice",
"description": "BTC momentum on 1h candles",
"entry_condition": "close > ema(50) AND rsi(14) > 55",
"exit_condition": "close < ema(50) OR rsi(14) < 45",
"bot_name": "executor-momentum-v1",
"created_at": "2026-05-03T10:00:00",
"updated_at": "2026-05-03T10:00:00"
}
]
若不存在策略,返回 []。
示例
curl -s "https://api.pipai.org/strategies"