Ōshio

Margin trading on Sui that anyone can use, open leveraged positions in a few clicks.

HackMoney 2026Shipped January 30, 2026Prize winner Dormant#defi#payments#infra#sui
Visit Repo
Ōshio banner

About

Ōshio is a margin trading platform on Sui, designed to make leveraged trading as simple as a swap. Existing margin platforms overwhelm users with graphs, order books, and dozens of parameters. Ōshio strips all of that away: pick a pair, choose your collateral, set your leverage with a slider, and trade. One screen to open a position, one dashboard to manage everything.

Under the hood, Ōshio connects to DeepBook V3 margin pools on Sui mainnet. Users can go long or short with leverage on pairs like SUI/USDC, DEEP/USDC, and WAL/USDC. Live oracle prices stream in real-time from Pyth Network, and the UI shows projected risk ratios, liquidation prices, and borrowing rates before you confirm, so you always know your exposure without digging through advanced panels. Collateral can be added or withdrawn from open positions at any time, with an instant preview of how it changes your risk.

How it's made

Ōshio is a frontend-only application built with Next.js 16 and styled with Tailwind CSS v4 and shadcn/ui.

The core trading engine uses the @mysten/deepbook-v3 TypeScript SDK to construct Programmable Transaction Blocks (PTBs) for margin operations: creating margin managers, depositing collateral, borrowing, placing market orders, repaying debt, and withdrawing funds. A key architectural constraint is that creating a new margin manager and then using it (borrow + order) requires two separate transactions, the manager must become a shared on-chain object before it can be referenced, so the app shows multi-step transaction sequences transparently for the user.

Price feeds come from Pyth Network's Hermes service via Server-Sent Events (SSE), giving the UI real-time streaming prices without polling. Risk calculations (risk ratio, liquidation price, max leverage) are computed locally using on-chain margin parameters queried through simulateTransaction (Sui TS SDK) calls, this lets us read contract state (pool liquidity, manager balances, interest rates) without submitting actual transactions. Wallet connection is handled by @mysten/dapp-kit-react.

Prizes

  • Sui · Notable Projects · Notable Projects

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

DormantLast push 300 days ago

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

DeepBook Margin UI

Trading platform for DeepBookV3 and DeepBook Margin Sui protocols implemented in SolidJS

Sui-Intent

Sui-Intents: Users sign goals, Solvers execute via DeepBook. Built with Sui Move.

SuiStrategy

SuiStrategy is a DeFi protocol on Sui for automated yield strategies and cross-chain swaps.