Skip to main content

国内基金API接口

Project description

使用如下的方法调用接口

from fund import get

然后调用get方法,传入基金代码,默认是最近30条数据

get('000148')

可以通过num参数修改默认的记录数,最大为半年180天的数据

get('000148', 60)

另外在版本0.2中新增参数`start_date`和`end_date`用于日期区间的选择,该参数必须为date类型

from datetime import date
get('000148',start_date=date(2018,4,15))

对于历史数据,可以通过history方法来获取。

history('000148')

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

fund-0.2.dev0-py2-none-any.whl (4.5 kB view details)

Uploaded Python 2

File details

Details for the file fund-0.2.dev0-py2-none-any.whl.

File metadata

File hashes

Hashes for fund-0.2.dev0-py2-none-any.whl
Algorithm Hash digest
SHA256 a0ba5d1e9cb0c1ecd905c8e1a7e695ddded34f463557a91133c5fc4b1af96c92
MD5 bbe8d72824a8f88b8b4eaed9bb397c07
BLAKE2b-256 308d88670b055acb873dd09d0f27c85df8291041e37aa87bafbb6f9a58a1b40e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page