mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-06 20:41:14 +08:00
- 22 test cases covering full Trader interface - Mock Alpaca server simulating account, positions, orders, clock - Tests: GetBalance, GetPositions, OpenLong, CloseLong, SetStopLoss, SetTakeProfit, CancelStopOrders, CancelAllOrders, IsMarketOpen, FormatQuantity, GetOrderStatus, GetClosedPnL, full trade flow - Edge cases: fractional shares, no-position close, short not supported - Live test skeleton (skipped without env vars) - Cache behavior verification