marketwatchdata
overview
marketwathdata retrieve datas from marketwatch.com.
- documentation: 文档
installation
general
pip install marketwatchdata --upgrade
china
pip install marketwatchdata -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com --upgrade
test
import marketwatchdata as mw
print(mw.__version__)
usage
data
code
import marketwatchdata as mw
df = mw.ohlc('stock/us/xnas/aapl', 'p1d', 'p1y')
print(df)
output
open high low close volume
date
2022-07-25 154.010 155.040 152.280 152.95 53623953.0
2022-07-26 152.265 153.085 150.800 151.60 55138688.0
2022-07-27 152.580 157.330 152.160 156.79 78620688.0
2022-07-28 156.980 157.640 154.410 157.35 81378727.0
2022-07-29 161.240 163.630 159.500 162.51 101786898.0
... ... ... ... ... ...
2023-07-17 191.900 194.320 191.810 193.99 50520160.0
2023-07-18 193.350 194.330 192.415 193.73 48353770.0
2023-07-19 193.100 198.230 192.650 195.10 80507320.0
2023-07-20 195.090 196.470 192.495 193.13 59581199.0
2023-07-21 194.100 194.970 191.230 191.94 71951683.0
[250 rows x 5 columns]
plot
code
import marketwatchdata as mw
import mplfinance as mpf # please install mplfinance as follows: pip install mplfinance
df = mw.ohlc('stock/us/xnas/aapl', 'p1d', 'p1y')
mpf.plot(df, type='candle', mav=(3, 6, 9), volume=true, show_nontrading=false)
output
acknowledgement
thanks for the data provided by marketwatch;
Metadata
Release files for marketwatchdata 0.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| marketwatchdata-0.0.16.tar.gz | 5.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| marketwatchdata-0.0.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.0 kB
Release files / marketwatchdata-0.0.16.tar.gz
| Download URL | marketwatchdata-0.0.16.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79c6729b9160685f56008d5457f4180c2c108d3075e3fd8ce19f6623f23c528d
|
|
BLAKE2b-256 checksum How to use checksums |
17d02071c4d0c55fbd9dd2c6f11243bf13ce080e01f35ab569abd5792f08a48b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / marketwatchdata-0.0.16-py3-none-any.whl
| Download URL | marketwatchdata-0.0.16-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
064da7295c75566a95ccc5610c3060568756feeb9635fdf432bf36dbd70404f3
|
|
BLAKE2b-256 checksum How to use checksums |
0378e3c2681ae4cd4258fda06071c3f95ef42527cc29446a51f9bdc1f1a22f1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for marketwatchdata 0.0.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.