All Projects → JoinQuant → Jqdatasdk

JoinQuant / Jqdatasdk

Licence: mit
简单易用的量化金融数据包(easy utility for getting financial market data of China)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Jqdatasdk

Pandas Datareader
Extract data from a wide range of Internet sources into a pandas DataFrame.
Stars: ✭ 2,183 (+377.68%)
Mutual labels:  pandas, financial-data, stock-data
Tushare
TuShare is a utility for crawling historical data of China stocks
Stars: ✭ 11,288 (+2370.02%)
Mutual labels:  pandas, fintech, stock-data
Finance Go
📊 Financial markets data library implemented in go.
Stars: ✭ 392 (-14.22%)
Mutual labels:  pandas, financial-data, stock-data
Yfinance
Download market data from Yahoo! Finance's API
Stars: ✭ 6,148 (+1245.3%)
Mutual labels:  pandas, financial-data, stock-data
Iexfinance
Python SDK for IEX Cloud
Stars: ✭ 573 (+25.38%)
Mutual labels:  pandas, stock-data
Intrinio Realtime Node Sdk
Intrinio NodeJS SDK for Real-Time Stock & Crypto Prices
Stars: ✭ 30 (-93.44%)
Mutual labels:  fintech, stock-data
Twelvedata Python
Twelve Data Python Client - Financial data APIs & WebSockets
Stars: ✭ 111 (-75.71%)
Mutual labels:  pandas, financial-data
Fetching Financial Data
Fetching financial data for technical & fundamental analysis and algorithmic trading from a variety of python packages and sources.
Stars: ✭ 137 (-70.02%)
Mutual labels:  financial-data, stock-data
intrinio-realtime-java-sdk
Intrinio Java SDK for Real-Time Stock Prices
Stars: ✭ 22 (-95.19%)
Mutual labels:  fintech, stock-data
pytickersymbols
Fundamental stock data and yahoo/google ticker symbols for several indices.
Stars: ✭ 69 (-84.9%)
Mutual labels:  stock-data, financial-data
python-eodhistoricaldata
Download data from EOD historical data https://eodhistoricaldata.com/ using Python, Requests and Pandas.
Stars: ✭ 67 (-85.34%)
Mutual labels:  pandas, stock-data
intrinio-realtime-python-sdk
Intrinio Python SDK for Real-Time Stock Prices
Stars: ✭ 79 (-82.71%)
Mutual labels:  fintech, stock-data
Go Finance
⚠️ Deprecrated in favor of https://github.com/piquette/finance-go
Stars: ✭ 536 (+17.29%)
Mutual labels:  fintech, financial-data
Finta
Common financial technical indicators implemented in Pandas.
Stars: ✭ 901 (+97.16%)
Mutual labels:  pandas, fintech
Qlib
Qlib is an AI-oriented quantitative investment platform, which aims to realize the potential, empower the research, and create the value of AI technologies in quantitative investment. With Qlib, you can easily try your ideas to create better Quant investment strategies. An increasing number of SOTA Quant research works/papers are released in Qlib.
Stars: ✭ 7,582 (+1559.08%)
Mutual labels:  fintech, stock-data
Yahooquery
Python wrapper for an unofficial Yahoo Finance API
Stars: ✭ 288 (-36.98%)
Mutual labels:  pandas, stock-data
Dbg Pds
Deutsche Boerse's Financial Trading Public Data Set
Stars: ✭ 124 (-72.87%)
Mutual labels:  financial-data, stock-data
Simplestockanalysispython
Stock Analysis Tutorial in Python
Stars: ✭ 126 (-72.43%)
Mutual labels:  financial-data, stock-data
Stocky
Machine Learning Stock Trading Risk Analysis (Spring 2017)
Stars: ✭ 27 (-94.09%)
Mutual labels:  stock-data, financial-data
IEX CPP API
Unofficial C++ Lib for the IEXtrading API
Stars: ✭ 34 (-92.56%)
Mutual labels:  stock-data, financial-data

JQData

img

jqdatasdk是提供给用户获取聚宽金融数据的SDK。用户可以在自己本地搭建的环境中获取聚宽提供的全品种量化金融数据,其功能特性与官网的投资研究模块保持一致。

申请账号

用户只需提交JQData试用申请,就能开通一年有效期的试用账号。试用期间可免费调用JQData的全部基础数据,每天可调用100万条。(注:JQData基础数据包含沪深A股行情数据,上市公司财务数据,指数数据,场内基金数据,场外基金数据、期货数据、期权数据和宏观经济数据等)

