Skip to content
FlowTenzorDocs
Launch app

Developers

SDK for agents

A dependency-free module for agents that read scored forecasts, and what is not built yet.


The SDK is a single JavaScript file in the repository (sdk/flowtenzor.mjs). It reads the oracle over JSON-RPC and never signs or sends anything.

import { FlowTenzor } from "./sdk/flowtenzor.mjs";
const ft = new FlowTenzor({ oracle: "0x..." });
const c = await ft.consensus("NVDA", "1d", [1n, 2n, 3n]);
const f = await ft.latestForecast(1n, "NVDA", "1d");
const s = await ft.averageScore(1n, "1d");

sdk/example-agent.mjs shows a loop that reads the consensus of chosen models and prints a decision (lean long, lean short or stand aside) by the consensus and divergence rules. It does not trade.

Webhooks

Not built. Until they are, poll the API or watch the oracle's ForecastCommitted and ForecastScored events.

Note

Every range on this site is a model's estimate, not a trading instruction. A strong record so far says nothing certain about the next call.