Logo
Learn
  • Explore Course
Build
  • Explore Buildathon
  • Project Archive
Hack
Hack Coming Soon
  • Explore IRL Hackhouse
  • How to Qualify
  • Past Events

Themis

Themis is an AI trading copilot that seals every decision on-chain (OKX X Layer) before it executes -> so you can verify its track record instead of trusting it. Trade by chat, or by hand.

Videos

Description

Reformatted for scanners — tables, bullets, emoji anchors, almost zero prose. Your editor's toolbar has a table button (the grid icon), so the tables will render.


Themis — the trade tribunal ⚖

An AI trading copilot you can verify, not just trust. Put every trade on trial → seal it before it executes → anchor on OKX X Layer. The track record can't be faked.

⚡ Problem → Fix

❌ Today

✅ Themis

AI bots can fake their win rate

Verdict hashed before execution (commit-reveal)

"Trust me" isn't a track record

Anchored on OKX X Layer — anyone can verify

Mid-price fantasy fills

Depth-weighted fills off the real OKX order book

🔁 How it works

Intent → OKX evidence (price · RSI/EMA/ATR · order book) → Tribunal (advocate · skeptic · judge) → Seal (keccak256) → Fill → Anchor on X Layer

🧩 What we built

  • 🗣️ Conversational LLM copilot (streaming + tool-calling) + deterministic-tribunal fallback

  • 📊 Live market terminal — OKX candles + streaming order book (depth · spread · imbalance)

  • ✍️ Manual + agentic trading — both sealed identically

  • ⛓️ On-chain seal anchoring on X Layer (verifiable on OKLink)

  • 👛 Personal agent wallet derived from your OKX wallet (wagmi)

  • 💬 Same copilot in Telegram — memory · /model picker · inline execute

🟢 OKX stack — everything we use

OKX building block

How Themis uses it

X Layer (testnet · chain 1952)

On-chain seal anchoring = the commit-reveal proof · OKB gas

Market Data (v5 API)

Live candles · ticker · order book → evidence, chart, depth-weighted fills

OKX Wallet

Connect + derive the agent wallet (wagmi) · auto-switch to X Layer

x402 / A2MCP

Per-call agentic settlement on X Layer (eip155:1952)

OKB

Native gas for anchoring

OKLink

Public explorer = the verification surface

⛓️ Live proof: oklink.com/x-layer-testnet/tx/0xe4d235…13b3f6 — Accepted on L2, seal hash in the calldata.

🎯 Tracks (2)

  • Finance Copilot — primary

  • Best Product — complete & live (web + Telegram + on-chain)

🔗 Links

Live

trythemis.vercel.app

Code

github.com/manjeetsharma0796/themis

Demo


Progress During Hackathon

<p>Here's <strong>Progress During Hackathon</strong> — same scannable style, milestone table + challenges-solved table + a "live now" list.</p><hr><h3>🏗️ Built ground-up for OKX.AI</h3><p>Themis is a <strong>fresh Next.js codebase</strong> — the tribunal engine, every OKX integration, on-chain anchoring, and <em>two</em> full surfaces (web + Telegram), all shipped during the hackathon and live at <strong>trythemis.vercel.app</strong>.</p><h3>📅 What shipped, in order</h3><table style="min-width: 50px"><colgroup><col style="min-width: 25px"><col style="min-width: 25px"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Phase</p></th><th colspan="1" rowspan="1"><p>Shipped</p></th></tr><tr><td colspan="1" rowspan="1"><p><strong>Core</strong></p></td><td colspan="1" rowspan="1"><p>Tribunal engine (advocate · skeptic · judge) · OKX market data · commit-reveal seals · paper execution · 3-panel console</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Copilot</strong></p></td><td colspan="1" rowspan="1"><p>Streaming LLM copilot (tool-calling) · BYOK + model picker · ruling cards · frictionless onboarding</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>OKX chain</strong></p></td><td colspan="1" rowspan="1"><p>X Layer (chain 1952) + viem · <strong>on-chain seal anchoring</strong> · OKLink links · agent wallet + live balance</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Agentic settlement</strong></p></td><td colspan="1" rowspan="1"><p><strong>x402 v2 / A2MCP</strong> endpoint — verdicts sold to other agents per-call on X Layer</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Market terminal</strong></p></td><td colspan="1" rowspan="1"><p>Live OKX <strong>order book</strong> (depth · spread · imbalance) as tribunal evidence + depth-weighted fills</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Manual trading</strong></p></td><td colspan="1" rowspan="1"><p>Buy/Sell ticket on the chart — sealed + anchored just like agent trades</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Wallet</strong></p></td><td colspan="1" rowspan="1"><p>Agent wallet <strong>derived from your OKX wallet</strong> (wagmi) — same on every device · full wallet menu</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Telegram</strong></p></td><td colspan="1" rowspan="1"><p>The <strong>whole copilot</strong> in chat — memory · <code data-inline="true" spellcheck="false">/model</code> picker · inline execute · serverless webhook</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Durable + shipped</strong></p></td><td colspan="1" rowspan="1"><p>Upstash Redis persistence · deployed to prod · 35s demo video</p></td></tr></tbody></table><h3>🧗 Hard problems we solved</h3><table style="min-width: 50px"><colgroup><col style="min-width: 25px"><col style="min-width: 25px"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Challenge</p></th><th colspan="1" rowspan="1"><p>Fix</p></th></tr><tr><td colspan="1" rowspan="1"><p>Make an AI trader <strong>trustworthy</strong></p></td><td colspan="1" rowspan="1"><p>Commit-reveal — hash the verdict <strong>before</strong> execution, anchor on X Layer</p></td></tr><tr><td colspan="1" rowspan="1"><p>Order book as decoration</p></td><td colspan="1" rowspan="1"><p>Made it <strong>load-bearing</strong> — tribunal cites depth, fills walk the real book</p></td></tr><tr><td colspan="1" rowspan="1"><p>Wallet consistent across devices</p></td><td colspan="1" rowspan="1"><p>Derive the agent key from a deterministic <strong>OKX-wallet signature</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p>Telegram webhook timing out</p></td><td colspan="1" rowspan="1"><p>Ack Telegram instantly, run the copilot in the <strong>background</strong> (<code data-inline="true" spellcheck="false">after()</code>)</p></td></tr><tr><td colspan="1" rowspan="1"><p>Proper wallet adapter</p></td><td colspan="1" rowspan="1"><p>Adopted <strong>wagmi</strong> (EIP-6963, account/chain events) instead of hand-rolling</p></td></tr></tbody></table><h3>✅ Live &amp; verifiable now</h3><ul><li><p>🌐 <strong>trythemis.vercel.app</strong> — web console fully working</p></li><li><p>💬 <strong>@vesper00_bot</strong> — same copilot in Telegram</p></li><li><p>⛓️ <strong>Real on-chain proof:</strong> <code data-inline="true" spellcheck="false">oklink.com/x-layer-testnet/tx/0xe4d235…13b3f6</code> (Accepted on L2)</p></li><li><p>🎬 <strong>3mins demo</strong> — copilot → sealed verdict → manual trade → anchored on X Layer</p></li></ul><hr>

Tech Stack

ReactNextWeb3EthersNodeSolidity

Fundraising Status

<p>we haven't got funded now, as this project is freshly made for OKX hackathon</p>

Team Leader
RRanjeet
GitHub Link
github

GitHub

https://github.com/manjeetsharma0796/themis
Product Category
AIDeFiInfraOther