Skip to content

orville-wright/bespin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

652 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bespin - City in the clouds

Bespin

An Agentic AI Quant Decison-and-Support Stock Market system

Bespin is an Agentic AI quantitative Stock trading analysis platform that aggregates real-time market data from many financial APIs and many sources, applies ML/AI NLP sentiment analysis, and processes insights via many data / computational AI pipelines for identifying actionable trading opportunities.

Bespin's unit of work is a candidate opportunity, not a signal. not speed. Each candidate has:

  • Discovery metadata : (when it first surfaced, what signal flagged it)
  • Evidence accumulation : (every news item, filing, volume event, options flow that touches this name)
  • Thesis statement : (what's the trade idea, in your own words)
  • Invalidation criteria : (what would kill this thesis)
  • Aging and staleness : (when does this candidate timeout if no further evidence?)
  • If acted on: entry price, position size, evolving thesis updates, exit criteria
  • Post-mortem (what happened, was the thesis right, what would you change)

This is fundamentally different from a "buy signal generator." and a market trend "trade execution iPhone" app. It's closer to a personal equity Micro-Quant research AI team that never sleeps, reads everything, searchs for structural patterns in deep datasets and computes strategies.

Bespin allows you to become a Micro-Quant, to operate in segments where analytical work is the binding constraint on the quality of your decisions, rather than someone else's HFT speed & infrastructure or size being the binding constraint on your opportunity set.

Bespin trys to "give an individual what Big Quant Firms have"

  • Quants don't actually have magic. They have:
  1. Data access — Today, feeds you can mostly approximate with scraping, public APIs, and a modest budget for paid feeds (SEC EDGAR, options data, fundamentals)
  2. Computational infrastructure — This has collapsed in cost; what required a server farm in 2010 runs on a laptop in 2026
  3. Statistical and ML tooling — open-source, free, and in many cases better than what proprietary shops were using a decade ago
  4. Domain experience — Quants accumulate this. Individuals can also accumulate this, but there is no shortcut
  5. Specific strategies they've validated — secret, but the kinds of patterns they look at are extensively documented in academic finance literature and post-mortems from former employees

Items 1-3 are commodity now.
Item 4 is is what Besping builds.
Item 5 is partially recoverable from the public literature if you read enough of it.
The thing quants don't share publicly is which specific signal-feature combinations they currently find profitable. That's their actual edge, and its very difficut to replicate. But the toolkit — the methodology, the data, the analytical frame — is much more accessible than the secrecy around the Quant's work suggests. The secrecy creates an illusion that there's some special sauce; mostly there's just a lot of careful, patient, methodical work applied to widely-available data.

Bespin's goal is "personal analytical capability", rather than an "edge against competitors,". Several key design decisions are very clear:

  1. Optimized for understanding, not for market-beating output.
    The system's job is to make you smarter about specific situations, not to hand you trades. The output is comprehension, with trade decisions as a downstream consequence. Features are designed around the question "does this help me see something I couldn't see before?" rather than "does this generate alpha?"
  2. Coverage of the universe matters less than depth on the names you're looking at.
    If you're not racing to surface candidates first, you don't need to monitor 5,000 stocks. You can run Bespin against a curated universe — say, 200-500 names that pass some basic quality screen — and do far deeper analysis on each. The breadth-vs-depth tradeoff tilts heavily toward depth when you're not competing on first-detection. signal basis
  3. Completness first. The system can be slow and that's fine.
    A backtest that takes overnight to run is fine. A daily report that takes an hour to generate is fine. Bespin is not trading on the output within minutes, so latency doesn't matter. This means it can use computationally expensive analysis (LLM-based reasoning, complex feature engineering, simulation) without engineering the pipeline for speed.
  4. Bespin helps to make choices that institutional quants can't.
    A real fund can't trade based on "this looks weird and the CEO's last earnings call had a tone shift." That's not auditable, not backtestable, not defensible to investors. An individual micro-Quant doesn't need any of those. He can incorporate qualitative judgment, weird hunches, and one-off observations into a Bespin dossier and let Bespin own pattern-recognition and do the integration. This isa big advantage of being personal Micro-scale Quant.
  5. Bespin isn't a system to be perfectly right — It's built to not miss unqiue opportunties.
    The downside scenario isn't "Bespin gave me a bad trade." It's "Bespin didn't surface a situation I would have wanted to know about." It's optimized for recall (don't miss interesting candidates) over precision (every surfaced candidate is a winner). False positives waste your time; false negatives waste opportunity. As a personal tool, false positives are cheap to filter manually.

Bespin is anchored on the methodology layers of - López de Prado's Advances in Financial Machine Learning.
— it's the most honest book about what actually goes wrong when you try to apply ML and I to finance, and the failure modes it describes (look-ahead bias, backtest overfitting, non-stationary features) are exactly what bite ML/AI Trading support tools (like Bespin) if you're not careful. It's not a how-to-make-money book; it's a how-to-not-fool-yourself book, which is more valuable.

