Skip to content

Request examples#

Ready-to-send JSON payloads for the most common calls. Values are illustrative — adjust symbol, size and times. Field reference: the endpoint pages linked under each example. Full client examples (signing included): github.com/anbotolabs/examples.

All create-order payloads go to Create order unless stated otherwise.

TWAP#

Spread 0.5 BTC over one hour, hybrid style, randomized slices. duration_seconds is required for TWAP and VWAP. By default TWAP, VWAP and IS orders may run a little past duration_seconds to finish, but never past end_time; send "extend_duration": false in params to stop on schedule. Download

{
  "client_order_id": "ORD-2026-0001",
  "exchange": "BINANCE",
  "symbol": "BTC/USDT",
  "asset_category": "SPOT",
  "side": "BUY",
  "quantity": "0.5",
  "strategy": "TWAP",
  "limit_price": "62000",
  "start_time": "2026-09-01T10:00:00Z",
  "end_time": "2026-09-01T11:00:00Z",
  "params": {
    "duration_seconds": "3600",
    "trading_style": "HYBRID",
    "randomize_amount": true
  }
}

VWAP#

Four-hour passive VWAP. Download

{
  "client_order_id": "ORD-2026-0002",
  "exchange": "BINANCE",
  "symbol": "BTC/USDT",
  "asset_category": "SPOT",
  "side": "BUY",
  "quantity": "0.5",
  "strategy": "VWAP",
  "limit_price": "62000",
  "start_time": "2026-09-01T10:00:00Z",
  "end_time": "2026-09-01T14:00:00Z",
  "params": {
    "duration_seconds": "14400",
    "trading_style": "PASSIVE"
  }
}

Limit#

One order at limit_price. Download

{
  "client_order_id": "ORD-2026-0003",
  "exchange": "BINANCE",
  "symbol": "BTC/USDT",
  "asset_category": "SPOT",
  "side": "BUY",
  "quantity": "0.5",
  "strategy": "LIMIT",
  "limit_price": "60500"
}

Market (reduce-only, perpetual)#

Close 0.25 BTC of a perp position at market. Download

{
  "client_order_id": "ORD-2026-0004",
  "exchange": "BINANCE",
  "symbol": "BTC/USDT:USDT",
  "asset_category": "FUTURE",
  "side": "SELL",
  "quantity": "0.25",
  "strategy": "MARKET",
  "params": {
    "reduce_only": true
  }
}

Iceberg#

Show 0.25 BTC clips of a 5 BTC order, about 2 seconds apart. timer_iceberg_delay is the delay between clips in seconds, from 0.25 to 3600 (default 0.25); with randomize_iceberg_timer (default true) each delay is drawn between 80 % and 120 % of it. Both also apply to Scale orders. Download

{
  "client_order_id": "ORD-2026-0005",
  "exchange": "BINANCE",
  "symbol": "BTC/USDT",
  "asset_category": "SPOT",
  "side": "BUY",
  "quantity": "5",
  "strategy": "ICEBERG",
  "limit_price": "61000",
  "clip_size_type": "ABSOLUTE",
  "clip_size_val": "0.25",
  "params": {
    "trading_style": "PASSIVE",
    "randomize_amount": true,
    "timer_iceberg_delay": 2,
    "randomize_iceberg_timer": true
  }
}

POV (percentage of volume)#

Sell 2 BTC at 5 % of the market volume, never below 60 000. pov_ratio is required: a percent of market volume, from 0.01 to 33. pov_risk sets how far the order may fall behind its target before it sends the next child order: LOW (2 %), DEFAULT (7.5 %) or HIGH (15 %). Download

{
  "client_order_id": "ORD-2026-0009",
  "exchange": "BINANCE",
  "symbol": "BTC/USDT",
  "asset_category": "SPOT",
  "side": "SELL",
  "quantity": "2",
  "strategy": "POV",
  "limit_price": "60000",
  "params": {
    "pov_ratio": 5,
    "pov_risk": "DEFAULT",
    "trading_style": "HYBRID"
  }
}

Implementation shortfall#

Urgency drives the schedule (LOW / MEDIUM / HIGH). Download

{
  "client_order_id": "ORD-2026-0006",
  "exchange": "BINANCE",
  "symbol": "BTC/USDT",
  "asset_category": "SPOT",
  "side": "BUY",
  "quantity": "0.5",
  "strategy": "IS",
  "limit_price": "62500",
  "params": {
    "urgency": "HIGH"
  }
}

Scale (ladder)#

