Skip to main content

Market clock in your terminal

Project description

Market Clock

Market Clock is a minimalistic command-line clock that tracks the current trading status of multiple stock exchanges worldwide. It uses the released trading holidays to determine whether the markets are open or closed and counts down to the next trading event.

Features

  • Displays trading status for major global stock exchanges.
  • Accounts for holidays and half trading days.
  • Considers lunch breaks for exchanges with lunch hours.
  • Real-time updates on when each market will open or close.

Supported Markets

Market Clock currently supports the following exchanges:

Exchange Updated till Source Note
TSE (Tokyo Stock Exchange) 2026 EOY TSE
SSE (Shanghai Stock Exchange) 2025 EOY SSE
HKEX (Hong Kong Exchange) 2025 EOY HKEX
BSE (Bombay Stock Exchange) 2025 EOY BSE Note that Muhurat trading is currently not supported.
LSE (London Stock Exchange) 2026 EOY LSE
NYSE (New York Stock Exchange) 2027 EOY NYSE
Nasdaq 2025 EOY Nasdaq

Table of Contents

Installation

uv is needed. Install it if you haven't:

pip install uv

To use Market Clock, install it as a uv tool:

uv tool install market-clock
market-clock

or you can invoke it without installing:

uvx market-clock

To exit the application, simply press Ctrl + C.

Usage

Market Clock supports several command line arguments to customize its behavior:

-m, --markets: Specify which market(s) to display. For example, to show only NYSE and Nasdaq:

uvx market-clock --markets NYSE Nasdaq

If no market is specified, it will display the status for all supported markets.

-s, --show-seconds: Display seconds in the countdown timer. By default, seconds are hidden.

uvx market-clock --show-seconds

-lm, --list-markets: List all supported markets without starting the clock.

uvx market-clock --list-markets

-p, --print: Print the clock and exit immediately.

uvx market-clock --print

Contributing

Contributions are welcome! Please fork the repository and create a new branch for your feature or bug fix.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

market_clock-0.1.13.tar.gz (49.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

market_clock-0.1.13-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file market_clock-0.1.13.tar.gz.

File metadata

  • Download URL: market_clock-0.1.13.tar.gz
  • Upload date:
  • Size: 49.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for market_clock-0.1.13.tar.gz
Algorithm Hash digest
SHA256 6b1133cfa4c205847b22d4035325f9584788f1a3da68da480655868a35980349
MD5 ba476a4f3e6755501d81fdb8bac97a46
BLAKE2b-256 90f77fa8b7f7b0c9441d0f8f78299b89e052e1ebcaa5f1badeefc8c5991e9285

See more details on using hashes here.

File details

Details for the file market_clock-0.1.13-py3-none-any.whl.

File metadata

File hashes

Hashes for market_clock-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 02f8d31ddab7fa5b9f3af4a684392341c46b05b59e41375cff1495b25b194157
MD5 d9c5ea09a8eb4631b11f58b05f5e52f6
BLAKE2b-256 b5d3276cb159c71f0c2f8e0a3afe4dde94b1863562e58423397e03414bd37c43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page