curl -m 15 -sS -X POST \
"http://127.0.0.1:8080/api/btc5m/live-trading/stats-reset" \
-H "Content-Type: application/json" \
-d '{"confirm_text":"RESET_LIVE_STATS_VIEW"}' |
python3 -m json.tool
curl -m 15 -sS \
"http://127.0.0.1:8080/api/btc5m/live-trading/stats-reset" |
python3 -m json.tool
curl -m 15 -sS \
"http://127.0.0.1:8080/api/btc5m/live-trading/stats-v2" |
python3 -m json.tool
curl -m 15 -sS \
"http://127.0.0.1:8080/api/btc5m/live-trading/stats-v2?history=true" |
python3 -m json.tool
curl -m 15 -sS \
"http://127.0.0.1:8080/api/btc5m/live-trading/intents-v2?history=true&limit=200" |
python3 -m json.tool
检查执行器:
真仓配置已开启: False
当前允许真钱下单: False
curl -m 20 -sS \
"http://127.0.0.1:8080/api/btc5m/live-trading/executor-status?_=$(date +%s)" |
python3 -c '
import json, sys
d = json.load(sys.stdin)
check = next(
(x for x in d.get("checks", [])
if x.get("key") == "live_trading_enabled"),
{}
)
print("真仓配置已开启:", check.get("ok"))
print("当前允许真钱下单:", d.get("ready_for_real_submit"))
'