commandagi 0.6.10

The CommandAGI SDK for Rust: the platform client (agent threads, live sessions on a simulated world) and CommandAGI documents (a schematic, a 3D part …) declared as code. No dependencies.
Documentation
{
 "records": [
  {
   "kind": "note",
   "t": "2026-10-01T13:30:00.000Z",
   "text": "Example data: a fictional instrument and a paper account. Not a market, not advice."
  },
  {
   "kind": "quote",
   "t": "2026-10-01T13:30:00.000Z",
   "sym": "NRTH",
   "last": "185.09",
   "bid": "185.05",
   "ask": "185.13",
   "vol": "400"
  },
  {
   "kind": "book",
   "t": "2026-10-01T13:30:01.000Z",
   "sym": "NRTH",
   "bids": [
    [
     "185.05",
     "300"
    ],
    [
     "185.00",
     "120"
    ]
   ],
   "asks": [
    [
     "185.13",
     "200"
    ]
   ]
  },
  {
   "kind": "trade",
   "t": "2026-10-01T13:30:02.000Z",
   "sym": "NRTH",
   "price": "185.10",
   "qty": "25",
   "side": "buy"
  },
  {
   "kind": "news",
   "t": "2026-10-01T13:30:03.000Z",
   "sym": "NRTH",
   "headline": "Northwind opens a second plant",
   "tone": "good"
  },
  {
   "kind": "position",
   "t": "2026-10-01T13:30:04.000Z",
   "sym": "NRTH",
   "qty": "120",
   "avg": "181.5"
  },
  {
   "kind": "order",
   "t": "2026-10-01T13:31:00.000Z",
   "id": "o-a1b2c3d4e5f6",
   "sym": "NRTH",
   "side": "buy",
   "qty": "10",
   "type": "limit",
   "limit": "184.50",
   "tif": "day",
   "venue": "alpaca-paper",
   "mode": "paper",
   "by": "person:ada",
   "grant": "g-paper",
   "connection": "conn-1"
  },
  {
   "kind": "order-update",
   "t": "2026-10-01T13:31:01.000Z",
   "order": "o-a1b2c3d4e5f6",
   "state": "accepted",
   "mode": "paper",
   "ref": "alp-1001"
  },
  {
   "kind": "amend",
   "t": "2026-10-01T13:32:00.000Z",
   "id": "m-a1b2c3d4e5f6",
   "order": "o-a1b2c3d4e5f6",
   "sym": "NRTH",
   "side": "buy",
   "qty": "10",
   "type": "limit",
   "limit": "184.80",
   "tif": "day",
   "venue": "alpaca-paper",
   "mode": "paper",
   "ref": "alp-1001",
   "by": "person:ada",
   "grant": "g-paper",
   "connection": "conn-1"
  },
  {
   "kind": "amend-update",
   "t": "2026-10-01T13:32:01.000Z",
   "amend": "m-a1b2c3d4e5f6",
   "state": "requested",
   "mode": "paper",
   "ref": "alp-1002"
  },
  {
   "kind": "fill",
   "t": "2026-10-01T13:33:00.000Z",
   "sym": "NRTH",
   "side": "buy",
   "price": "184.80",
   "qty": "4",
   "by": "person:ada",
   "order": "o-a1b2c3d4e5f6",
   "mode": "paper",
   "ref": "fill-1",
   "at": "2026-10-01T13:32:40.000Z"
  },
  {
   "kind": "order-update",
   "t": "2026-10-01T13:33:00.000Z",
   "order": "o-a1b2c3d4e5f6",
   "state": "partial",
   "mode": "paper",
   "ref": "alp-1002",
   "filled": "4",
   "avg": "184.80",
   "src": "venue"
  },
  {
   "kind": "account",
   "t": "2026-10-01T13:33:00.000Z",
   "venue": "alpaca-paper",
   "mode": "paper",
   "connection": "conn-1",
   "currency": "USD",
   "status": "ACTIVE",
   "value": "100739.20",
   "buyingPower": "198521.60",
   "cash": "99260.80",
   "dayChange": "-12.40",
   "dayChangePct": "-0.000123",
   "positions": [
    {
     "sym": "NRTH",
     "side": "long",
     "qty": "4",
     "avg": "184.80",
     "price": "185.10",
     "value": "740.40",
     "pl": "1.20",
     "plPct": "0.0016"
    }
   ],
   "open": [
    {
     "ref": "alp-1002",
     "client": "o-a1b2c3d4e5f6",
     "order": "o-a1b2c3d4e5f6",
     "sym": "NRTH",
     "side": "buy",
     "type": "limit",
     "tif": "day",
     "status": "partially_filled",
     "state": "partial",
     "qty": "10",
     "filled": "4",
     "avgPrice": "184.80",
     "limit": "184.80"
    }
   ],
   "problems": [
    "Example: one page of executions was read."
   ]
  },
  {
   "kind": "cancel",
   "t": "2026-10-01T13:34:00.000Z",
   "id": "x-a1b2c3d4e5f6",
   "venue": "alpaca-paper",
   "mode": "paper",
   "ref": "alp-1002",
   "order": "o-a1b2c3d4e5f6",
   "connection": "conn-1",
   "by": "person:ada",
   "grant": "g-paper"
  },
  {
   "kind": "cancel-update",
   "t": "2026-10-01T13:34:01.000Z",
   "cancel": "x-a1b2c3d4e5f6",
   "state": "requested",
   "mode": "paper"
  },
  {
   "kind": "order-update",
   "t": "2026-10-01T13:35:00.000Z",
   "order": "o-a1b2c3d4e5f6",
   "state": "cancelled",
   "mode": "paper",
   "ref": "alp-1002",
   "filled": "4",
   "avg": "184.80",
   "src": "venue"
  },
  {
   "kind": "order",
   "t": "2026-10-01T13:36:00.000Z",
   "id": "o-0f1e2d3c4b5a",
   "sym": "NRTH",
   "side": "sell",
   "qty": "2",
   "type": "market",
   "tif": "ioc",
   "venue": "sim",
   "mode": "sim",
   "by": "agent:trader",
   "grant": "g-sim"
  },
  {
   "kind": "fill",
   "t": "2026-10-01T13:36:00.000Z",
   "sym": "NRTH",
   "side": "sell",
   "price": "185.05",
   "qty": "2",
   "by": "agent:trader",
   "order": "o-0f1e2d3c4b5a",
   "mode": "sim"
  },
  {
   "kind": "order-update",
   "t": "2026-10-01T13:36:00.000Z",
   "order": "o-0f1e2d3c4b5a",
   "state": "filled",
   "mode": "sim"
  }
 ]
}