Logo: Orderly Onboarding

Orderly Onboarding

Organisatioun
Starchild-ai-agent
orderly-onboarding

Orderly Network onboarding: omnichain perps infra, MCP server, SDK and CLI quickstart. Also indexes executed Orderly fills into Starchild trade analytics. Use when starting on Orderly (e.g. install Orderly MCP, set up the DEX template, integrate the React SDK, use the orderly CLI), and after executing any Orderly trade — report the fill so it is indexed.

Iwwersiicht

EditeurStarchild-ai-agent
Repositoryofficial-skills
Skill-Nummorderly-onboarding
Stären
32
Forks
13
Matgeliwwert Dateien
3
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Starchild-ai-agent huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Orderly Onboarding an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Starchild-ai-agent/official-skills/tree/main/orderly-onboarding
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Starchild-ai-agent/official-skills.git /tmp/official-skills
mkdir -p .claude/skills
cp -r /tmp/official-skills/orderly-onboarding .claude/skills/orderly-onboarding
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Orderly Onboarding an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Orderly Onboarding automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Orderly Onboarding net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Orderly Network: Agent Onboarding

Orderly is an omnichain orderbook-based trading infrastructure providing perpetual futures liquidity for decentralized exchanges. This skill is your starting point for building on or learning about Orderly Network.

When to Use

  • First time encountering Orderly Network
  • Setting up AI agent tools for Orderly development
  • Understanding the Orderly ecosystem and offerings
  • Finding the right skill or resource for your task
  • Understanding what tools are available for AI agents

What is Orderly Network

Orderly is a combination of an orderbook-based trading infrastructure and a robust liquidity layer offering perpetual futures orderbooks. Unlike traditional platforms, Orderly doesn't have a front end—it operates at the core of the ecosystem, providing essential services to projects built on top.

Key Characteristics:

  • Omnichain CLOB: Shared Central Limit Order Book accessible from all major EVM chains and Solana
  • Backend Infrastructure: No official front end; builders create DEXes and trading interfaces on top
  • On-chain Settlement: All trades settle on-chain while maintaining full self-custody
  • Unified Liquidity: One orderbook serves all integrated front-ends
  • Perpetual Futures: Trade BTC, ETH, SOL, and more with up to 50x leverage
  • Gasless Trading: No gas fees once funds are deposited and trading keys activated
  • One-Click Trading: New trading key pair per session, no further signatures needed

Primary Use Cases:

Use CaseDescription
Builders/DEXesCreate your own Perps DEX on EVM and Solana with plug-and-play SDKs
Perps AggregatorsAccess Orderly's shared liquidity directly via API or SDK
Trading DesksUse APIs for CEX-level trading with low latency orderbook
Trading BotsConnect to orderbook for best rates, SL/limit orders, gasless transactions

Key Advantages

  • Unified Orderbook & Liquidity: Access all major chains through a single trading infrastructure
  • Quick Development: Launch a DEX within days using our SDKs
  • Ready-to-Use Liquidity: Powered by multiple top-tier market makers
  • Revenue Sharing: Earn a share of generated fees from your platform
  • CEX-Level Performance: Low latency matching engine with on-chain settlement
  • Self-Custody: You control your assets and private keys
  • Collaborative Ecosystem: Join a thriving community of builders

Architecture

Your Application (DEX, Bot, Wallet, Aggregator)

  • Orderly Infrastructure
    • CLOB — Shared Central Limit Order Book (unified across all chains)
    • Matching Engine — Low-latency order matching (CEX-level performance)
    • Vault — On-chain settlement with self-custody
    • Risk Management — Liquidation engine and position monitoring
  • Settlement Networks
    • EVM: Arbitrum, Optimism, Base, Ethereum, Polygon, Mantle
    • Non-EVM: Solana

Getting Started: AI Agent Tools

To build on Orderly, install the MCP server for the best development experience. It provides 8 powerful tools for documentation search, SDK patterns, contract addresses, workflows, and API reference.

MCP Server (Recommended)

The MCP server provides AI assistants with instant access to Orderly documentation, code patterns, and API references.

Quick Install:

bash
npx @orderly.network/mcp-server init --client <client>

Supported Clients:

