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.3.tar.gz
(18.6 kB
view hashes)
Built Distribution
MarketTime-1.1.3-py3-none-any.whl
(16.9 kB
view hashes)
Close
Hashes for MarketTime-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48b5ca67c970f7e08b03dc4a387d73f5ea023f0e7dd959ca5c5effbbbb6d75f1 |
|
MD5 | 8b453b1e463dc983cd2fe9c6de346b37 |
|
BLAKE2b-256 | ff705c385bafcd57d2e9f45e85e853f8cdf5e73057df6691385f1544d0863307 |