Skip to main contentSkip to navigation

Orders History

Display historical trading orders with status tracking.

No orders yet

Installation

npx @hanzo/ui@latest add orders-history

Usage

import { OrdersHistory } from "@hanzo/ui/finance"

export default function Demo() {
  const orders = [
    {
      id: "1",
      symbol: "AAPL",
      type: "buy",
      shares: 100,
      price: 175.5,
      status: "filled",
      timestamp: Date.now(),
    },
  ]

  return <OrdersHistory orders={orders} />
}

Props

PropTypeDefaultDescription
ordersOrder[][]Array of order objects
onCancelfunction-Callback when order cancelled
showFiltersbooleantrueShow status filters