Ten resting orders laddered from 61 000 down to 59 000. Download

{
  "client_order_id": "ORD-2026-0007",
  "exchange": "BINANCE",
  "symbol": "BTC/USDT",
  "asset_category": "SPOT",
  "side": "BUY",
  "quantity": "2",
  "strategy": "SCALE",
  "clip_size_type": "ORDER_COUNT",
  "clip_size_val": "10",
  "params": {
    "start_ladder_price": "61000",
    "end_ladder_price": "59000",
    "ladder_direction": "downwards",
    "ladder_profile": "linear",
    "size_skew": 1
  }
}

Triggered order#

TWAP that starts only once the price trades above 63 000. Download

{
  "client_order_id": "ORD-2026-0008",
  "exchange": "BINANCE",
  "symbol": "BTC/USDT",
  "asset_category": "SPOT",
  "side": "BUY",
  "quantity": "0.5",
  "strategy": "TWAP",
  "limit_price": "64000",
  "params": {
    "duration_seconds": "1800",
    "trigger": {
      "trigger_price": "63000",
      "trigger_condition": "ABOVE"
    }
  }
}

Placement in basis points#

Rest each slice 5 bps from the midpoint, on its own side of the book, and cancel it once the market has moved away and it sits 20 bps from the midpoint. With depth_mode: BPS_SPREAD, placement and cancel are whole basis points from the midpoint and both are required: placement from 1 to 500, cancel above placement and at most 1000. Without depth_mode (or with LEVEL) they count levels of the order book. Download

{
  "client_order_id": "ORD-2026-0010",
  "exchange": "BINANCE",
  "symbol": "BTC/USDT",
  "asset_category": "SPOT",
  "side": "BUY",
  "quantity": "0.5",
  "strategy": "TWAP",
  "limit_price": "62000",
  "params": {
    "duration_seconds": "3600",
    "trading_style": "PASSIVE",
    "placement_infos": {
      "placement_mode": "CUSTOM",
      "depth_mode": "BPS_SPREAD",
      "placement": "5",
      "cancel": "20"
    }
  }
}

Multi-leg pair#

Buy BTC / sell ETH, 10 000 USD each leg, BTC leading — Create multi legs order. Download

{
  "client_order_id": "PAIR-2026-0001",
  "algo": "PAIR",
  "legs": [
    {
      "exchange": "BINANCE",
      "symbol": "BTC/USDT",
      "asset_category": "SPOT",
      "side": "BUY",
      "target_value": "10000",
      "ccy": "USD",
      "limit_price": "62000",
      "strategy": "TWAP",
      "params": {
        "duration_seconds": "1800",
        "trading_style": "HYBRID",
        "is_leading": true
      }
    },
    {
      "exchange": "BINANCE",
      "symbol": "ETH/USDT",
      "asset_category": "SPOT",
      "side": "SELL",
      "target_value": "10000",
      "ccy": "USD",
      "limit_price": "2400",
      "strategy": "TWAP",
      "params": {
        "duration_seconds": "1800",
        "trading_style": "HYBRID",
        "is_leading": false
      }
    }
  ],
  "start_time": "2026-09-01T10:00:00Z",
  "end_time": "2026-09-01T10:30:00Z"
}

Batch of orders#

Three TWAPs in one call — Create many orders. Download

{
  "orders": [
    {
      "client_order_id": "BASKET-1-BTC",
      "exchange": "BINANCE",
      "symbol": "BTC/USDT",
      "asset_category": "SPOT",
      "side": "BUY",
      "quantity": "0.5",
      "strategy": "TWAP",
      "params": {
        "duration_seconds": "3600"
      }
    },
    {
      "client_order_id": "BASKET-1-ETH",
      "exchange": "BINANCE",
      "symbol": "ETH/USDT",
      "asset_category": "SPOT",
      "side": "BUY",
      "quantity": "8",
      "strategy": "TWAP",
      "params": {
        "duration_seconds": "3600"
      }
    },
    {
      "client_order_id": "BASKET-1-SOL",
      "exchange": "BINANCE",
      "symbol": "SOL/USDT",
      "asset_category": "SPOT",
      "side": "BUY",
      "quantity": "150",
      "strategy": "TWAP",
      "params": {
        "duration_seconds": "3600"
      }
    }
  ]
}

Cancel many#

By Anboto id or by your client id — Cancel many. Download

{
  "orders": [
    {
      "order_id": 123456
    },
    {
      "client_order_id": "BASKET-1-ETH"
    }
  ]
}