🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Orderly Trading Orders

by @tarnadas

Place, manage, and cancel orders using REST API or SDK hooks. Covers market, limit, IOC, FOK, POST_ONLY order types and batch operations

Versionv1.0.0
Installs1
⚑ When to Use
TriggerAction
- Implementing order placement logic
- Managing order lifecycle
- Creating automated trading bots
πŸ’‘ Examples

import { signAsync } from '@noble/ed25519';

async function placeOrder(order: OrderRequest) { const timestamp = Date.now(); const body = JSON.stringify(order); const message = ${timestamp}POST/v1/order${body};

const signature = await signAsync(new TextEncoder().encode(message), privateKey);

// Encode as base64url (browser & Node.js compatible) const base64 = btoa(String.fromCharCode(...signature)); const base64url = base64.replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');

const response = await fetch('https://api.orderly.org/v1/order', { method: 'POST', headers: { 'Content-Type': 'application/json', 'orderly-timestamp': String(timestamp), 'orderly-account-id': accountId, 'orderly-key': ed25519:${publicKeyBase58}, 'orderly-signature': base64url, }, body, });

return response.json(); }

// Place a limit buy order const order = await placeOrder({ symbol: 'PERP_ETH_USDC', side: 'BUY', order_type: 'LIMIT', order_price: 3000, order_quantity: 0.1, });

βš™οΈ Configuration

  • Orderly account registered
  • Ed25519 API key with trading scope
  • Sufficient collateral in account
  • View on ClawHub
    TERMINAL
    clawhub install orderly-trading-orders

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’