Skip to main content
# cfmmc
1. 中国期货市场监控中心的浏览器模拟操作。
2. 使用了`selenium`和`Chromedrive`来实现。
3. 已经实现的功能:
1. 下载每日结算单,默认保存为`csv`文件。根据已有的数据,可以接着下载。

## 准备
- 安装`selenium-python`
- 安装`chromedirve`
- 安装`cfmmc`
```
pip install cfmmc # 从 pypi 安装
# OR
pip install -e . # 从本地项目目录安装
```

## 使用
期货结算中心的登录参见[这里](https://investorservice.cfmmc.com)。
账号密码详询自己的客户经理。账号密码不同于期货交易账户。

### 下载每日结算数据
```
import cfmmc
dic = {
'userID':'查询账号',
'password': '查询密码',
'saveto': '保存下载数据的文件夹'
}
cfmmc.account(**dic) # 设置账号密码
> 请手动输入验证码:
```
弹出来的`chrome`浏览器,就是正在被代码操纵的浏览器。
输入浏览器中的验证码,即可登录。



Metadata

Release files for cfmmc 2016.12.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cfmmc 2016.12.4
File Size Uploaded Provenance Actions
cfmmc-2016.12.4.tar.gz 4.9 kB Without provenance Details for cfmmc-2016.12.4.tar.gz

Release files / cfmmc-2016.12.4.tar.gz

Download URL cfmmc-2016.12.4.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b9c602e47c49631a04c8362f24f4f967c3a81f8a729b7c7f52039da40aa329b7
BLAKE2b-256 checksum
How to use checksums
36c7aacaab6654882f281ae59549604659097477662ade97c96d6cfbc0199885
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for cfmmc 2016.12.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page