Bespin in not trying to beat sophisticated competitors, or other traders, or quickly snap onto a day-trend.
Bespin's value is in the deep analytical work — Work that 99% of traders dont do, cant do, won't do, don't have the cycles/time to do. - The work of finding the candidates, building the dossiers, tracking signal performance over time, capturing the post-mortems. That work is jurisdiction-agnostic.

  • It allows you to operate in segments where sophistication isn't the binding constraint, by building the analytical capability to make good decisions in those segments.
  • The 'edge' isn't beating someone — it's being correctly equipped for the kind of work you want to focus on.

Bespin is a core capability system, not a competitive project, not a trade execution app:

  • The output is your analytical leverage, not your win rate against some implied opponent.
  • The right segments are where analytical work is the rate-limiting factor on decision quality.
  • The right design priorities are depth, comprehension, recall, and personal adaptation — not speed, scale, or generality.
  • The right success metric is "did I understand this situation well enough to make a decision I'm confident in" rather than "did I beat the market this quarter."

Some concepts are in the roadmap...

  1. Convert tacit knowledge into structured features
    • What makes a candidate "ripe" or "fake" tacit knowledge converted into explicit coded logic
  2. Memory and pattern recognition across time
    • Cross-time pattern recognition is computationally cheap but adds significant context. Currently, each day's analysis is somewhat independent. Besping needs to remember patterns and trigger events and correlate backward in time.
  3. Calibration tracking
    • Every signal Bespin produces should have a track record. This lets you weigh new signals by their historical base rates rather than treating each as equally promising. It signals when a previously-working signal stops working — which is the moment to stop trusting it.
  4. A "thesis decay" detector for open positions
    • When a signal is now gone or reversed, the system should flag that even if the position is still profitable. Giving clear trigger points on when to exit a winner - whcih is "when the original thesis is no longer the reason you're holding it."
  5. LLM-augmented dossier generation.
    • Proper LLM integration to provide (for any candidate), a one-page brief that captures everything material in the public record.
  6. Adversarial review
    • Gnerates the Bull case for each candidate and also the explicit Bear case, including the specific evidence that would invalidate the thesis. A system that surfaces both, side by side, forces better decisions.
  7. Stop and target computation
  8. Dynamic position/trade sizing.
    • Equal-size positions, Kelly-sized, conviction-weighted, or a structured approach. Dynamically test whether signal-strength-weighted sizing improves the risk-adjusted return.
  9. Portfolio level view for Capital recycling.
    • Decision support for how aggressively to compound vs. take chips off the table.
  10. Explicit drawdown protocols
    • Predefined rules for what happens if the system underperforms by X% over Y weeks. Pre-committed rules before a drawdown happens.
  11. Judgement decision journaling
    • Tracked judgment calls about which trades to take from the candidates the Bespin system surfaces. A continiouslt self-generated labeled training dataset of "system surfaced these, here's which ones I rejected and why filtered Human decisons of rejected criteria.
  12. Editible Portfolio Ruleset database of core signal logic
    • Core Trading event-driven catalysts (the OGN-style situations), unusual volume + news latency, insider activity, sector rotations etc.
  13. Enf-to-End "frictional trade cost model" across country domains (USA and NZ).
  14. Dynamic currency computation across country domains (USA and NZ)
  15. Time-of-day awareness across country domains (USA and NZ) and next-session candidate quening workflows.

Dual Domain usage (USA and NZ).
Bespins gives something most retail Quants don't have: two independent users acting on the same signals across different jurisdictions, generating two independent samples of execution outcomes. Over time, this gives data that's genuinely informative. If signal X works for USA but consistently underperforms for NZ, that probably tells indicates the signal's edge is narrow enough to be eaten by the NZ higher frictions — useful information about robustness. If a signal works for both NZ and USA despite the friction differential, that's evidence the edge is robust. If a signal works for NZ but not USA, that's diagnostic too (maybe related to specific entry timing, tax treatment biting harder, etc.).

  • This is, in effect, a built-in robustness check that single-user systems lack.
  • It's not formal out-of-sample testing, but it's a useful real-world cousin of it. Besping will track signal performance separately for each USA and NZ user and let do smart AI infernece comparrisions on them. Where they diverge, there's something to learn.

Multi-domain features will requrie...

  1. Per-user configuration profiles
  2. Candidate surfacing that's user-aware / Domain aware
  3. Shared methodology, separated execution tracking
    • The dossiers, signal definitions, and analytical work are common. The trade ledgers, P&L tracking, and post-mortems are per-user.
  4. Peer-to-Peer Dual-brain integrated commnication sub-system
    • When Bespin surfaces a candidate, both USA and NZ domains see each other's reactions, decisions, and rationale. This compounds the analytical work — two brains looking at the same signal, setup will catch things one might miss.
  5. Peer-to-Peer Dual journaling reviews
    • To compare outcomes over time. Same signal, different executions, different results — that's data ! Capturing it evolves signal calibration based on a richer picture than either domsin alone would have.

About

Agentic AI Quant Stock market analysis platform

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors