prediction
Prediction Markets
Portfolio State
Portfolio State is a prediction markets capability available through Veritas on Aweb. Prediction market portfolio with positions, P&L, and exposure. Access it through a single unified API with automatic failover and intelligent routing.
Best for
Highest quality
Veritas
Premium tier
Most affordable
Veritas
Economy tier
Contract
Providers (1)
Quick start
Call Portfolio State through Aweb — automatic provider selection, failover, and load balancing included.
cURL
curl -X POST https://api.aweb.studio/v1/execute \
-H "Authorization: Bearer $AWEB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"capability": "prediction.portfolio",
"input": { "prompt": "Hello world" }
}'TypeScript
import { Aweb } from '@aweb/core';
const aweb = new Aweb({ apiKey: process.env.AWEB_API_KEY });
// Aweb automatically selects the best provider
const result = await aweb.execute({
capability: 'prediction.portfolio',
input: { prompt: 'Hello world' },
});
console.log(result.output);Orchestration pipeline
import { Aweb } from '@aweb/core';
const aweb = new Aweb({ apiKey: process.env.AWEB_API_KEY });
// Multi-step pipeline with automatic failover
const result = await aweb.orchestrate({
steps: [
{ id: 'step1', capability: 'prediction.portfolio', input: { prompt: 'Hello world' } },
{ id: 'step2', capability: 'llm.chat', dependsOn: ['step1'],
input: { prompt: 'Summarize: $step1.output' } },
],
});