BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/dedevs-ui/defi-orderbook

defi-orderbook

dedevs-ui/defi-orderbook
FreeComponent

Defi orderbook component

See it running

Open the demo on dedevs-ui

ui.dedevs.com/components/defi-orderbook
Open
This registry sends X-Frame-Options, so its page cannot be embedded here. The link is the same page the frame would have shown.

Install it

npx shadcn@latest add https://ui.dedevs.com/r/defi-orderbook.json

Source

packages/defi/orderbook.tsxui.dedevs.com/r/defi-orderbook.json · first 6 KB
1"use client"
2
3import { useState, useEffect } from "react"
4import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
5import { Badge } from "@/components/ui/badge"
6import { TrendingUp, TrendingDown, Activity } from 'lucide-react'
7
8interface OrderBookEntry {
9 price: number
10 amount: number
11 total: number
12 change?: number
13}
14
15interface OrderBookProps {
16 pair?: string
17 exchange?: string
18 className?: string
19}
20
21export function OrderBook({
22 pair = "ETH/USD",
23 exchange = "Coinbase",
24 className = ""
25}: OrderBookProps) {
26 const [asks, setAsks] = useState<OrderBookEntry[]>([])
27 const [bids, setBids] = useState<OrderBookEntry[]>([])
28 const [spread, setSpread] = useState(0)
29 const [spreadPercent, setSpreadPercent] = useState(0)
30 const [lastPrice, setLastPrice] = useState(0)
31 const [priceChange, setPriceChange] = useState(0)
32
33 // Simulate real-time order book data
34 useEffect(() => {
35 const generateOrderBook = () => {
36 const basePrice = 2345.67 + (Math.random() - 0.5) * 10
37 const newAsks: OrderBookEntry[] = []
38 const newBids: OrderBookEntry[] = []
39
40 // Generate asks (sell orders) - sorted ascending
41 for (let i = 0; i < 10; i++) {
42 const price = basePrice + (i + 1) * (Math.random() * 1.5 + 0.3)
43 const amount = Math.random() * 15 + 0.1
44 const change = (Math.random() - 0.5) * 0.1
45 newAsks.push({
46 price: parseFloat(price.toFixed(2)),
47 amount: parseFloat(amount.toFixed(4)),
48 total: parseFloat((price * amount).toFixed(2)),
49 change: parseFloat(change.toFixed(3))
50 })
51 }
52
53 // Generate bids (buy orders) - sorted descending
54 for (let i = 0; i < 10; i++) {
55 const price = basePrice - (i + 1) * (Math.random() * 1.5 + 0.3)
56 const amount = Math.random() * 15 + 0.1
57 const change = (Math.random() - 0.5) * 0.1
58 newBids.push({
59 price: parseFloat(price.toFixed(2)),
60 amount: parseFloat(amount.toFixed(4)),
61 total: parseFloat((price * amount).toFixed(2)),
62 change: parseFloat(change.toFixed(3))
63 })
64 }
65
66 const currentSpread = newAsks[0]?.price - newBids[0]?.price || 0
67// … truncated

Files it writes

  • packages/defi/orderbook.tsx

Facts

Registry
dedevs-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

Docs on dedevs-ui ui.dedevs.com DeDevsClub/dedevs-ui on GitHub Raw registry item This item as JSON

More from dedevs-ui

All 30 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-branchai-branchdedevs-uiComponentsFreeno deps
ai-conversationai-conversationdedevs-uiComponentsFreeno deps
ai-inputai-inputdedevs-uiComponentsFreeno deps
ai-messageai-messagededevs-uiComponentsFreeno deps
ai-reasoningai-reasoningdedevs-uiComponentsFreeno deps
ai-responseai-responsededevs-uiComponentsFreeno deps
ai-serverai-serverdedevs-uiComponentsFreeno deps
ai-simpleai-simplededevs-uiComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex