🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@orderly.network/cli

Package Overview
Dependencies
Maintainers
5
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orderly.network/cli

CLI tool for Orderly Network trading - secure keychain-based authentication

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
419
10375%
Maintainers
5
Weekly downloads
 
Created
Source

@orderly.network/cli

CLI tool for Orderly Network trading with secure OS keychain authentication.

Features

  • Secure key storage - Wallet and API keys stored in OS keychain (never in files)
  • AI-friendly - Keys never exposed to AI context, CLI returns only results
  • Full trading support - Place/cancel orders, manage positions, set leverage
  • Multi-chain - Supports EVM (Arbitrum, Base, Optimism, etc.) and Solana

Installation

npm install -g @orderly.network/cli

Requirements

  • Node.js >= 22
  • Linux: sudo apt install libsecret-1-0 libsecret-1-dev (for OS keychain support)

Quick Start (Testnet)

# 1. Create a new EVM wallet
orderly wallet-create --type EVM --network testnet

# 2. Register Orderly account
orderly wallet-register --broker-id demo --network testnet

# 3. Request test USDC (wait a few minutes for delivery)
orderly faucet-usdc <address> --broker-id demo --chain-id 421614 --network testnet

# 4. Add API key for trading (generates Ed25519 key automatically)
orderly wallet-add-key --broker-id demo --scope read,trading --network testnet

# 5. List accounts to get your account ID
orderly auth-list --network testnet

# 6. Check balance
orderly account-balance --account <account-id> --network testnet

# 7. Place an order
orderly order-place PERP_ETH_USDC BUY MARKET 0.01 --account <account-id> --network testnet

Note: The --account flag is required for all authenticated commands. Use auth-list to see available accounts.

Common Commands

# Account management
orderly account-info --account <account-id>
orderly account-balance --account <account-id>

# Trading - Orders
orderly order-place PERP_ETH_USDC BUY LIMIT 0.01 --price 3500 --account <account-id>
orderly order-place PERP_ETH_USDC BUY MARKET 0.01 --client-order-id my-order-123 --account <account-id>
orderly order-cancel <order-id> --symbol PERP_ETH_USDC --account <account-id>
orderly order-list --status NEW --account <account-id>

# Trading - Algo Orders (TP/SL)
orderly algo-order-place PERP_ETH_USDC BUY STOP 0.01 --trigger-price 2000 --account <account-id>
orderly algo-order-place PERP_ETH_USDC SELL TP_SL 0.01 --tp-trigger-price 2500 --sl-trigger-price 1500 --account <account-id>
orderly algo-order-list --account <account-id>

# Positions
orderly positions-list --account <account-id>
orderly positions-close PERP_ETH_USDC --account <account-id>

# Market data
orderly market-price PERP_ETH_USDC
orderly market-trades PERP_ETH_USDC --limit 20
orderly funding-rates
orderly kline PERP_ETH_USDC 1h --limit 100 --account <account-id>
orderly symbols

Output Format

By default, output is compact JSON (no whitespace) for AI/programmatic use:

orderly market-price PERP_ETH_USDC
# {"symbol":"PERP_ETH_USDC","index_price":2124.82,"mark_price":2124.89,...}

Use --csv for tabular data (more token-efficient for lists):

orderly symbols --csv
# symbol,index_price,mark_price,...
# PERP_ETH_USDC,2124.82,2124.89,...
# PERP_BTC_USDC,71551.7,71551.7,...

Security

  • Private keys are stored in the OS keychain:

    • macOS: Keychain
    • Windows: Credential Manager
    • Linux: libsecret/gnome-keyring
  • Keys are never:

    • Written to disk in plain text
    • Exposed in CLI output
    • Accessible to AI agents

Commands

Run orderly --help for the complete command reference.

Development

yarn dev          # Watch mode build
yarn build        # Production build
yarn lint         # Check for issues
yarn format       # Format code
yarn typecheck    # TypeScript check
yarn test         # Run tests

License

MIT

Keywords

orderly

FAQs

Package last updated on 20 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts