← 返回 Skills 市场
bouncyknighter

01-exchange-skill(not official)

作者 Bouncyknighter · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1639
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 01-exchange-kill
功能描述
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.
使用说明 (SKILL.md)

01.xyz Exchange Developer Skill

Non-custodial perpetual futures on Solana. Built by traders, for traders.

What this Skill is for

Use this Skill when the user asks for:

  • Market Monitoring: Orderbook depth, mark prices, funding rates, 24h stats
  • Account Tracking: Position monitoring, margin health, liquidation risk
  • Trading Strategies: Market making, DCA, grid trading, trend following
  • SDK Integration: Setting up Nord.ts (@n1xyz/nord-ts) for TypeScript/Python
  • API Development: Building on the FTX-inspired REST API
  • Risk Management: Position sizing, circuit breakers, margin calculations
  • N1 Protocol: Understanding the N1 blockchain and ZO protocol architecture

Overview

01.xyz is a non-custodial perpetual futures exchange built on the N1 blockchain (evolution of the ZO protocol). It enables fully self-custodied derivatives trading with up to 20x leverage on major crypto assets.

Key Design Principles

Feature Description
Non-custodial Your private keys never leave your machine. No central counterparty risk.
FTX-inspired API Familiar REST patterns for easy migration from centralized exchanges.
Local Signing Users run a local API that signs transactions — funds remain under user control.
High Performance Sub-second finality on N1 blockchain with Solana settlement.
Deep Liquidity Professional market makers and tight spreads on major pairs.

Architecture Flow

┌─────────────────────────────────────────────────────────────┐
│                    User/Developer                           │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐      │
│  │   AI Agent   │  │  Local API   │  │   Browser    │      │
│  └──────┬───────┘  └──────┬───────┘  └──────┬───────┘      │
└─────────┼─────────────────┼─────────────────┼──────────────┘
          │                 │ (signed txs)    │
          │                 ▼                 │
          │        ┌──────────────┐           │
          │        │  N1 Network  │           │
          │        │  (L2 chain)  │           │
          │        └──────┬───────┘           │
          │               │                   │
          │    ┌──────────▼──────────┐        │
          └────►  zo-mainnet.n1.xyz  ◄────────┘
               │    REST/WebSocket    │
               └──────────┬───────────┘
                          │
               ┌──────────▼──────────┐
               │   Solana L1         │
               │   (settlement)      │
               └─────────────────────┘

Network Endpoints

Network Base URL Purpose Status
Mainnet https://zo-mainnet.n1.xyz Live trading, real funds Production
Devnet https://zo-devnet.n1.xyz Testing, dev work Development

Default Stack Decisions

These are opinionated defaults. Adjust for your specific use case.

1. Data Access Pattern

Use Case Recommended Approach Auth Required
Market data (prices, orderbook) Direct HTTP to public endpoints ❌ No
Account data (positions, balances) Local API or Nord SDK ✅ Yes
Order placement Local API with user confirmation ✅ Yes

2. SDK Selection

Language Package Use When
TypeScript @n1xyz/nord-ts Full-featured trading, complex strategies
Python n1-sdk (pip) Quant research, ML models, backtesting
Raw HTTP Direct REST calls Simple monitoring, language-agnostic

3. Security Model

  • AI only reads public data — Never expose private keys to AI systems
  • Local signing mandatory — All transactions signed by user's local instance
  • Explicit confirmation — Trading actions require human approval
  • Testnet first — Always validate on devnet before mainnet

4. Development Priority

  1. Read-only monitoring ✅ — Start here, safe for all users
  2. Account health tracking ✅ — Requires wallet address only
  3. Paper trading simulation ⚠️ — Test strategies without real funds
  4. Live trading ⚠️ — Requires local API + explicit user consent

Operating Procedure

When working with 01.xyz integration:

Phase 1: Discovery

  1. Identify the task type:

    • MONITORING — Market data, public stats
    • ACCOUNT — Position/balance queries
    • TRADING — Order placement, strategy execution
    • RISK — Health checks, liquidation analysis
  2. Determine authentication needs:

    • Public endpoints: No auth needed
    • Account data: Wallet address sufficient
    • Trading: Local API with signing required

