frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Trader – LLM agent for Robinhood with a Rust safety layer and paper trading

https://github.com/zhangxd6/Trader/
2•zhangxd6•1h ago

Comments

zhangxd6•1h ago
I built this after Robinhood launched their official agentic trading MCP server. The idea: give an LLM access to the Robinhood MCP tools (portfolio, quotes, order placement), but sit a typed Rust safety layer in the middle that hard-enforces risk limits regardless of what the model decides.

  The architecture is a ToolExecutor trait chain:

    LLM → SafetyValidator → ResearchExecutor →
  SimulationExecutor → Robinhood MCP

  Each layer is independent. The SafetyValidator checks
  every order against your
  config (stop-loss, position caps, per-trade USD cap,
  daily trade count, minimum
  cash reserve) and rejects violations before they reach
   the broker. The
  ResearchExecutor intercepts web_search and
  get_stock_news calls and satisfies
  them locally via Yahoo Finance RSS and Brave/DDG — no
  extra API key required for
  the news side. A new get_stock_fundamentals tool
  fetches the real 52-week high,
  volume ratio, and P/E from Yahoo Finance so the LLM
  evaluates buy filters on
  actual data instead of guessing.

  Strategy is defined in YAML as a hybrid: structured
  thresholds enforced by Rust
  plus free-text judgment rules passed verbatim to the
  LLM prompt. You can run
  multiple strategies in parallel, each on its own
  interval. Paper trading uses
  live Robinhood market data against a virtual portfolio
   persisted to disk, with an
  equity curve you can view as an ASCII chart in the TUI
   or export to CSV.

  The audit log writes one JSONL line per cycle with the
   full turn-by-turn
  conversation — system prompt, every tool call and
  result, intermediate LLM
  reasoning, final response — so you can replay and
  inspect exactly what the model
  was thinking.

  Works with any OpenAI-compatible endpoint. I've tested
   with GPT-4o, Claude,
  Groq's llama-3.3-70b (free tier), and locally with
  Ollama qwen2.5:7b. The
  7B local model is borderline for reliable tool
  calling; 14B+ is more consistent.

  The obvious caveat: this is paper-trading software
  that happens to also support
  live mode. I wouldn't run it live without significant
  time in simulation first.
  dry_run: true is the default and the safety layer
  still enforces everything in
  dry-run mode — it just blocks the final order from
  reaching Robinhood.

Why news.Y Combinator still relevant and devs keep coming back to it?

1•ronker-con•36s ago•0 comments

Raising an OpenAI Server

https://byandrev.dev/en/blog/my-son-the-openai-server/
1•mcormik•1m ago•0 comments

ASML Becomes Europe's Most Valuable Stock Ever on AI Boom

https://www.bloomberg.com/news/articles/2026-06-03/asml-becomes-europe-s-most-valuable-stock-ever...
1•tcp_handshaker•2m ago•0 comments

A Post-Quantum Future for Let's Encrypt

https://letsencrypt.org/2026/06/03/pq-certs.html
1•akerl_•2m ago•0 comments

Show HN: Check whether agent logs are independently verifiable

https://whatdidmyagentdo.com
1•jithinraj•3m ago•0 comments

Cover any corner of the QR code to make the decoder latch onto the others

https://mstdn.social/@isziaui/116664559669856869
1•pavel_lishin•3m ago•0 comments

Why Claude Code's Agent Loop Is over 1,400 Lines

https://internals.laxmena.com/p/why-claude-codes-agent-loop-is-over
1•laxmena•4m ago•0 comments

A Rust runtime for React that hits 97k req/s by keeping V8 idle

https://rari.build/blog/building-rari-with-rari
1•skiniks•7m ago•0 comments

Scaling Engineering Without Slowing Delivery

https://rogermarley.com/blog/scaling-without-slowing-delivery/
1•rogermarley•7m ago•0 comments

Tesla retroactively added 'supervised' to FSD contracts owners signed years ago

https://electrek.co/2026/06/03/tesla-retroactively-modified-fsd-contracts-supervised/
2•breve•7m ago•0 comments

Show HN: yadiff, yet another diff viewer, based on pierre's diffshub

https://github.com/baggiiiie/yadiff
1•baggiiiie•8m ago•0 comments

.furry – A Top-Level Domain for Furries

https://www.dotfurry.org/
2•birdculture•8m ago•0 comments

Show HN: Constellation is an open-source Hasura-compatible GraphQL engine in Go

https://nhost.io/blog/introducing-constellation
3•nunopato•8m ago•0 comments

Blue Origin Issues Official Statement on New Glenn Explosion

https://www.universetoday.com/articles/blue-origin-issues-official-statement-on-new-glenn-explosion
1•tcp_handshaker•9m ago•0 comments

European Commission proposes tech sovereignty package

https://ec.europa.eu/commission/presscorner/home/en
2•liotier•9m ago•0 comments

Build 2026: Furthering Windows as the trusted platform for development

https://blogs.windows.com/windowsdeveloper/2026/06/02/build-2026-furthering-windows-as-the-truste...
1•mariuz•10m ago•0 comments

Logicomix and 6 months at my new job

https://avocadoslaw.substack.com/p/logical-thoughts-on-logicomix
1•m_aiswaryaa•12m ago•0 comments

Fixing my ridiculous fridge with a tiny Funnel site

https://tailscale.com/blog/funnel-fridge
1•Brajeshwar•12m ago•0 comments

Companies Are Using Reddit to Manipulate ChatGPT and Google AI Search

https://www.404media.co/companies-are-using-reddit-to-manipulate-chatgpt-and-google-ai-search/htt...
2•SpyCoder77•13m ago•1 comments

Why are so many Show HNs being flagged?

1•866-RON-0-FEZ•13m ago•2 comments

Show HN: Testbump – automated test driven versioning

https://github.com/ivoputzer/testbump
2•ivoputzer•14m ago•0 comments

Dotnet-slopwatch – detect when AI coding agents "fix" problems by cheating

https://github.com/Aaronontheweb/dotnet-slopwatch
2•bastijn•16m ago•0 comments

A victory for digital common sense: Bavaria's deal with Microsoft falls through

https://www.abendzeitung-muenchen.de/bayern/sieg-fuer-die-digitale-vernunft-bayern-deal-us-softwa...
2•eigenspace•17m ago•1 comments

SemiAnalysis: TCO of Space Datacenters

https://newsletter.semianalysis.com/p/to-boldly-go-the-case-for-space-datacenters
1•samber•20m ago•0 comments

Mutation Testing in Haskell

https://cs-syd.eu/posts/2026-06-03-mutation-testing-in-haskell
2•Norfair•22m ago•0 comments

CI caching is not one cache

https://zozo123.github.io/gha-cache-field-guide/
1•zozo123-IB•22m ago•0 comments

GPS satellites have broadcast a "numbers station" in their public signals

https://mastodon.social/@sjmurdoch/116681186650836098
1•pavel_lishin•23m ago•0 comments

Show HN: Division Swarm, the OS for Multi-Agent Systems

https://github.com/division-sh/swarm
1•vn0m•24m ago•0 comments

Signal Struggles on Trains Widespread

https://www.ofcom.org.uk/phones-and-broadband/coverage-and-speeds/signal-struggles-on-trains-wide...
1•berlianta•24m ago•0 comments

Qwen 3.7 Plus

https://artificialanalysis.ai/models/qwen3-7-plus
3•theanonymousone•25m ago•0 comments