My AI approved a trade. Why did nothing fill?
Allowed is not sent, and sent is not filled. Follow one trade ID from the rules to the brokerage's record.
By Galore. Uses practice records only. Nothing here reads an account or places a trade.
Find the last step you can prove
- Rules: find the rules ID the person approved, its version, the account and the AI. Text from the AI is not the person's approval.
- Check: find the allow, deny or hold for this exact trade. The AI saying "approved" does not count.
- Send: match the stable trade ID to the brokerage's order ID. A timeout means unknown, not rejected.
- Brokerage: look up the same environment, account and order in the brokerage's own records. Keep accepted, open, partly filled, filled, canceled and rejected apart.
- Shares filled: a canceled order can still be partly filled. Keep those shares.
At Alpaca you can look up an order by your ID or theirs. See Alpaca's order lifecycle for current states.
Run a read-only check
Download order_evidence.py and its ten tests. Python 3.10 or later, standard library only. Read both, then run them in an empty folder.
python3 order_evidence.py
python3 order_evidence_test.py
# Optional: inspect a local practice record you control
python3 order_evidence.py local-record.jsonThe first command reproduces the ten expected results. The third reads one local file only. Never post keys or account data in a support message.
| Case | What the records show | Shares filled |
|---|---|---|
| approved_only | no_submission_recorded | Not established |
| submission_timed_out | unknown | Not established |
| accepted_not_filled | open | 0 |
| partial_fill | partial | 4 |
| fully_filled | filled | 10 |
| broker_rejected | rejected | 0 |
| canceled_after_partial_fill | canceled | 4 |
| denied_but_broker_filled | filled | 10 |
| wrong_account | inconsistent_evidence | Not established |
| false_fill_status | inconsistent_evidence | Not established |
What it does
It flags records that disagree on account, environment, order ID or quantity. If a deny conflicts with a real fill, it keeps the fill and flags the conflict. It never authorizes resubmission. A missing send record only means the file has none, not that no order exists.
It trusts its input, checks no signatures and contacts no brokerage. This is teaching code, not a Galore SDK.
Where Galore fits
Galore checks each AI trade against the rules the person approved and keeps the brokerage's answer with it. Galore runs live with real money at the five supported brokerages.
Pilot checklist · Retry without guessing · Trade history · Source
Read this guide as Markdown · Combined developer reference
Reviewed 4 December 2026
