Inspiration
Most people never touch the stock market, and the ones who do are often handed a black box: an AI says "buy" and gives no reason. We wanted the opposite. Coin Board is an AI trading assistant that explains itself, is stopped by hard safety rules, and only plays with paper money. We pictured a board of directors where specialists each give an opinion and a chair makes the final call, then added PayPal so money could move in and out like it would in a real product.
What it does
Coin Board is an AI "board of directors" for paper trading. Four specialist analysts report to a reasoning-model Chair, which decides buy, sell or ignore:
- Market analyst: technical indicators
- Forecast analyst: Kronos simulates several 5-day price futures, and the median is the forecast and the middle 80% is the range
- Sentiment analyst: FinBERT scores the tone of every news headline, and serious news (investigations, lawsuits, fraud) blocks buying
- Company analyst: fundamentals
A rule-based Risk Firewall runs on the server and can block anything the AI proposes: position size, loss per trade, daily loss, confidence, cash and news risk. Sells and stop-loss exits are never blocked.
The Vault splits each day's profit automatically. If a day's profit is $P$, then
$$P = \underbrace{rP}{\text{reserve}} + \underbrace{wP}{\text{withdrawable}} + \underbrace{(1-r-w)P}_{\text{reinvested}}$$
The reserve refills later losses, and a large drawdown pauses trading until you resume.
Money moves through PayPal: funds are added with the PayPal Checkout button (Orders API, captured on the server) and profit is withdrawn with PayPal Payouts. This all runs in the PayPal sandbox with paper money.
You can also let it run on its own. A watchlist scanner screens up to 200 stocks, reviews the best candidates in depth, and in autopilot mode trades by itself. Every tab updates live over a server-sent event stream.
How we built it
- Backend: Python and FastAPI, with SQLite for the vault, trades and learning data.
- Frontend: a single static page with a searchable stock picker, live charts, an evidence tab listing every article the sentiment analyst read, a prediction tab and a detailed explanation tab.
- AI: Kronos-small for forecasting, FinBERT for sentiment, and any OpenAI-compatible reasoning model as the Chair (we use Groq's
openai/gpt-oss-120b). An optional local backup model (for example Ollama) can take over if the main one fails. - Student model: a small numpy classifier we built that learns from the main model's decisions, from real trade outcomes and from the user's approvals. It earns more responsibility in stages, from apprentice to second voice to decider, and is demoted automatically if its results slip behind the main model.
- Payments: PayPal Orders API v2 with the JavaScript SDK buttons, and the Payouts API for withdrawals.
- Data: yfinance for free market data and news.
- Testing: a pytest suite with a fake PayPal server, run through GitHub Actions.
Challenges we ran into
- Rate limits. A single hosted model can run out mid-session. We built a fallback chain of main model, backup model, student model and a fixed rule, so the board can always reach a decision.
- Trusting an AI with money. We never let the model be the last line of defense. The Risk Firewall lives on the server, and sells and stop-losses can never be blocked.
- Payment safety. The server sets every amount itself, only credits orders it created, credits each order once, and checks that PayPal's captured amount matches. A payout is sent before money leaves the vault, so a failed payout loses nothing, and the PayPal secret never reaches the browser.
- Earning trust honestly. Promoting the student model purely on time would have been misleading. Promotion needs enough observed decisions, agreement with the main model, and past results at least as good as the main model's.
- Unofficial, delayed data. yfinance is free but unofficial, so the app labels demo and baseline modes clearly instead of pretending.
Accomplishments that we're proud of
- A fully working loop from analysis to a safe decision to a paper trade to a PayPal deposit or payout.
- Every decision is explainable: you can see the article, the analyst reports, and which safety checks passed.
- A student model that earns its role from evidence, with automatic demotion.
- The app works with no keys at all in demo mode, so anyone can try it in minutes.
- 24 automated tests passing.
What we learned
- AI decisions are much easier to trust when the safety rules sit outside the AI.
- Money flows need to be designed for failure first: charge, pay out and record in an order where a failure loses nothing.
- Explanations matter as much as predictions. Showing the evidence changed how the product felt.
- Combining a foundation forecasting model, a sentiment model and a reasoning model works best when each one has a narrow job.
What's next for Coin
- Switch from the PayPal sandbox to live payments, with proper compliance and limits.
- Connect a real brokerage for live trading, keeping the Risk Firewall in front of it.
- Add more analysts (macro, options flow, earnings calls) and more assets.
- Backtest the whole board on historical data and publish the results.
- Add a mobile-friendly view and notifications for approvals.
Paper money and PayPal sandbox only. Not financial advice.