Install
openclaw skills install 01-exchange-killAI-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.
openclaw skills install 01-exchange-killNon-custodial perpetual futures on Solana. Built by traders, for traders.
Use this Skill when the user asks for:
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.
| 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. |
┌─────────────────────────────────────────────────────────────┐
│ User/Developer │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ AI Agent │ │ Local API │ │ Browser │ │
│ └──────┬───────┘ └──────┬───────┘ └──────┬───────┘ │
└─────────┼─────────────────┼─────────────────┼──────────────┘
│ │ (signed txs) │
│ ▼ │
│ ┌──────────────┐ │
│ │ N1 Network │ │
│ │ (L2 chain) │ │
│ └──────┬───────┘ │
│ │ │
│ ┌──────────▼──────────┐ │
└────► zo-mainnet.n1.xyz ◄────────┘
│ REST/WebSocket │
└──────────┬───────────┘
│
┌──────────▼──────────┐
│ Solana L1 │
│ (settlement) │
└─────────────────────┘
| 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 |
These are opinionated defaults. Adjust for your specific use case.
| 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 |
| 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 |
When working with 01.xyz integration:
Identify the task type:
MONITORING — Market data, public statsACCOUNT — Position/balance queriesTRADING — Order placement, strategy executionRISK — Health checks, liquidation analysisDetermine authentication needs:
For market data:
// Direct HTTP — no auth required
const markets = await fetch('https://zo-mainnet.n1.xyz/info').json();
For account data:
// Via local API or SDK
const account = await nord.getAccount(walletAddress);
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 |
Working code samples in examples/:
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 |
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
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',
});
☐ 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
☐ Monitor margin fraction — Alert if < 15%
☐ Track funding payments — Every 8 hours
☐ Watch for liquidations — Cascading effects in volatile markets
☐ Log all operations — Audit trail for debugging
npm install @n1xyz/nord-tspip install n1-sdkThis Skill follows the OpenClaw Skill Specification. For more information on creating Skills, see the Skill documentation.