Skip to main content

Add your description here

Project description

火富牛SDK

SDK请求类

    FactorFutures:提供期货风格因子每日收益率数据
    FactorStyleCne6:提供CNE6股票风格因子每日收益率数据
    FactorStyleCne5:提供CNE5股票风格因子每日收益率数据
    
    IndexPrice:提供基准指数的行情数据查询
    IndexBatchPrice:多指数行情查询
    IndexStockAmt:提供股票指数的成交额数据
    IndexStockTurn:提供股票指数的换手率数据
    IndexStockPE:提供股票指数的PE(TTM)中位数数据
    
    FundAdvancedList:根据平台/团队策略,获取基金列表数据
    FundInfo:提供私募基金基本信息数据
    FundPrice:提供私募基金平台净值的数据
    FundCompanyPrice:提供私募基金团队净值的数据
    FundMultiPrice:每次可查询多个基金的平台净值,最多不超过40只
    PersonalFundPrice:根据自建基金id,查询净值
    MonitorLogList:查询分享给全团队的异常预警结果
    FofSubFundVirtualPrice:查询FOF基金下底层基金的虚拟净值
    DirectFundVirtualPrice:查询直投产品的虚拟净值
    FundScore:提供私募基金的模型评分信息
    FofSubFund:基于FOF基金估值表,提供底层基金的持仓份额、金额、占比信息的查询
    FofSubFundDeals:查询FOF基金下,底层基金的交易记录
    CompanyPriceBatchAdd:已备案的私募基金上传团队净值。团队用户使用
    PrivatePriceBatchAdd:已备案的私募基金上传私有净值。个人用户使用
    InnerPriceBatchAdd:内部基金净值上传
    FofSubFundTrackList:查询团队各个基金列表的私募基金数据
    
    IndexPrice:提供基准指数的行情数据查询
    IndexBatchPrice:查询多个指数的行情数据,最多不超过40只
    IndexStockAmt:提供股票指数的成交额数据
    IndexStockTurn:提供股票指数的换手率数据
    IndexStockPE:提供股票指数的PE(TTM)中位数数据 
    PrivateIndexPrice:根据自建指数id,查询指数行情

    GmFundInfo:提供公募基金基本信息数据
    GmFundPrice:提供公募基金净值的数据
    GmFundBatchPrice:公募基金多基金净值
    
    FoCombiPrice:提供团队/我的实盘组合净值的数据
    CombiPrice:提供团队/我的模拟组合净值的数据
    
    CompanyInfo:提供投资顾问的信息
    CompanyScale:提供私募管理人的协会管理规模、披露规模、运作产品数的信息
    CompanyShareholder:提供私募管理人的股东信息
    CompanyFundList:提供私募管理人的旗下基金列表
    
    FundBuyInfo:提供【投资-直投产品】列表中公/私募基金的交易记录数据
    FofInvestCustomerPrice:查询直投产品拟合的组合的净值
    FofInvestFundScale:查询直投产品拟合的组合的净值

安装依赖类库

    # 进入包含【requirements.txt】文件的目录执行下面命令
    pip install -r requirements.txt --trusted-host mirrors.aliyun.com \
        --index-url "https://mirrors.aliyun.com/pypi/simple/" 

SDK使用示例

    # 将fof99目录添加到Python搜索路径【这步很重要,否则执行脚本找不到请求类】
    import sys
    sys.path.append(r'E:\path\to\mall_sdk')
    
    # 1、引入请求类
    from fof99 import FundPrice
    
    # 2、创建请求对象
    appid = '应用ID,从火富牛API商城获取'
    appkey = '应用密钥,从火富牛API商城获取'
    req = FundPrice(appid, appkey) # 请求对象
    
    # 3、设置请求参数,参考API文档
    req.set_params(reg_code='SN5489', start_date='2024-01-01', order_by='price_date', order=1)
    
    # 4、发起请求, use_df=True表示结果返回pandas.DataFrame对象;use_df=False表示结果返回Python列表
    res = req.do_request(use_df=True)
    
    # 5、结果处理
    print(res) # 打印结果
    print(req.get_debug_info()) # 打印API响应参数,用于接口调试

Project details


Download files

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

Source Distribution

fof99-1.0.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fof99-1.0.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file fof99-1.0.0.tar.gz.

File metadata

  • Download URL: fof99-1.0.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fof99-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4558ccfe0f75054b624cfa5a632041b58f66a6e4e46af8a4ba7a622466650d39
MD5 65851942ec79f2383348a54b7a752a1c
BLAKE2b-256 77fde72b8c93805286af4c0902c78b7e4258b32cd61942028c4245e9759e7d2a

See more details on using hashes here.

File details

Details for the file fof99-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fof99-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fof99-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64e4864fdbf6b460b2e753c4a1ffaa6b2ea38fa81311be85b9ab8716825cb9ba
MD5 b35489fd54770fd87c35db36eed7fd37
BLAKE2b-256 2365b3d02dc47d7d7b36b6c8d01cb272a751e6ada890e7c74dbacecc62fd2ca2

See more details on using hashes here.

Supported by

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