Skip to content

fix(demo): show crypto markets as 24/7 - #753

Draft
luokerenx4 wants to merge 1 commit into
devfrom
codex/demo-crypto-market-clock
Draft

fix(demo): show crypto markets as 24/7#753
luokerenx4 wants to merge 1 commit into
devfrom
codex/demo-crypto-market-clock

Conversation

@luokerenx4

Copy link
Copy Markdown
Contributor

What changed

  • return an always-open market clock for the demo CCXT/Binance account
  • preserve the scheduled closed/open clock fixture for Alpaca and IBKR demo accounts
  • add handler contract tests covering both crypto and securities clocks

Why

The demo market-clock handler returned the same stock-market schedule for every account. As a result, the Binance spot/perpetual portfolio claimed Market Closed · opens in 1h even though the production CCXT adapter correctly models crypto venues as 24/7.

User impact

Users evaluating OpenAlice through the public demo now see 24/7 on the Binance account and no longer receive a false signal that crypto orders are unavailable. Securities accounts continue to demonstrate scheduled market hours.

Validation

  • pnpm vitest run ui/src/demo/handlers/trading.spec.ts (2 passed)
  • pnpm vitest run services/uta/src/domain/trading/brokers/ccxt/CcxtBroker.spec.ts -t getMarketClock (1 passed)
  • git diff --check
  • npx tsc --noEmit
  • cd ui && npx tsc -b
  • pnpm test (358 passed, 1 skipped files; 3390 passed, 9 skipped tests)
  • pnpm -F open-alice-ui build:demo
  • real demo walkthrough: Binance account displayed 24/7; Alpaca Paper still displayed Market Closed · opens in …

Live-paper was not run because this changes only the deterministic demo handler and does not touch broker adapters, order writes, permissions, or venue behavior.

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openalice-demo Ready Ready Preview, Comment Jul 28, 2026 8:39pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant