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`浏览器,就是正在被代码操纵的浏览器。
输入浏览器中的验证码,即可登录。



Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cfmmc-2016.12.4.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file cfmmc-2016.12.4.tar.gz.

File metadata

  • Download URL: cfmmc-2016.12.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cfmmc-2016.12.4.tar.gz
Algorithm Hash digest
SHA256 b9c602e47c49631a04c8362f24f4f967c3a81f8a729b7c7f52039da40aa329b7
MD5 8306b0785e5e62ede8b07c2bc6f6fffe
BLAKE2b-256 36c7aacaab6654882f281ae59549604659097477662ade97c96d6cfbc0199885

See more details on using hashes here.

Release history Release notifications | RSS feed

2017.12.5

1 file

2017.12.3

1 file

This release

2016.12.4 This release

1 file

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