Skip to Content
Introduction

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.

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 install @n1xyz/nord-ts

Python Dependencies

pip install protobuf cryptography requests base58

Quick 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

Last updated on