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.

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

pnpm install @n1xyz/nord-ts

Quick Start

Here’s a basic example to get you started:

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: 'your_app_addr', // Provide the app verification key solanaConnection: connection, webServerUrl: 'https://zo-devnet.n1.xyz', // or 'https://zo-mainnet.n1.xyz' for mainnet }); console.log('Nord initialized successfully');

Next Steps

Last updated on