安装

pip install jqdatasdk

升级

pip install -U jqdatasdk

登录

from jqdatasdk import *
auth('ID','Password') #ID是申请时所填写的手机号;Password为聚宽官网登录密码,新申请用户默认为手机号后6位

JQData HTTP版本

除了Python SDK版本外,JQData还推出了不限任何编程语言的JQData HTTP方法,任意编程语言都可调用,点击查看JQData HTTP使用说明

交流学习

如在使用中遇到问题,或者想加入JQData学习群和大家一起交流,还可以添加JQData管理员微信咨询,微信号:JQData02,添加时请留言"JQData"。

使用简介

例如:获取平安银行2017-01-01到2017-12-31的所有日行情数据

import jqdatasdk
jqdatasdk.auth(username, password)
jqdatasdk.get_price("000001.XSHE", start_date="2017-01-01", end_date="2017-12-31")

结果显示:

.            open  close   high    low       volume         money
2017-01-03   8.98   9.03   9.05   8.96   46650858.0  4.205952e+08
2017-01-04   9.02   9.03   9.05   9.01   45584521.0  4.115034e+08
2017-01-05   9.04   9.04   9.05   9.02   34936662.0  3.157697e+08
2017-01-06   9.04   9.00   9.04   8.98   36334775.0  3.271764e+08
2017-01-09   9.00   9.02   9.04   8.98   36631757.0  3.299946e+08
2017-01-10   9.02   9.02   9.03   9.01   24454945.0  2.205751e+08
2017-01-11   9.01   9.01   9.04   9.00   30783091.0  2.775532e+08
2017-01-12   9.00   9.02   9.04   9.00   43421325.0  3.918694e+08
2017-01-13   9.01   9.03   9.06   8.99   44059912.0  3.976019e+08
...

支持的接口

下面仅列举出一些常用接口,更多API接口说明详见:JQData说明书

  • get_price

    可查询股票、基金、指数、期货的历史及当前交易日的行情数据

    可指定单位时间长度,如一天、一分钟、五分钟等

    可查询开盘价、收盘价、最高价、最低价、成交量、成交额、涨停、跌停、均价、前收价、是否停牌

    支持不同的复权方式

  • get_trade_days

    查询指定时间范围的交易日

  • get_all_trade_days

    查询所有的交易日

  • get_extras

    查询股票是否是ST

    查询基金的累计净值、单位净值

    查询期货的结算价、持仓量

  • get_index_stocks

    查询指定指数在指定交易日的成分股

  • get_industry_stocks

    查询指定行业在指定交易日的成分股

  • get_industries

    查询行业列表

  • get_concept_stocks

    查询指定概念在指定交易日的成分股

  • get_concepts

    查询概念列表

  • get_concept

    获取股票所属概念板块

  • get_all_securities

    查询股票、基金、指数、期货列表

  • get_security_info

    查询单个标的的信息

  • get_money_flow

    查询某只股票的资金流向数据

  • get_fundamentals

    查询财务数据,包含估值表、利润表、现金流量表、资产负债表、银行专项指标、证券专项指标、保险专项指标

  • get_fundamentals_continuously

    查询多日的财务数据

  • get_mtss

    查询股票、基金的融资融券数据

  • get_billbord_list

    查询股票龙虎榜数据

  • get_locked_shares

    查询股票限售解禁股数据

  • get_margincash_stocks

    获取融资标的列表

  • get_marginsec_stocks

    获取融券标的列表

  • get_future_contracts

    查询期货可交易合约列表

  • get_dominant_future

    查询主力合约对应的标的

  • get_ticks

    查询股票、期货的tick数据

  • normalize_code

    归一化证券编码

  • macro.run_query

    查询宏观经济数据,具体数据见官网API

  • alpha101

    查询WorldQuant 101 Alphas 因子数据,具体因子解释见官网API

  • alpha191

    查询短周期价量特征 191 Alphas 因子数据,具体因子解释见官网API

  • technical_analysis

    技术分析指标,具体因子解释见官网API

  • baidu_factor

    查询股票某日百度搜索量数据

  • get_factor_values

    获取质量因子、基础因子、情绪因子、成长因子、风险因子、每股因子等数百个因子数据,详细的因子列表请参考链接

  • get_bars

    获取历史数据(包含快照数据),可查询单个标的多个数据字段,返回数据格式为 DataFrame

  • get_current_tick

    获取最新的tick数据,返回数据格式为DataFrame格式

  • get_fund_info

    基金基础信息数据接口,获取单个基金的基本信息

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].