From 8c01adf05f1428bf2ada49574b25529c064da884 Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Tue, 22 Sep 2026 02:29:30 +0800 Subject: Add stocks probe panel with live stock quote flow (3d-18) --- qa/stub/fund-lab-python | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'qa/stub/fund-lab-python') diff --git a/qa/stub/fund-lab-python b/qa/stub/fund-lab-python index 9a171bc..5c6daa3 100755 --- a/qa/stub/fund-lab-python +++ b/qa/stub/fund-lab-python @@ -42,6 +42,17 @@ case "$OP" in exit 2 fi ;; + stock-quote) + # Synthetic rows mirror the live AKShare A-share spot contract: a known live + # code answers with a name/price, unknown codes fail like the "no valid + # quote" collector error (-> API 503). + if [ "$CODE" = "600519" ]; then + printf '{"schema_version":"fund-lab.akshare.v1","operation":"stock-quote","source":"stub-synthetic","source_revision":"stub-1","_synthetic":true,"collected_at":"%s","instrument":{"code":"%s"},"quote":{"name":"贵州茅台","price":"1252.57","currency":"CNY"}}\n' "$TS" "$CODE" + else + echo "AKShare collector failed: no valid quote for $CODE" >&2 + exit 2 + fi + ;; *) echo "unknown operation: $OP" >&2 exit 2 -- cgit v1.2.3