mssdk is an elegant and simple financial data interface library for Python, built for human beings!
Project description
MSSDK
MSSDK 的介绍
MSSDK 是 麦思多维科技 提供的基于 Python 的 SDK 库, 您可以通过麦思多维科技机构 VIP 接口文档了解和查询详细数据接口!
MSSDK 由 麦思多维科技 提供技术支持
MSSDK 的特色
MSSDK 主要改进如下:
发布版本
python setup.py sdist bdist_wheel
twine upload dist/*
Docker 构建镜像
docker build -t msscore:v1 .
Docker 启动
docker run -d -p 8000:8000 --restart=always msscore:v1
安装方法
pip install mssdk
升级方法
pip install mssdk --upgrade
快速入门
目标:美股复权数据获取和绘图
代码:
import mssdk as ms
import mplfinance as mpf
stock_us_daily_df = ms.stock_us_daily(symbol="AAPL", adjust="qfq")
stock_us_daily_df = stock_us_daily_df[["open", "high", "low", "close", "volume"]]
stock_us_daily_df.columns = ["Open", "High", "Low", "Close", "Volume"]
stock_us_daily_df.index.name = "Date"
stock_us_daily_df = stock_us_daily_df["2020-04-01": "2020-04-29"]
mpf.plot(stock_us_daily_df, type='candle', mav=(3, 6, 9), volume=True, show_nontrading=False)
绘图:
特别说明
声明
- MSSDK 提供的数据仅供参考,不构成任何投资建议;
- 任何基于 MSSDK 进行研究的用户请注意数据风险;
- MSSDK 的使用请遵循 麦思多维科技 的用户协议;
- MSSDK 使用产生的问题的最终解释权归 麦思多维科技 所有;
版本更新说明
0.0.1: 发布测试版本 v0.0.1
0.0.2: 发布测试版本 v0.0.2
0.0.3: 发布测试版本 v0.0.3
0.0.4: 发布测试版本 v0.0.4
0.0.5: 发布测试版本 v0.0.5
0.0.6: 发布测试版本 v0.0.6
0.0.7: 发布测试版本 v0.0.7
0.0.8: 发布测试版本 v0.0.8
0.0.9: 发布测试版本 v0.0.9
0.0.10: 发布测试版本 v0.0.10
0.0.11: 发布测试版本 v0.0.11
0.0.12: 发布测试版本 v0.0.12
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mssdk-0.0.38.tar.gz
(540.3 kB
view details)
Built Distribution
mssdk-0.0.38-py3-none-any.whl
(708.5 kB
view details)
File details
Details for the file mssdk-0.0.38.tar.gz
.
File metadata
- Download URL: mssdk-0.0.38.tar.gz
- Upload date:
- Size: 540.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 858cabe4f57ddd4c44318e05999715c864b5d99a76ce6eb7e1379f83b6eccafc |
|
MD5 | 8466b0ad68231fa952808002a518f6a1 |
|
BLAKE2b-256 | 4ff5df5989218d1337d659e2f2604c3eb1d11d16b6935f5fe459e096a2b53218 |
File details
Details for the file mssdk-0.0.38-py3-none-any.whl
.
File metadata
- Download URL: mssdk-0.0.38-py3-none-any.whl
- Upload date:
- Size: 708.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e27fb14c29cdbf26ce5e92ab0094859f74af522084f0cda6f239e82aa947fb3a |
|
MD5 | 8a432a86459bba42d1b3605e6ab86c4f |
|
BLAKE2b-256 | 76b9aefd3d23100d8ce5a8ed19e009ff9c60b7900a602468d0767987ac77cb6d |