Introduction
@n1xyz/nord-ts is a TypeScript SDK for interacting with 01 Exchange, powered by the N1 blockchain and trading infrastructure. Support for Python and raw HTTP integration is also available.
@n1xyz/nord-ts
Official Web SDK.
Python
For trading bots.
REST API
HTTP Reference.
Features
- Trading Operations: Place, cancel, and manage orders with full support for limit, market, and trigger orders
- Account Management: Create and manage trading accounts with multi-account support
- Real-time Data: Subscribe to orderbook updates, trades, and account changes via WebSocket
- Atomic Operations: Execute multiple operations atomically for complex trading strategies
Installation
TypeScript SDK
pnpm
pnpm install @n1xyz/nord-tsPython Dependencies
pip install protobuf cryptography requests base58Quick Start (TypeScript)
import { Nord } from '@n1xyz/nord-ts';
import { Connection } from '@solana/web3.js';
// Initialize Solana connection
const connection = new Connection('https://api.devnet.solana.com');
// Create a Nord instance and fetch market data
const nord = await Nord.new({
app: 'zoau54n5U24GHNKqyoziVaVxgsiQYnPMx33fKmLLCT5', // 01 Exchange App Key
solanaConnection: connection,
webServerUrl: 'https://zo-devnet.n1.xyz', // or 'https://zo-mainnet.n1.xyz' for mainnet
});
console.log('Nord initialized successfully');For Python quick start, see the Python Integration Guide.
Next Steps
- Getting Started (TS) - TypeScript SDK setup
- Python Integration - Python bot setup
- API Reference - Raw HTTP endpoints
Last updated on