ClientCommandConfig File
Claude Code--client claude.mcp.json
Cursor--client cursor.cursor/mcp.json
VS Code--client vscode.vscode/mcp.json
Codex--client codex~/.codex/config.toml
OpenCode--client opencode.opencode/mcp.json

Manual Configuration:

If automatic setup doesn't work, add this configuration to your AI client:

Claude Code (.mcp.json):

json
{
  "mcpServers": {
    "orderly": {
      "command": "npx",
      "args": ["@orderly.network/mcp-server@latest"]
    }
  }
}

Cursor (.cursor/mcp.json):

json
{
  "mcpServers": {
    "orderly": {
      "command": "npx",
      "args": ["@orderly.network/mcp-server@latest"]
    }
  }
}

VS Code (.vscode/mcp.json):

json
{
  "servers": {
    "orderly": {
      "command": "npx",
      "args": ["@orderly.network/mcp-server@latest"]
    }
  }
}

OpenCode (.opencode/mcp.json):

json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "orderly": {
      "type": "local",
      "command": ["npx", "@orderly.network/mcp-server@latest"],
      "enabled": true
    }
  }
}

Codex (~/.codex/config.toml):

toml
[mcp_servers.orderly]
command = "npx"
args = ["@orderly.network/mcp-server@latest"]

What the MCP Server Provides:

ToolDescription
search_orderly_docsSearch Orderly documentation for specific topics
get_sdk_patternGet code examples for SDK v2 hooks and patterns
get_contract_addressesLookup smart contract addresses for any chain
explain_workflowStep-by-step guides for common tasks
get_api_infoREST API and WebSocket endpoint documentation
get_indexer_api_infoTrading metrics, events, volume statistics
get_component_guideReact UI component building guides
get_orderly_one_api_infoDEX creation and management API for Orderly One

Agent Skills

Install Orderly skills to enhance your AI agent with procedural knowledge for building on Orderly.

Install all skills globally (recommended):

bash
npx skills add OrderlyNetwork/skills --all --agent '*' -g

Install all skills locally:

bash
npx skills add OrderlyNetwork/skills --all

Install specific skills:

bash
# List available skills
npx skills add OrderlyNetwork/skills --list

# Install specific skill
npx skills add OrderlyNetwork/skills --skill orderly-trading-orders

# Install multiple skills
npx skills add OrderlyNetwork/skills --skill orderly-api-authentication --skill orderly-trading-orders

# Install for specific agent
npx skills add OrderlyNetwork/skills --all --agent claude-code -g

Global vs Local:

  • Global (-g): Available across all projects, installed to user directory
  • Local: Project-specific, creates .skills/ in repo, can be committed to version control

Available Skills:

CategorySkillDescription
API / Protocolorderly-api-authenticationTwo-layer auth: EIP-712 (EVM) + Ed25519 (Solana)
orderly-trading-ordersPlace, manage, cancel orders via REST API or SDK
orderly-positions-tpslMonitor positions, TP/SL, leverage, PnL
orderly-websocket-streamingReal-time WebSocket for orderbook and executions
orderly-deposit-withdrawToken deposits, withdrawals, cross-chain operations
SDK / Reactorderly-sdk-react-hooksReference for all React SDK hooks
orderly-ui-componentsPre-built React UI components
orderly-sdk-install-dependencyInstall Orderly SDK packages
orderly-sdk-dex-architectureComplete DEX project structure and setup
orderly-sdk-page-componentsPre-built page components
orderly-sdk-themingCSS variable theming and customization
orderly-sdk-trading-workflowsEnd-to-end trading flows
Platformorderly-sdk-wallet-connectionWallet integration for EVM and Solana
orderly-sdk-debuggingDebug/troubleshoot SDK errors
orderly-one-dexCreate/manage custom DEX with Orderly One API

For Builders (SDK & DEX Development)

Build custom trading interfaces using Orderly's React SDK v2.

Fastest Way to Get Started (Default for DEX Creation)

Fork the DEX Template to get a working DEX in minutes.

