AI-powered 01.xyz exchange development skill for monitoring, trading strategies, and N1 blockchain integration. Covers REST API (FTX-inspired), Nord.ts SDK (@n1xyz/nord-ts), non-custodial trading patterns, and market making on Solana.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install 01-exchange-kill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install 01-exchange-kill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/01-exchange-kill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
> ✅ 100% Safe — These operations require no authentication and cannot spend funds.
This guide covers read-only data access for monitoring 01.xyz markets, prices, and network status. Perfect for building dashboards, alerts, and market analysis tools.
---
These endpoints return data available to all users:
| Endpoint | Description | Cache Time | |----------|-------------|------------| | GET /info | All markets, specs, metadata | ~1 min | | GET /market/{id}/orderbook | Full L2 orderbook | Real-time | | GET /market/{id}/stats | 24h volume, funding rate, mark price | ~30 sec | | GET /trades | Recent public trades | Real-time | | GET /timestamp | Server timestamp | N/A |
These require running the local API:
| Endpoint | Description | |----------|-------------| | GET /account/{address} | Account positions, balances | | GET /orders | Open orders for account | | GET /fills | Fill history |
---
/infoReturns complete list of trading markets with specifications.
Example Request:
curl https://zo-mainnet.n1.xyz/info | jq .
Example Response:
{
"markets": [
{
"id": 0,
"symbol": "BTCUSD",
"name": "Bitcoin",
"baseAsset": "BTC",
"quoteAsset": "USD",
"maxLeverage": 20,
"minOrderSize": 0.001,
"tickSize": 0.5,
"maintenanceMargin": 0.05
},
{
"id": 1,
"symbol": "ETHUSD",
"name": "Ethereum",
"baseAsset": "ETH",
"quoteAsset": "USD",
"maxLeverage": 20,
"minOrderSize": 0.01,
"tickSize": 0.1,
"maintenanceMargin": 0.05
},
{
"id": 2,
"symbol": "SOLUSD",
"name": "Solana",
"baseAsset": "SOL",
"quoteAsset": "USD",
"maxLeverage": 20,
"minOrderSize": 0.1,
"tickSize": 0.01,
"maintenanceMargin": 0.05
}
],
"serverTime": 1738598400000
}
Key Fields:
| Field | Description | |-------|-------------| | id | Numeric market ID (required for all other calls) | | symbol | Human-readable symbol | | maxLeverage | Maximum allowed leverage | | tickSize | Minimum price increment | | maintenanceMargin | Liquidation threshold (e.g., 0.05 = 5%) |
---
/market/{id}/orderbookReturns the full Level 2 orderbook for a given market.
Example Request:
curl https://zo-mainnet.n1.xyz/market/2/orderbook | jq .
Example Response:
{
"marketId": 2,
"symbol": "SOLUSD",
"bids": [
[145.00, 125.5], // [price, size]
[144.95, 300.0],
[144.90, 150.0]
],
"asks": [
[145.02, 80.2], // [price, size]
[145.05, 200.0],
[145.10, 500.0]
],
"timestamp": 1738598400000
}
Important Notes:
asks[0][0] - bids[0][0](bestBid + bestAsk) / 2function analyzeSpread(orderbook) {
const bestBid = orderbook.bids[0][0];
const bestAsk = orderbook.asks[0][0];
const spread = bestAsk - bestBid;
const midPrice = (bestBid + bestAsk) / 2;
const spreadPct = (spread / midPrice) * 100;
return {
bestBid,
bestAsk,
spread,
midPrice,
spreadPct: spreadPct.toFixed(4) + '%'
};
}
---
/market/{id}/statsReturns 24-hour statistics including mark price, index price, and funding rate.
Example Request:
curl https://zo-mainnet.n1.xyz/market/2/stats | jq .
Example Response:
{
"marketId": 2,
"symbol": "SOLUSD",
"perpStats": {
"mark_price": 145.23,
"index_price": 145.20,
"funding_rate": 0.0001, // 0.01% per 8 hours
"volume_24h": 12500000, // USD
"open_interest": 45000000, // USD
"change_24h": 0.0523, // +5.23%
"high_24h": 148.50,
"low_24h": 138.20
},
"timestamp": 1738598400000
}
Key Fields:
| Field | Description | Use Case | |-------|-------------|----------| | mark_price | Current perpetual price | PnL calculation | | index_price | Spot index price | Fair value reference | | funding_rate | Next funding payment | Funding cost analysis | | open_interest | Total open positions | Market liquidity gauge | | change_24h | 24h price change | Trend analysis |
---
Funding rates are periodic payments between longs and shorts to keep perpetuals aligned with spot prices:
| Rate | Longs Pay | Shorts Pay | Market Bias | |------|-----------|------------|-------------| | Positive | Longs → Shorts | Receive | Long-dominant | | Negative | Receive | Shorts → Longs | Short-dominant |
Position Size × Mark Price × Funding Rateasync function getAllFundingRates(baseUrl = 'https://zo-mainnet.n1.xyz') {
// First get market list
const info = await fetch(`${baseUrl}/info`).json();
// Then fetch stats for each market
const fundingData = await Promise.all(
info.markets.map(async (market) => {
const stats = await fetch(`${baseUrl}/market/${market.id}/stats`).json();
return {
symbol: market.symbol,
marketId: market.id,
fundingRate: stats.perpStats.funding_rate,
markPrice: stats.perpStats.mark_price,
annualizedRate: stats.perpStats.funding_rate * 3 * 365 // 3× daily × 365
};
})
);
return fundingData.sort((a, b) => b.fundingRate - a.fundingRate);
}
// Usage
const rates = await getAllFundingRates();
console.table(rates);
Sample Output:
┌─────────┬────────┬─────────────┬────────────┬─────────────────┐
│ (index) │ symbol │ marketId │ fundingRate│ annualizedRate │
├─────────┼────────┼─────────────┼────────────┼─────────────────┤
│ 0 │ 'BTCUSD'│ 0 │ 0.0003 │ 0.3285 │
│ 1 │ 'SOLUSD'│ 2 │ 0.0001 │ 0.1095 │
│ 2 │ 'ETHUSD'│ 1 │ -0.00005 │ -0.05475 │
---
/tradesReturns recent public trades across all markets.
Query Parameters:
| Parameter | Type | Description | |-----------|------|-------------| | marketId | number | Filter by market | | limit | number | Max results (default: 100) | | startTime | timestamp | From time (ms) | | endTime | timestamp | To time (ms) |
Example:
curl 'https://zo-mainnet.n1.xyz/trades?marketId=2&limit=10' | jq .
Response:
{
"trades": [
{
"id": "trade_12345",
"marketId": 2,
"price": 145.23,
"size": 2.5,
"side": "buy", // Taker side
"time": 1738598400000
}
]
}
---
// monitor-markets.js
// Scans all markets and displays key metrics
const BASE_URL = 'https://zo-mainnet.n1.xyz';
...安装 01-exchange-skill(not official) 后,可以对 AI 说这些话来触发它
Help me get started with 01-exchange-skill(not official)
Explains what 01-exchange-skill(not official) does, walks through the setup, and runs a quick demo based on your current project
Use 01-exchange-skill(not official) to aI-powered 01
Invokes 01-exchange-skill(not official) with the right parameters and returns the result directly in the conversation
What can I do with 01-exchange-skill(not official) in my finance & investment workflow?
Lists the top use cases for 01-exchange-skill(not official), with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/01-exchange-kill/ 目录(个人级,所有项目可用),或 .claude/skills/01-exchange-kill/(项目级)。重启 AI 客户端后,用 /01-exchange-kill 主动调用,或让 AI 根据上下文自动发现并使用。
01-exchange-skill(not official) 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
01-exchange-skill(not official) 可免费安装使用。请查阅仓库了解许可证信息。
AI-powered 01.xyz exchange development skill for monitoring, trading strategies, and N1 blockchain integration. Covers REST API (FTX-inspired), Nord.ts SDK (@n1xyz/nord-ts), non-custodial trading patterns, and market making on Solana.
Automate my finance & investment tasks using 01-exchange-skill(not official)
Identifies repetitive steps in your workflow and sets up 01-exchange-skill(not official) to handle them automatically
01-exchange-skill(not official) 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。