@functionspace/core
v0.0.1
Published
Pure-TypeScript client and math primitives for the FunctionSpace prediction-market engine.
Maintainers
Readme
@functionspace/core
Pure-TypeScript client and math primitives for the FunctionSpace prediction-market engine. No React dependency.
Install
npm install @functionspace/coreQuick start
import { FSClient, queryMarketState, generateGaussian } from '@functionspace/core';
const client = new FSClient({ baseUrl: 'https://fs-engine-api.onrender.com' });
const market = await queryMarketState(client, 1);
const belief = generateGaussian(
50, // center
10, // spread
market.config.numBuckets,
market.config.lowerBound,
market.config.upperBound,
);For AI agents and LLMs
This package is part of the FunctionSpace Trading SDK. Full LLM-targeted reference docs:
- Index: https://docs.functionspace.dev/llms.txt
- This package: https://docs.functionspace.dev/core.txt
Docs
https://docs.functionspace.dev
License
MIT
