Build a Commodity Price Shock Alert Pipeline with LangChain
Construct a real-time commodity pricing alert and hedging pipeline for precious metals trading desks. Using LangChain and stateful graph tools, your agent will monitor global gold/energy market spikes, correlate macroeconomic news, and trigger dynamic risk mitigation alerts.
What you are building
Build a LangChain processing graph to track gold price spikes and automate trade alert triggers ahead of macroeconomic announcements.
How work is evaluated
Evaluate price shock identification and news correlation precision.
Datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
alert_level_validity
Alert level correctly assigned based on threshold breach
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
catalyst_extraction_precision
Accuracy in extracting market driving event • target: 0.9 • range: 0-1
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Learning goals
Build a LangChain stateful graph workflow for real-time commodity price tracking
Integrate financial news feed parsers to correlate market spikes with Fed speeches
Implement dynamic hedging alert logic when metal prices exceed 3-month highs
Output structured JSON payloads for automated trading system ingestion
Resources
Historical gold price time-series paired with tagged financial news transcripts.
Challenge setup
Evaluate price shock identification and news correlation precision.
Challenge input
JSON with commodity_symbol, current_price, three_month_high, news_headline
LangChain
Popular framework for stateful task chains and tool invocation.
Evaluated output
JSON with alert_level ('HIGH'|'MEDIUM'|'LOW'), catalyst_detected, hedge_recommended (bool)
- Alert level correctly assigned based on threshold breach
- Accuracy in extracting market driving event • target: 0.9 • range: 0-1
- Benchmark: FinTech_Trading_Alert_Bench
- Catalyst Extraction Precision target: 0.9
- 1 public reference case
- Python execution harness
- Python sandbox (unavailable on Versalist)
Shows the first task, up to three tools, and up to three evidence items.
View technical recipe
Configured tools
- LangChain · Required
- Langchain · Optional
- Fiddler AI · Optional
- LangChain · Required
- Langchain · Optional
Evaluation contract
- alert_level_validity · Weight 1
- catalyst_extraction_precision · Weight 1
Metrics
- catalyst_extraction_precision · Target 0.9
Benchmarks
- FinTech_Trading_Alert_Bench
- general
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON with commodity_symbol, current_price, three_month_high, news_headline
Output: JSON with alert_level ('HIGH'|'MEDIUM'|'LOW'), catalyst_detected, hedge_recommended (bool)
Execution harness: Python
Evaluation tools
- LangChain · Orchestrator
Recipe freeze marker
No recipe freeze time is recorded.