Phase 2: Data Collection

  1. For market data:

    // Direct HTTP — no auth required
    const markets = await fetch('https://zo-mainnet.n1.xyz/info').json();
    
  2. For account data:

    // Via local API or SDK
    const account = await nord.getAccount(walletAddress);
    

Phase 3: Safety Validation

  1. Before any trading action:
    • ☐ Verify account health (margin fraction > 10%)
    • ☐ Check open orders for conflicts
    • ☐ Calculate position impact on margin
    • ☐ Confirm funding rate direction
    • ☐ Get explicit user confirmation

Phase 4: Execution

  1. Execute with monitoring:
    • Submit order via local API
    • Track fill status
    • Update position state
    • Log all actions

Progressive Disclosure

Read these files when the topic comes up:

File Read When Safety Level
safety-first.md FIRST — before anything else ⚠️ Mandatory
monitoring-guide.md Getting market data, checking prices ✅ Safe
risk-management.md Managing leverage, liquidation risk ✅ Read-only
trading-basics.md Understanding order types, markets ⚠️ Gated
sdk-reference.md Setting up Nord.ts SDK ✅ Documentation
README.md Project overview, installation ✅ General

Examples Directory

Working code samples in examples/:

Quick Reference

Market IDs Reference

01.xyz uses numeric market IDs (not symbols):

ID Market Max Leverage Tick Size
0 BTCUSD 20x $0.50
1 ETHUSD 20x $0.10
2 SOLUSD 20x $0.01
3 HYPEUSD 10x $0.01
... See /info endpoint

HTTP Endpoints

Public (no auth):

GET /info                    # All markets
GET /market/{id}/orderbook   # L2 orderbook
GET /market/{id}/stats       # 24h stats, funding
GET /trades                  # Recent trades

Private (requires local API):

GET /account/{address}       # Positions, balances
POST /action                 # Submit orders

Common SDK Operations

import { Nord } from '@n1xyz/nord-ts';

// Initialize
const nord = await Nord.new({
  app: 'zoau54n5U24GHNKqyoziVaVxgsiQYnPMx33fKmLLCT5',
  solanaConnection: connection,
  webServerUrl: 'https://zo-mainnet.n1.xyz',
});

// Get markets
const markets = await nord.getMarkets();

// Get orderbook
const orderbook = await nord.getOrderbook(2); // SOLUSD

// Place order (requires auth)
const order = await nord.placeOrder({
  marketId: 2,
  side: 'buy',
  size: 1.0,
  price: 150.00,
  orderType: 'limit',
});

Safety & Risk Checklist

Pre-Trading Checklist

Read safety-first.md — Non-custodial reality check
Verify on devnet first — Test all logic with fake funds
Check account health — Margin fraction > 10% (ideally > 20%)
Review funding rates — Can flip PnL significantly
Calculate liquidation price — Know your liquidation level
Set stop-losses — Use trigger orders for downside protection
Confirm market ID — Numeric IDs, not symbols

In-Flight Monitoring

Monitor margin fraction — Alert if \x3C 15%
Track funding payments — Every 8 hours
Watch for liquidations — Cascading effects in volatile markets
Log all operations — Audit trail for debugging

Emergency Procedures

  • Approaching liquidation: Reduce position size immediately or add collateral
  • API unresponsive: Check local API status, verify network connectivity
  • Unexpected fills: Review order history, check for stale orders
  • Wrong market ID: Cancel all pending orders, verify symbol mapping

Resources

Official Documentation

SDKs & Tools

Community

  • Discord: N1 Exchange Community
  • Twitter/X: @01_exchange

Updates

  • Version: 1.0.0
  • Last Updated: 2026-02-04
  • API Version: 2026-01
  • Compatibility: N1 Mainnet, Devnet

This Skill follows the OpenClaw Skill Specification. For more information on creating Skills, see the Skill documentation.

