Build a High-Frequency Trade Settlement Anomaly Detector with Vercel AI SDK
New regional stock exchanges require real-time settlement monitoring to prevent systemic failure and trade wash manipulation. Build a TypeScript trade settlement anomaly agent using Vercel AI SDK to stream, parse, and flag anomalous trade fills with under 30ms latency.
What you are building
The core problem, expected build, and operating context for this challenge.
Deploy a TypeScript Vercel AI SDK agent on edge execution environments to perform real-time wash trade detection on stock exchange settlement streams.
How work is evaluated
Evaluates wash trade pattern detection recall and streaming latency metrics.
Challenge datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
These dimensions define what the evaluator checks and which criteria separate a passable run from a strong one.
wash_trade_recall_test
Must flag self-dealing orders (same buyer and seller ID).
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
execution_latency_ms
Stream latency per trade fill block. • target: 18 • range: 0-30
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
What you should walk away with
Implement ultra-low latency streaming functions using Vercel AI SDK
Build wash trade pattern detection algorithms over stock exchange order books
Deploy edge-based settlement anomaly detectors using TypeScript and Zod
Achieve sub-30ms execution processing latency per trade execution block
Reference links and supporting material
Dataset of stock exchange trade order streams with injected wash trades, layer spoofing, and settlement delays.
Challenge setup
Evaluates wash trade pattern detection recall and streaming latency metrics.
Challenge input
JSON order book trade fill event array
AI SDK
Enables ultra-fast TypeScript stream processing on edge nodes.
Evaluated output
JSON manipulation detection verdict, flag type, and latency in ms
- Must flag self-dealing orders (same buyer and seller ID).
- Stream latency per trade fill block. • target: 18 • range: 0-30
- Benchmark: Market Surveillance Suite 2026
- Execution Latency Ms target: 18
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
Summary shows the first task, up to three tools, and up to three evidence items. Open the technical recipe to view all configured items.
View technical recipe
Configured tools
- Vercel AI SDK · Required
- Vercel AI SDK · Required
Evaluation contract
- wash_trade_recall_test · Weight 1
- execution_latency_ms · Weight 1
Metrics
- execution_latency_ms · Target 18
Benchmarks
- Market Surveillance Suite 2026
- security
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON order book trade fill event array
Output: JSON manipulation detection verdict, flag type, and latency in ms
Execution harness: JavaScript
Evaluation tools
- AI SDK · Streaming Engine
Recipe freeze marker
No recipe freeze time is recorded.