Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

基金数据API

使用如下的方法调用接口

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')

Metadata

Release files for fund 0.2.dev0

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

Built distribution (wheel)

Table of built distributions (wheels) for fund 0.2.dev0
File Interpreter ABI Platform Actions
fund-0.2.dev0-py2-none-any.whl Python 2 none any Details for fund-0.2.dev0-py2-none-any.whl

Release files / fund-0.2.dev0-py2-none-any.whl

Download URL fund-0.2.dev0-py2-none-any.whl
Size 4.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
a0ba5d1e9cb0c1ecd905c8e1a7e695ddded34f463557a91133c5fc4b1af96c92
BLAKE2b-256 checksum
How to use checksums
308d88670b055acb873dd09d0f27c85df8291041e37aa87bafbb6f9a58a1b40e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for fund 0.2.dev0

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