@quantabit/oracle-sdk
v1.1.0
Published
QuantaBit Oracle SDK - Price, batch prices and TWAP via Oracle API
Downloads
38
Maintainers
Readme
@quantabit/oracle-sdk
Price, batch prices and TWAP via Oracle API. Includes medianPrice utility and optional PriceTicker UI.
import { PriceTicker, getPrice, getTwap, medianPrice } from '@quantabit/oracle-sdk';
const { price } = await getPrice('QBIT/USDT');
const mid = medianPrice([1.2, 1.25, 1.3]);
<PriceTicker symbol="QBIT/USDT" />APIs: GET /oracle/price/:symbol, GET /oracle/prices?symbols=, GET /oracle/twap/:symbol?period=.POST /oracle/feed requires authentication and is not implemented in the client SDK.
MIT
