oraclex-sdk
v1.0.1
Published
A modular oracle framework for fetching and normalizing external data (crypto prices, weather, sports, News, so on). create your prediction market with modular functions
Readme
OracleX SDK
A modular oracle framework for fetching and normalizing external data (crypto prices, weather, sports, News, so on). create your prediction market with modular functions
Installation
npm install oraclex-sdk
Usage
const { OracleX } = require("oraclex");
const oracle = new OracleX();
const event = oracle.createEvent({ id: "btcprice", dataSource: "cryptoPrice" });
const snapshot = await oracle.indexEvent("btcprice"); console.log(snapshot);