安全使用建议
This skill appears to be documentation and examples for building monitoring and trading tools against 01.xyz/N1 and is largely coherent with that purpose, but take these precautions before using it: - Provenance: the source and homepage are missing. Prefer official upstream sources (official docs.n1.xyz, npm org pages) or a known repository before installing anything. Ask the publisher for a link or commit history. - Verify packages: the docs recommend npm packages (@n1xyz/nord-ts, @n1xyz/local-api). Inspect those packages on the npm website (publisher, versions, weekly downloads, repository link) and prefer packages with source repos and checksums. - Environment mismatch: the skill metadata lists no env requirements, but the docs reference several env vars (NORD_WEBSERVER, LOCAL_API_URL, SOLANA_RPC, etc.). Don’t copy sensitive secrets into env variables unless you understand where they are used; never expose private keys or seed phrases to the agent or remote endpoints. - Local API safety: the workflow depends on a local signing API. Run it on a secure, isolated machine; prefer hardware wallets where supported; do not run a signing API on a public server or with keys that control large balances. - Testnet first: follow the docs’ advice—exhaustively test on devnet before mainnet with small funds and verify behavior. - If you need higher assurance: request the skill author to publish the repository/homepage, a release tarball, and checksums; ask for a short changelog and the npm package names used by the examples. If you can obtain an authoritative source (official repo or npm org) and confirm the referenced packages and env usage, the skill looks coherent and lower-risk. Without that provenance, treat it cautiously and avoid running installs or starting services suggested by the docs.
能力评估
Purpose & Capability
Name/description claim an exchange dev/trading helper for 01.xyz and N1; the included docs and examples exclusively target market monitoring, SDK usage, local signing, and trading flows — this matches the stated purpose. Minor note: the metadata declares no required env vars or binaries even though the docs show using environment variables and installing SDKs/local API (see env/config examples).
Instruction Scope
SKILL.md and the included files stay within the advertised domain: public market fetches, account queries via local API, SDK usage, and extensive safety checks. The instructions explicitly forbid giving private keys to the AI and require human confirmation for trading, which limits scope creep. There are no instructions that request reading unrelated system files or exfiltrating arbitrary data.
Install Mechanism
This is an instruction-only skill (no install spec) which is low-risk. However the docs instruct users to run npm installs (e.g., @n1xyz/nord-ts, @n1xyz/local-api) and to run a local API — those are user-side actions not handled by the skill metadata. Because there is no declared install specification or verified homepage/source, users should validate the npm packages and their provenance before installing.
Credentials
Skill metadata declares no required environment variables, but the docs include environment-backed configuration examples (NORD_WEBSERVER, LOCAL_API_URL, SOLANA_RPC, NORD_APP_ID, etc.). This is an inconsistency: the runtime instructions reference env/config values the metadata doesn't declare. While the referenced variables are plausible for an SDK, the mismatch means the skill metadata understates what a user might need or set — verify what secrets/config are actually required and where they are stored.
Persistence & Privilege
The skill does not request always:true or other elevated persistence. There is no install-time code, no indication it writes to other skills' configs, and the default autonomous invocation flag is unchanged. Nothing in the files requests system-wide privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install 01-exchange-kill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /01-exchange-kill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the 01xyz-developer skill for 01.xyz exchange integration. - Enables market monitoring, trading strategies, and risk analysis for 01.xyz (N1 blockchain) using FTX-inspired REST API and Nord.ts SDK. - Supports read-only integration: fetch orderbooks, market data, and funding rates without authentication. - Covers non-custodial trading patterns: local signing, user-controlled funds, and security best practices. - Provides step-by-step guidance for monitoring, account tracking, SDK setup, and safe trading automation. - Includes documentation references, example code, and detailed architecture flow. - MIT licensed and suitable for Solana, DeFi, and perpetual trading development.
元数据
Slug 01-exchange-kill
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1639 次。

如何安装 01-exchange-skill(not official)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install 01-exchange-kill」即可一键安装,无需额外配置。

01-exchange-skill(not official) 是免费的吗?

是的,01-exchange-skill(not official) 完全免费(开源免费),可自由下载、安装和使用。

01-exchange-skill(not official) 支持哪些平台?

01-exchange-skill(not official) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 01-exchange-skill(not official)?

由 Bouncyknighter(@bouncyknighter)开发并维护,当前版本 v1.0.0。

💬 留言讨论