Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

704 B
Raw Blame
export interface ExchangeFlowEntry {
  symbol: string;
  score: number;           // -100 to +100
  direction: 'INFLOW' | 'OUTFLOW' | 'NEUTRAL';
  label: string;
  signals: Record<string, number | string>;
}

export interface ExchangeFlowSummary {
  inflows: number;
  outflows: number;
  neutral: number;
  avgScore: number;
  marketDirection: string;
}

export interface ExchangeFlowResult {
  timestamp: string;
  flows: ExchangeFlowEntry[];
  summary: ExchangeFlowSummary;
  unavailable?: boolean;
}

export async function fetchExchangeFlow(): Promise<ExchangeFlowResult> {
  const res = await fetch('/api/exchange-flow');
  if (!res.ok) throw new Error(`HTTP ${res.status}`);
  return res.json();
}