Skip to main content

This is a tool to check the time in the market

Project description

MarketTime

Description

This is a tool to help you to check the market time.

For example:

  • Check if the time is in market open time
  • Get next open time
  • Get last open time
  • etc.

Requirement

  • python >= 3.10
  • datetime >= 5.4
The versions may not be hard requirements. Checking on it now ...

Install

pip install MarketTime

Usage

Currently we offer two market time to check, stock market and future market.

And most important of all, always init close date list before running.

from MarketTime import StockMarketTime as smt # or FutureMarketTime as fmt
dates_list = [
    "2024-01-01",
    "2024-02-06",
    "2024-02-07",
    "2024-02-08",
    "2024-02-09",
    "2024-02-10",
    "2024-02-11",
    "2024-02-12",
    "2024-02-13",
    "2024-02-14",
    "2024-02-28",
    "2024-04-04",
    "2024-04-05",
    "2024-05-01",
    "2024-06-10",
    "2024-09-17",
    "2024-10-10"
]
smt.init_close_date_set(dates_list)

Working on the content below ...

Stock Market


Future Market



          

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

MarketTime-1.1.0.tar.gz (16.1 kB view hashes)

Uploaded Source

Built Distribution

MarketTime-1.1.0-py3-none-any.whl (16.9 kB view hashes)

Uploaded Python 3

Supported by

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