⚠️ CRITICAL FOR AGENTS — NEVER try to build a DEX by installing @orderly.network/cli:

  • @orderly.network/cli is a terminal trading tool for placing perp orders, NOT a DEX builder or scaffolding CLI. Installing it pulls keytar (native C++ build via node-gyp), which will OOM-kill (SIGKILL / 137) 1GB sandboxes.
  • Zero-install DEX deployment: The official DEX template requires NO heavy installs on the agent box. Fork OrderlyNetwork/dex-template to the user's GitHub, configure .env, and let GitHub Actions build and deploy it directly to GitHub Pages for free (or deploy to Vercel/Netlify).
  1. Fork the repository OrderlyNetwork/dex-template to your GitHub account (or user's GitHub via Composio/gh)
  2. Configure .env with your broker ID (VITE_ORDERLY_BROKER_ID) and name (VITE_ORDERLY_BROKER_NAME)
  3. Customize your theme in app/styles/theme.css with orderly-sdk-theming (pure CSS custom properties, no build step needed)
  4. Complete the required one-time GitHub settings after forking (see template README / AGENTS.md):
    • Enable Actions: gh api repos/$REPO/actions/permissions -X PUT -f enabled=true -f allowed_actions=all
    • Grant workflow write permissions: gh api repos/$REPO/actions/permissions/workflow -X PUT -f default_workflow_permissions=write -F can_approve_pull_request_reviews=true
    • Enable GitHub Pages with Actions: gh api repos/$REPO/pages -X POST -f build_type=workflow (Without these permissions, GitHub Actions will not run and auto-deployment will fail.)
  5. Push to main — GitHub Actions builds via GitHub-hosted runner and publishes to https://<user>.github.io/<repo>/

This template uses the components SDK — pre-built page components that work out of the box with less customization. For full control over individual components, use the MCP server and load SDK skills (especially orderly-sdk-react-hooks and orderly-sdk-ui-components) for hooks-level development.

Core SDK Packages:

Package Manager: Prefer pnpm add (or yarn add) over npm install — pnpm uses ~⅓ the peak memory during dependency resolution, avoiding memory pressure in resource-constrained container environments.

bash
# Full DEX setup (prefer pnpm)
pnpm add @orderly.network/react-app \
         @orderly.network/trading \
         @orderly.network/portfolio \
         @orderly.network/markets \
         @orderly.network/wallet-connector \
         @orderly.network/i18n

# Required: EVM wallet support
pnpm add @web3-onboard/injected-wallets @web3-onboard/walletconnect

# Required: Solana wallet support
pnpm add @solana/wallet-adapter-base @solana/wallet-adapter-wallets

Key Components Available:

  • OrderEntry - Order placement form
  • Orderbook - Market depth display
  • PositionsView - Position management table
  • TradingPage - Full trading page
  • Portfolio - User portfolio dashboard
  • ConnectWalletButton - Wallet connection UI

Orderly One (White-Label DEX):

Launch your own branded perpetuals DEX without building from scratch. Orderly One provides a turnkey solution with:

  • Custom domain and branding
  • Fee revenue sharing after paying graduation fee
  • Full trading infrastructure
  • Custom theme

Load these skills for SDK development:

  • orderly-sdk-install-dependency - Package installation guide
  • orderly-sdk-dex-architecture - Project structure and providers
  • orderly-sdk-wallet-connection - Wallet integration
  • orderly-sdk-trading-workflows - Complete trading flows
  • orderly-sdk-theming - Customization guide

For API / Bot Developers

Integrate directly with Orderly's REST API and WebSocket streams.

API Base URLs:

NetworkURL
Mainnethttps://api.orderly.org
Testnethttps://testnet-api.orderly.org

WebSocket URLs:

NetworkURL
Mainnetwss://ws.orderly.org/ws
Testnetwss://testnet-ws.orderly.org/ws

Authentication:

  • Ed25519 key pair generation for API signing
  • EIP-712 wallet signatures for EVM accounts
  • Ed25519 message signing for Solana accounts

Symbol Format:

PERP_<TOKEN>_USDC

Examples: PERP_ETH_USDC, PERP_BTC_USDC, PERP_SOL_USDC

Key Endpoints:

  • POST /v1/order - Place order
  • GET /v1/positions - Get positions
  • GET /v1/orders - Get orders
  • GET /v1/orderbook/{symbol} - Orderbook snapshot
  • GET /v1/public/futures - Market info

Load these skills for API development:

  • orderly-api-authentication - Complete auth setup
  • orderly-trading-orders - Order management
  • orderly-positions-tpsl - Position management
  • orderly-websocket-streaming - Real-time data

Orderly CLI (Terminal Trading Only — NOT for DEX Building)

A terminal trading tool (@orderly.network/cli) wrapping the Orderly REST API for CLI-based trading.

⚠️ Memory Warning: Do NOT install @orderly.network/cli in resource-constrained environments (≤1GB RAM). It depends on keytar which triggers native C++ compilation (node-gyp) and will OOM-kill the container. For trading or onboarding via agent, prefer Orderly REST API or the hosted MCP server (https://mcp.orderly.network).

Install & Quick Start (Testnet, local machines with >2GB RAM only):

bash
npm install -g @orderly.network/cli
orderly wallet-create --type EVM --network testnet
orderly wallet-register --broker-id demo --network testnet
orderly faucet-usdc <address> --chain-id 421614 --network testnet
orderly wallet-add-key --network testnet
orderly auth-list --network testnet
orderly order-place PERP_ETH_USDC BUY MARKET 0.01 --account <id> --network testnet

Note: --account is required for authenticated commands (get IDs via auth-list). Hex IDs must be shell-quoted. Default network is testnet — pass --network mainnet for production. Linux requires libsecret.

Broker IDs

  • demo — For testing, development, and personal use. No setup required.
  • Custom — Go to dex.orderly.network, select "Custom API integration". Costs $10, requires manual browser interaction (cannot be done via CLI or agent).

Supported Chains

Orderly supports multiple EVM and non-EVM chains. To get the current list of supported networks with their chain IDs, vault addresses, and RPC endpoints:

GET https://api.orderly.org/v1/public/chain_info

This endpoint returns all mainnet and testnet chains currently supported by Orderly, including Arbitrum, Optimism, Base, Ethereum, Polygon, Mantle, Solana, Sei, Avalanche, BSC, Abstract, and more.

$ORDER Token

The $ORDER token is central to the Orderly ecosystem:

  • Maximum Supply: 1,000,000,000 tokens
  • Staking: Stake $ORDER to earn VALOR and protocol revenue share
  • VALOR: Non-transferable metric measuring staking position; redeemable for esORDER rewards
  • Revenue Sharing: 30% of protocol net fees distributed to stakers
  • Governance: Stakers participate in protocol governance decisions
  • esORDER: Escrowed ORDER for rewards with vesting mechanics

Token Contracts:

NetworkAddress
Ethereum (ERC20)0xABD4C63d2616A5201454168269031355f4764337
EVM Chains (OFT)0x4E200fE2f3eFb977d5fd9c430A41531FB04d97B8
SolanaABt79MkRXUsoHuV2CVQT32YMXQhTparKFjmidQxgiQ6E

For full tokenomics details, visit: https://orderly.network/docs/introduction/tokenomics

Key Links

Recommended Next Steps

If you're building a DEX:

  1. Fork the DEX Template for the fastest start
  2. Install MCP server: npx @orderly.network/mcp-server init
  3. Configure your broker settings in .env and customize your theme
  4. For more control, load orderly-sdk-install-dependency and orderly-sdk-dex-architecture to build from scratch
  5. Set up wallet connection with orderly-sdk-wallet-connection

If you're building trading bots or API integrations:

  1. Load orderly-api-authentication first
  2. Install MCP server for API reference
  3. Load orderly-trading-orders and orderly-websocket-streaming

If you want to trade from the terminal or use the CLI:

  1. Install the CLI: npm install -g @orderly.network/cli
  2. Run orderly --help to see all commands
  3. Follow the testnet quick start (6 commands, see Orderly CLI section above)
  4. Use --broker-id demo for testing, or get a custom broker ID at dex.orderly.network ($10, manual browser interaction required)

If you're launching a white-label DEX:

  1. Install MCP server for Orderly One API tools: npx @orderly.network/mcp-server init
  2. Load orderly-one-dex skill for DEX creation and management workflows
  3. Load orderly-sdk-theming skill to understand theme structure for API updates

If you're troubleshooting:

  1. Load orderly-sdk-debugging
  2. Use MCP server to search documentation

For testing:

  • Use Testnet environment for development
  • Request testnet USDC from the faucet: POST /v1/faucet/usdc (testnet only)
  • Each account can use faucet up to 3 times

Common Issues

"Where do I start building?"

For a quick DEX: Fork the DEX Template, configure .env, and deploy. Uses pre-built components — fastest path.

For more control: Install the MCP server first: npx @orderly.network/mcp-server init --client <your-client>, then load SDK skills like orderly-sdk-react-hooks and orderly-sdk-dex-architecture to build with the hooks SDK.

Then ask: "How do I connect to Orderly Network?" or load orderly-sdk-wallet-connection.

"What's the difference between MCP server and Skills?"

  • MCP Server: Runtime tools for your AI assistant (documentation search, pattern lookup, API reference)
  • Skills: Procedural knowledge embedded in your context (how-to guides, code examples, best practices)

Use both for the best experience.

"How do I test without real funds?"

Use the Testnet environment:

  • API: https://testnet-api.orderly.org
  • WebSocket: wss://testnet-ws.orderly.org/ws
  • Get test USDC: POST https://testnet-operator-evm.orderly.org/v1/faucet/usdc

"Do I need to handle authentication manually?"

The SDK handles authentication automatically. For API-only integration, load orderly-api-authentication for the complete auth flow.

"How do I get a custom broker ID?"

Go to dex.orderly.network, select the "Custom API integration" option, and follow the steps. It costs $10. This requires manual browser interaction and cannot be done via CLI or agent. For testing and development, use --broker-id demo — no setup needed.

Related Skills

API / Protocol

  • orderly-api-authentication - Complete authentication setup
  • orderly-trading-orders - Order management
  • orderly-positions-tpsl - Position and risk management
  • orderly-websocket-streaming - Real-time data streaming
  • orderly-deposit-withdraw - Asset management

SDK / React

  • orderly-sdk-react-hooks - React hooks reference
  • orderly-ui-components - Pre-built UI components
  • orderly-sdk-install-dependency - SDK installation
  • orderly-sdk-dex-architecture - DEX architecture
  • orderly-sdk-page-components - Page components
  • orderly-sdk-theming - Theming guide
  • orderly-sdk-trading-workflows - Trading workflows

Platform

  • orderly-sdk-wallet-connection - Wallet integration
  • orderly-sdk-debugging - Debugging guide
  • orderly-one-dex - Orderly One DEX management

Trade Indexing (Starchild Agents)

Starchild indexes Orderly fills into trade_events via POST {AI_AGENT_API_URL}/v1/trade-events (same pipeline as hyperliquid / polymarket / DEX skills). Two layers — use both:

LayerWhoWhat it covers
Realtime (this skill)Agent, after each Orderly tradeConfirmed agent-initiated fills
Central daily Public Info scanPlatform cron (~10:30 Asia/Hong_Kong)Agent EVM + personal/login EVM wallets (~thousands of addresses); catch-up / third-party wallets

The private ed25519 /v1/trades endpoint alone is not enough for platform analytics — API-key / SDK trading often binds to the user's personal wallet, not the agent Privy wallet. Always record the wallet that actually executed the trade.

Critical: wallet_address = execution wallet

When reporting, set wallet_address to the address that holds the Orderly account / signed the order — not always the agent Privy wallet.

Situationwallet_address value
Trade via agent Privy walletagent EVM address from wallet service
Trade via user's own / third-party wallet (API key, SDK, broker UI)that third-party 0x… address
Sync script with override--address 0x… or ORDERLY_WALLET_ADDRESS

Wrong address → volume mis-attributed or dropped from agent analytics.

Realtime report after every Orderly trade (required)

After any successful Orderly order / fill (SDK, CLI, REST, or a future trading skill), fire-and-forget report. Never block or fail the trade on reporting errors.

One call, zero follow-up. This is a plain HTTP POST — no LLM call, no extra turn. Do not verify that the report landed, do not retry it, and do not mention it to the user unless it raises. The server dedupes, so a duplicate send is harmless and a lost one is picked up by the daily scan.

python
from scripts._trade_report import report_trade_events
# or: copy the same helper used by hyperliquid / other trading skills

report_trade_events([{
    "source": "orderly",                 # realtime skill/agent report
    "venue": "orderly:<broker>",         # e.g. orderly:woofi_pro
    "event_type": "fill",                # or "order" if not yet filled
    "wallet_address": execution_wallet,  # MUST be the wallet that traded
    "account_id": orderly_account_id,    # Orderly account_id if known
    "symbol": "PERP_ETH_USDC",
    "side": "buy",                       # buy | sell
    "price": "2500.1",
    "size": "0.5",
    "notional_usd": "1250.05",
    "fee": "0.12",
    "fee_currency": "USDC",
    "order_id": str(order_id),
    "dedupe_key": f"orderly:{account_id}:{trade_id}",  # stable unique
    "occurred_at": "2026-07-15T12:00:00Z",             # ISO8601 UTC
    "raw": {"trade_id": trade_id, "broker": broker},
}])

dedupe_key convention (server unique on (user_id, dedupe_key)):

  • Prefer orderly:{account_id}:{trade_id} when trade_id is known
  • Else orderly:{execution_wallet_lower}:{order_id}:{fill_index}
  • Never emit a key with an empty/None id — archived Public Info rows can lack id/trade_id/match_id, and all such fills would collapse onto one dedupe_key. trade_sync.py falls back to synthetic_trade_id(ts_ms, symbol, side, price, size) (sha1-derived).

Calling from a short-lived script (cron, one-shot sync)? Pass report_trade_events(events, blocking=True). The default background thread is a daemon and is killed when the process exits, so the POST never leaves the machine. Long-lived agent processes keep the default non-blocking mode. Batches larger than 500 events are split automatically.

Source tags used in analytics:

sourceMeaningTier
orderlyRealtime agent/skill reportConfirmed
orderly_syncThis script, private /v1/tradesConfirmed
orderly_public_syncThis script, Public Info APIReference (esp. third-party)
backfill:agent_walletPlatform daily Public Info (agent)Attributable
backfill:login_walletPlatform daily Public Info (login)Reference

Historical / catch-up sync script

bash
pip install pynacl base58   # one-time
# Agent wallet (default)
python3 scripts/trade_sync.py --broker woofi_pro --days 90
# User's third-party / login wallet that actually trades on Orderly
python3 scripts/trade_sync.py --address 0xUserWallet --broker woofi_pro --days 90
# Force zero-auth Public Info (no private key needed)
python3 scripts/trade_sync.py --address 0xUserWallet --public-only

Env override (same as --address): ORDERLY_WALLET_ADDRESS=0x…

What the script does (idempotent):

  1. Resolves execution wallet: --address → ORDERLY_WALLET_ADDRESS → agent EVM.
  2. Looks up Orderly account for that address + broker (registers only when the address is the agent wallet and can EIP-712-sign).
  3. If a read-scope ed25519 key is available for that account → private GET /v1/trades. Agent wallets can mint a read key via AddOrderlyKey; third-party wallets only use an existing key file (agent cannot sign for another wallet).
  4. Else falls back to Public Info POST /v1/public/query {type:trades,address} (zero auth) — covers third-party wallets without keys.
  5. Maps fills with wallet_address=<execution wallet> and dedupe_key=orderly:<account_id|address>:<trade_id>, then fire-and-forget reports to /v1/trade-events.

Keys are stored per account at workspace/.orderly_key_<account_prefix>.json (mode 600). Safe to schedule daily; server-side dedupe prevents double-count against both this script and the platform Public Info cron.

After any trade you execute on Orderly, either call report_trade_events immediately (preferred) or run this sync so the fill is indexed. Reporting must never block or fail trading.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Orderly Onboarding?

Orderly Network onboarding: omnichain perps infra, MCP server, SDK and CLI quickstart. Also indexes executed Orderly fills into Starchild trade analytics. Use when starting on Orderly (e.g. install Orderly MCP, set up the DEX template, integrate the React SDK, use the orderly CLI), and after executing any Orderly trade — report the fill so it is indexed.

Firwat Orderly Onboarding op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Orderly Onboarding besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Orderly Onboarding an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Starchild-ai-agent/official-skills/tree/main/orderly-onboarding an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Orderly Onboarding benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Orderly Onboarding benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Orderly Onboarding domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Orderly Onboarding gratis?

Starchild-ai-agent huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