Orderly One Dex

Create and manage a custom DEX using Orderly One API - deployment, custom domains, graduation, and theming

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 149 · 0 current installs · 0 all-time installs
byMario Reder@Tarnadas
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name and description (create/manage a white‑label DEX) align with the SKILL.md content: API endpoints, fields for branding/domains/deployment/graduation, and the documented workflow for forking/deploying a repo. The skill does not request unrelated credentials or tools.
Instruction Scope
SKILL.md is a detailed API usage guide (endpoints, required fields, file limits, auth-by-signature flow). It does not instruct the agent to read local files, environment variables, or secrets beyond normal wallet signature flows. Ensure any signature or transaction steps are performed via a wallet UI and not by pasting private keys.
Install Mechanism
No install spec or code files are present; this is instruction-only so nothing is written to disk or downloaded during install.
Credentials
The skill declares no required environment variables, credentials, or config paths, which is proportional to a documentation/automation guide for a third‑party REST API. Fields in the API (e.g., privyAppId, walletConnectProjectId) are configuration values for the DEX itself, not platform secrets requested by the skill.
Persistence & Privilege
always:false and default invocation settings are appropriate. The skill does not request persistent system presence or make claims about modifying other skills or global agent settings.
Assessment
This is a documentation-only skill describing the Orderly One DEX API and expected workflows. Before using it: (1) verify you trust the Orderly One endpoints (https://dex-api.orderly.network and the testnet URL) and confirm this matches official Orderly docs; (2) never paste private keys into the agent — authentication should be performed by signing messages with your wallet (WalletConnect/Abstract/etc.); (3) be cautious when uploading branding assets or configuring custom domains and fee-splitting — these actions may trigger GitHub repo forks, deploys, or on‑chain transactions; (4) test everything on the testnet environment first; and (5) if you plan to graduate a DEX, review the graduation/fee split terms and who controls the resulting repo/deploy keys.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk974dwygak25mq8wb469k5qysd82dbxe

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Orderly Network: Orderly One DEX

Orderly One is a white-label DEX platform. Users configure a DEX (name, branding, chains), the API forks a GitHub template repo, and GitHub Actions deploys to GitHub Pages. Graduated DEXs earn fee splits.

When to Use

  • Creating a custom perpetuals DEX
  • Managing DEX deployment, domains, or themes
  • Handling graduation for fee sharing

API Base URLs

EnvironmentBase URL
Mainnethttps://dex-api.orderly.network
Testnethttps://testnet-dex-api.orderly.network

API Categories

Use get_orderly_one_api_info MCP tool for full endpoint details.

CategoryDescriptionKey Endpoints
authWallet signature authentication/api/auth/nonce, /api/auth/verify, /api/auth/validate
dexDEX CRUD, domains, deployment/api/dex, /api/dex/{id}, /api/dex/{id}/custom-domain, /api/dex/{id}/workflow-status
themeAI theme generation/api/theme/modify, /api/theme/fine-tune
graduationDemo → full DEX with fee sharing/api/graduation/status, /api/graduation/fee-options, /api/graduation/verify-tx
leaderboardCross-DEX rankings/api/leaderboard, /api/leaderboard/broker/{brokerId}
statsPlatform statistics/api/stats, /api/stats/swap-fee-config

Create/Update DEX

Both POST /api/dex (create) and PUT /api/dex/{id} (update) use multipart/form-data.

Required Fields

FieldTypeConstraints
brokerNamestring3-30 chars, alphanumeric/space/dot/hyphen

Optional Fields

Chains:

FieldTypeNotes
chainIdsnumber[] (JSON)e.g. [42161, 10, 8453]
defaultChainnumberDefault chain ID

Branding (files):

FieldTypeMax Size
primaryLogoFile250KB
secondaryLogoFile100KB
faviconFile50KB
pnlPoster0..NFile250KB ea

Theming:

FieldTypeNotes
themeCSSstringCSS variables to override default theme
tradingViewColorConfigstringJSON for chart colors

Social:

FieldTypeNotes
telegramLinkstringURL
discordLinkstringURL
xLinkstringURL

Auth/Wallet:

FieldTypeNotes
walletConnectProjectIdstringWalletConnect project ID
privyAppIdstringPrivy app ID
privyTermsOfUsestringURL to terms
privyLoginMethodsstringComma-separated
enableAbstractWalletbooleanEnable Abstract wallet
disableEvmWalletsbooleanDisable EVM wallets
disableSolanaWalletsbooleanDisable Solana wallets

Network:

FieldTypeNotes
disableMainnetbooleanDisable mainnet
disableTestnetbooleanDisable testnet

Trading:

FieldTypeNotes
swapFeeBpsnumber (0-100)Swap fee in basis points (requires "Swap" in enabledMenus)
symbolListstringComma-separated (PERP_ETH_USDC)

Menus:

FieldTypeNotes
enabledMenusstringComma-separated. Options: Trading, Portfolio, Markets, Leaderboard (defaults), Swap, Rewards, Vaults, Points
customMenusstringFormat: "Name,URL;Name2,URL2"

SEO:

FieldTypeConstraints
seoSiteNamestringmax 100 chars
seoSiteDescriptionstringmax 300 chars
seoSiteLanguagestring"en" or "en-US"
seoSiteLocalestring"en_US"
seoTwitterHandlestring"@handle"
seoThemeColorstring"#1a1b23"
seoKeywordsstringmax 500 chars

Other:

FieldTypeNotes
availableLanguagesstringJSON array. Options: en, zh, tc, ja, es, ko, vi, de, fr, ru, id, tr, it, pt, uk, pl, nl
analyticsScriptstringBase64 encoded
enableServiceDisclaimerDialogbooleanShow disclaimer
enableCampaignsbooleanEnable ORDER token campaigns and Points menu
restrictedRegionsstringComma-separated country names (e.g., "United States,China")
whitelistedIpsstringIP whitelist

Response

Create (201): { id, brokerId, brokerName, repoUrl, userId, createdAt }

Update (200): Full DEX object with all fields


Key Workflows

Authentication

  1. POST /api/auth/nonce with { address } → get message to sign
  2. Sign: "Sign this message to authenticate with Orderly One: {nonce}"
  3. POST /api/auth/verify with { address, signature } → get JWT
  4. Use Authorization: Bearer {token} for all requests

Create DEX Flow

  1. Build multipart/form-data with fields above
  2. POST /api/dex → returns { id, brokerId, repoUrl }
  3. Poll GET /api/dex/{id}/workflow-status until conclusion: "success"

Graduation (Fee Sharing)

  1. GET /api/graduation/fee-options → USDC/ORDER amounts + receiverAddress
  2. Transfer tokens on Ethereum, Arbitrum, or Base to receiverAddress
  3. POST /api/graduation/verify-tx with { txHash, chain, chainId, chainType: "EVM", brokerId, makerFee, takerFee, rwaMakerFee, rwaTakerFee, paymentType } → creates broker ID

After broker ID created, finalize admin wallet:

EVM Wallet: 4. Register with Orderly Network API:

  • GET https://api.orderly.org/v1/registration_nonce
  • Sign EIP-712 typed data: { brokerId, chainId, timestamp, registrationNonce }
  • POST https://api.orderly.org/v1/register_account with { message, signature, userAddress, chainType: "EVM" }
  1. POST /api/graduation/finalize-admin-wallet (empty body)

Solana Wallet: 4. Register with Orderly Network API:

  • GET https://api.orderly.org/v1/registration_nonce
  • Sign message with Solana wallet: { brokerId, chainId: 900900900, timestamp, registrationNonce }
  • POST https://api.orderly.org/v1/register_account with { message, signature, userAddress, chainType: "SOL" }
  1. POST /api/graduation/finalize-admin-wallet (empty body)

EVM Multisig/Gnosis Safe: 4. In Safe Wallet → Transaction Builder → create batch:

  • To: Orderly Vault contract (chain-specific)
  • Method: delegateSigner
  • Data: [keccak256(brokerId), userAddress]
  1. Execute on Safe with required signer approvals
  2. POST /api/graduation/finalize-admin-wallet with { multisigAddress, multisigChainId }

Orderly MCP

This skill references the Orderly MCP server. If not installed, see orderly-onboarding skill for setup.

Tool: get_orderly_one_api_info

  • { endpoint: "/api/dex" } - Specific endpoint details
  • { category: "graduation" } - All endpoints in a category
  • {} - Full API overview

Common Issues

IssueSolution
DEX stuck deployingCheck /api/dex/{id}/workflow-runs/{runId} for job failures
Domain not workingCNAME to {org}.github.io, wait for DNS propagation
Graduation verify failsConfirm tx to receiverAddress, wait for confirmations
Logo upload failsCheck file size limits (250KB primary, 100KB secondary)
Invalid CSSValidate themeCSS syntax before submitting

Related Skills

  • orderly-onboarding - Account setup
  • orderly-trading-orders - Trading functionality

Files

1 total
Select a file
Select a file to preview.

Comments

Loading comments…