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 including HKEX, LSE, NYSE and Nasdaq.
  • 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.

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:

--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.

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

uvx market-clock --show-seconds

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

uvx market-clock --list-markets

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

Market Clock currently supports the following exchanges:

Exchange Updated till Source
NYSE (New York Stock Exchange) 2027 EOY NYSE
Nasdaq 2025 EOY Nasdaq
LSE (London Stock Exchange) 2026 EOY LSE
HKEX (Hong Kong Exchange) 2025 EOY HKEX

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.8.tar.gz (31.1 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.8-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for market_clock-0.1.8.tar.gz
Algorithm Hash digest
SHA256 98ac5ce778564d96f5001a34778b2c7874444c75881fcb5b7bbcb843ef46d98f
MD5 8b7fc8be04e91effa10288ecebe00fc4
BLAKE2b-256 6693dba96da4b2db06c485643fe4ab5955e0bd305aaba9abd03a4289d8fb0056

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for market_clock-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1e0ea793c515c833e3b4bb32542af40771e5bb0aa3cbe3b3c970d1ef1d5b74bf
MD5 c07d754663bf3e434190634beffc773b
BLAKE2b-256 04a6dceeef33c77761de77f4b9db7992ca8cefe98897a3d134f1faca1ec8ade7

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