+
매도잔량
호가
-
@@ -532,8 +532,8 @@ function BookSideRows({
{rows.map((row, i) => {
@@ -580,7 +580,7 @@ function BookSideRows({
{row.price > 0 ? fmt(row.price) : "-"}
@@ -647,7 +647,7 @@ function SummaryPanel({
{
label: "실시간",
value: orderBook || latestTick ? "연결됨" : "끊김",
- tone: orderBook || latestTick ? "bid" : undefined,
+ tone: orderBook || latestTick ? "ask" : undefined,
},
{ label: "거래량", value: fmt(displayTradeVolume) },
{
@@ -733,8 +733,8 @@ function SummaryMetricCell({
{value}
@@ -751,8 +751,8 @@ function DepthBar({ ratio, side }: { ratio: number; side: "ask" | "bid" }) {
className={cn(
"absolute inset-y-0.5 z-0 rounded-sm transition-[width] duration-150",
side === "ask"
- ? "right-0.5 bg-red-300/55 dark:bg-red-700/50"
- : "left-0.5 bg-blue-300/60 dark:bg-blue-600/45",
+ ? "right-0.5 bg-blue-300/55 dark:bg-blue-700/50"
+ : "left-0.5 bg-red-300/60 dark:bg-red-600/45",
)}
style={{ width: `${ratio}%` }}
/>
@@ -861,11 +861,11 @@ function CumulativeRows({ asks, bids }: { asks: BookRow[]; bids: BookRow[] }) {
key={i}
className="grid h-7 grid-cols-3 items-center rounded border bg-background px-2 text-xs dark:border-brand-800/45 dark:bg-black/20"
>
- {fmt(r.askAcc)}
+ {fmt(r.askAcc)}
{fmt(r.price)}
-
+
{fmt(r.bidAcc)}