Files
Anubis/tests/Anubis.Tests/Fixtures/alpaca-trading/order-crypto.json
T
Alby96andClaude Opus 5.5 1419457fe4 Add the trading core: ledger, simulator, order manager, reconciliation (refs #26 #27 #28 #29 #30)
Phase 3 needs books the bot can trust before any strategy trades. This adds:
- schema 0003: executions, order events, trades, residues, account status,
  reconciliations, capital changes, applied corporate actions, simulator books;
- the broker interface with the internal simulator and the Alpaca paper and
  OKX demo adapters, all behind the live guard (SPEC 2.2);
- the append-only ledger with lots, trades from zero to zero, residues,
  dividends, splits and reversals; capital entrusted per broker and equity
  photographs with time-weighted return and FX effect;
- the order manager (chasing limit, pacing, sells never abandoned, server
  stops, breached-stop rule) and the reconciler with prudent mode;
- the trading service wired into the host, off in demo mode and in tests.

Ids made with one clock in the same millisecond now carry a counter (RFC 9562
method 1): two lots of one order kept a random order, which broke LIFO.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 20:29:02 +01:00

37 lines
931 B
JSON

{
"asset_class": "crypto",
"asset_id": "a1733398-6acc-4e92-af24-0d0667f78713",
"canceled_at": null,
"client_order_id": "5b5d3d67-06ad-4ffa-af65-a117d0fc5a59",
"created_at": "2023-12-12T22:36:51.337711497Z",
"expired_at": null,
"extended_hours": false,
"failed_at": null,
"filled_at": null,
"filled_avg_price": null,
"filled_qty": "0",
"hwm": null,
"id": "38e482f3-79a8-4f75-a057-f07a1ec6a397",
"legs": null,
"limit_price": "2100",
"notional": null,
"order_class": "",
"order_type": "limit",
"qty": "0.02",
"replaced_at": null,
"replaced_by": null,
"replaces": null,
"side": "buy",
"source": null,
"status": "pending_new",
"stop_price": null,
"submitted_at": "2023-12-12T22:36:51.313261061Z",
"subtag": null,
"symbol": "ETH/USD",
"time_in_force": "gtc",
"trail_percent": null,
"trail_price": null,
"type": "limit",
"updated_at": "2023-12-12T22:36:51.337754768Z"
}