TRADING DOT PAPER LAB v1.0 | 2026-10-02
Guide: https://depthfirst.dev/labs/chatgpt-dots-trading-guide.html
Educational paper-only implementation. No live endpoint or live toggle.
Python 3.10+; install tzdata on Windows: python -m pip install tzdata
Run offline: python -m unittest test_paper_bot.py
Run synthetic exercise: python paper_bot.py demo
No account is needed for those commands. Synthetic values are not market prices.

The optional paper adapter is implemented and mock-tested, NOT authenticated
or fill-tested against an Alpaca account for this publication. Review the source
and guide before using it. Set-PaperKeys.ps1 stores private credentials using
Windows user/machine encryption. Processes running as that user can decrypt them.
Do not upload secret files to a dot, repository, or shared drive.

Run-PaperLab.ps1 defaults to read-only check mode. Mode paper sends simulated
orders only, at most one handled decision per month. The scheduler also defaults
to read-only. It requires Windows, a logged-in user, and an awake computer.
It is not installed by downloading or reading this bundle.

STOP: python paper_bot.py stop
Then disable Depthfirst-Paper-Trend-Lab in Windows Task Scheduler.
Reconcile broker orders/positions separately. Stop Dots Activity and Scheduled
work separately. STOP does not cancel an accepted order or close a position.

This implementation uses adjusted monthly closes, next-session 10:00-10:30 ET
DAY limit orders, whole shares and idle cash. It does NOT replicate the cited
historical index study or establish profitability. Failed and partial orders
need human reconciliation. Never clear state or change IDs to force a retry.

Original code and teaching text: CC BY 4.0, Shafi / depthfirst.
No warranty; independently review all code and financial assumptions.
