BuckLakeAI / scripts /test_predict_v2.sh
Parker's Fedora
Refactor BuckLakeAI v2 around raw inputs for model 260412.
20f097c
Raw
History Blame Contribute Delete
3.21 kB
#!/usr/bin/env bash
set -euo pipefail
BASE_URL="${1:-http://127.0.0.1:8000}"
BARS='[
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000},
{"open":100,"close":101,"high":102,"low":99,"volume":1000,"amount":5000}
]'
curl -X POST "${BASE_URL}/api/predict/v2" \
-H "Content-Type: application/json" \
--data-raw "$(cat <<EOF
{
"request_id": "curl-test-1",
"symbol": "AAPL",
"published_at": "2026-04-15T12:30:00Z",
"text": "Apple launches a new on-device AI feature for iPhone users.",
"market_bars": {
"stock": ${BARS},
"inx": ${BARS},
"dj": ${BARS},
"ixic": ${BARS},
"ndx": ${BARS}
},
"history_news": [
{
"text": "Apple supplier activity increased ahead of the launch.",
"published_at": "2026-04-14T09:00:00Z",
"symbols": ["AAPL"]
},
{
"text": "Microsoft and Apple both saw analyst coverage this week.",
"published_at": "2026-04-13T15:45:00Z",
"symbols": ["MSFT", "AAPL"]
}
],
"options": {
"include_raw_heads": true,
"include_debug_meta": true
}
}
EOF
)"