Skip to main content
Version: 1.0

API Reference

This page lists the public Nunchi API surfaces external integrators should use today.

SurfaceProtocolBase URLUse
SWP feedsHTTP JSON / SSEPer-feed Railway origins, or same-origin nunchi.trade proxiesBTCSWP, HYPESWP, ETHCSWP, and SPCXSWP oracle prices
ISFR feedHTTP JSONhttps://house.nunchi.trade/isfrComposite ISFR, history, sub-indices, OHLC, and source metadata

For product context, start with BTCSWP, Feed API, Points API, and ISFR Index.

SWP Feed APIs

SWP feeds are public read-only endpoints for Nunchi funding-rate markets. They are appropriate for dashboards, market monitors, and model inputs. They do not place orders and do not require wallet authentication.

Feed Directory

FeedReference assetPublic base URLLatest tickStream
BTCSWPCore Hyperliquid BTC fundinghttps://cfi-api-production.up.railway.app/api/latest/api/stream
HYPESWPCore Hyperliquid HYPE fundinghttps://hypeswp-api-production.up.railway.app/api/latest/api/stream
ETHCSWPCore Hyperliquid ETH fundinghttps://ethcswp-api-production.up.railway.app/api/latest/api/stream
SPCXSWPxyz:SPCX fundinghttps://spcx-swp-api-production.up.railway.app/api/latest/api/stream

Same-Origin Proxies

Browser clients can use Nunchi same-origin proxies when available:

Proxy endpointUpstream feed
GET https://nunchi.trade/api/feeds/btcswp/latestBTCSWP latest tick
GET https://nunchi.trade/api/feeds/btcswp/streamBTCSWP SSE stream
GET https://nunchi.trade/api/feeds/hypeswp/latestHYPESWP latest tick
GET https://nunchi.trade/api/feeds/hypeswp/streamHYPESWP SSE stream
GET https://nunchi.trade/api/feeds/ethcswp/latestETHCSWP latest tick
GET https://nunchi.trade/api/feeds/ethcswp/streamETHCSWP SSE stream
GET https://nunchi.trade/api/feeds/spcxswp/latestSPCXSWP latest tick
GET https://nunchi.trade/api/feeds/spcxswp/streamSPCXSWP SSE stream

Health

GET /healthz

Example:

curl https://cfi-api-production.up.railway.app/healthz

Example response:

{ "status": "ok" }

Latest Tick

GET /api/latest

Example:

curl https://cfi-api-production.up.railway.app/api/latest

Example response:

{
"oracle_px": "74942.980893"
}

Streaming Ticks

GET /api/stream
Accept: text/event-stream

Example:

const events = new EventSource("https://cfi-api-production.up.railway.app/api/stream");

events.addEventListener("price", (event) => {
const tick = JSON.parse(event.data);
console.log(tick.oracle_px);
});

Each event uses event: price and includes the current oracle price.

SWP Response Fields

FieldMeaning
oracle_pxCurrent oracle price for the SWP feed. Use this as the headline price.

ISFR API

The Implied Secured Funding Rate (ISFR) API publishes the composite benchmark and its sub-indices. It is public read-only and does not require authentication.

Base URL: https://house.nunchi.trade
Dashboard: https://house.nunchi.trade/isfr

Health

GET /isfr/health

Current ISFR

GET /isfr/v1/isfr/current

Example:

curl https://house.nunchi.trade/isfr/v1/isfr/current

Example response shape:

{
"isfr_bps": 690,
"rate": 0.06895,
"rate_formatted": "6.90%",
"components": {
"lending": 620,
"structured": 710,
"funding": 1240,
"staking": 320
},
"confidence": 0.876,
"class_weights_effective": {
"lending": 0.6,
"structured": 0.25,
"funding": 0.1,
"staking": 0.05
},
"timestamp": "2026-04-14T11:42:00+00:00",
"version": "v3.0"
}

History

GET /isfr/v1/isfr/history?days=30

Sub-Indices

GET /isfr/v1/isfr/subindex/{class_name}

class_name must be one of lending, structured, funding, or staking.

Sources

GET /isfr/v1/isfr/sources

OHLC

GET /isfr/v1/isfr/ohlc?days=180&interval=1D

Supported intervals: 1H, 4H, 1D, 1W.

Quick Reference

# BTCSWP latest oracle price
curl https://cfi-api-production.up.railway.app/api/latest

# HYPESWP latest oracle price
curl https://hypeswp-api-production.up.railway.app/api/latest

# ETHCSWP latest oracle price
curl https://ethcswp-api-production.up.railway.app/api/latest

# SPCXSWP latest oracle price
curl https://spcx-swp-api-production.up.railway.app/api/latest

# ISFR current rate
curl https://house.nunchi.trade/isfr/v1/isfr/current