All Projects → ShekiLyu → lixinger-openapi

ShekiLyu / lixinger-openapi

Licence: Apache-2.0 license
理杏仁开发平台python api(非官方)

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to lixinger-openapi

crypto-trading-engine
Crypto real-time trading engine
Stars: ✭ 19 (-55.81%)
Mutual labels:  quant
FinRL Podracer
Cloud-native Financial Reinforcement Learning
Stars: ✭ 179 (+316.28%)
Mutual labels:  quant
pngquant
A Python Wrapper of Pngquant
Stars: ✭ 27 (-37.21%)
Mutual labels:  quantization
local-search-quantization
State-of-the-art method for large-scale ANN search as of Oct 2016. Presented at ECCV 16.
Stars: ✭ 70 (+62.79%)
Mutual labels:  quantization
presso
Event-driven backtest/realtime quantitative trading system.
Stars: ✭ 59 (+37.21%)
Mutual labels:  quant
autoxd
A股回测框架, 模拟实盘账户交易, 适合编写T+0策略
Stars: ✭ 71 (+65.12%)
Mutual labels:  quant
torch-model-compression
针对pytorch模型的自动化模型结构分析和修改工具集,包含自动分析模型结构的模型压缩算法库
Stars: ✭ 126 (+193.02%)
Mutual labels:  quantization
bert-squeeze
🛠️ Tools for Transformers compression using PyTorch Lightning ⚡
Stars: ✭ 56 (+30.23%)
Mutual labels:  quantization
abquant-data
A&B professional platform for quantitative finance. God is Asking & Bidding Me. ABQ 基于 通达信 数据的量化.
Stars: ✭ 31 (-27.91%)
Mutual labels:  quant
ATMC
[NeurIPS'2019] Shupeng Gui, Haotao Wang, Haichuan Yang, Chen Yu, Zhangyang Wang, Ji Liu, “Model Compression with Adversarial Robustness: A Unified Optimization Framework”
Stars: ✭ 41 (-4.65%)
Mutual labels:  quantization
neural-compressor
Intel® Neural Compressor (formerly known as Intel® Low Precision Optimization Tool), targeting to provide unified APIs for network compression technologies, such as low precision quantization, sparsity, pruning, knowledge distillation, across different deep learning frameworks to pursue optimal inference performance.
Stars: ✭ 666 (+1448.84%)
Mutual labels:  quantization
pystockfilter
Financial technical and fundamental analysis indicator library for pystockdb.
Stars: ✭ 26 (-39.53%)
Mutual labels:  quant
Stochastic-Quantization
Training Low-bits DNNs with Stochastic Quantization
Stars: ✭ 70 (+62.79%)
Mutual labels:  quantization
mmn
Moore Machine Networks (MMN): Learning Finite-State Representations of Recurrent Policy Networks
Stars: ✭ 39 (-9.3%)
Mutual labels:  quantization
DNNAC
All about acceleration and compression of Deep Neural Networks
Stars: ✭ 29 (-32.56%)
Mutual labels:  quantization
pyalgotrade tushare
pyalgotrade 的 tushare 数据源
Stars: ✭ 29 (-32.56%)
Mutual labels:  quant
trading gym
a unified environment for supervised learning and reinforcement learning in the context of quantitative trading
Stars: ✭ 36 (-16.28%)
Mutual labels:  quant
navec
Compact high quality word embeddings for Russian language
Stars: ✭ 118 (+174.42%)
Mutual labels:  quantization
camalian
Library used to deal with colors and images. You can extract colors from images.
Stars: ✭ 45 (+4.65%)
Mutual labels:  quantization
fin
finance
Stars: ✭ 38 (-11.63%)
Mutual labels:  quantopian

lixinger-openapi

简介

本Python包是理杏仁开放平台WEB API的非官方Python封装,目的是方便Python量化分析者使用理杏仁开放平台数据。

快速使用指南

  1. 使用set_token设置自己的token,设置后会在当前目录生成token.cfg文件,里面保存了你的token值,这样下次在当前目录使用的时候就不需要再执行set_token了。如果不想生成文件,可以设置参数write_token=False。
  2. 使用query_json获取json格式数据,使用query_dataframe获取dataframe格式数据
  3. 查询入参为url_suffix和query_params
    • url_suffix是请求的API地址后缀,前面的https://open.lixinger.com/api/ 就不需要写了,比如https://open.lixinger.com/api/a/indice/samples 只需要传入'a/indice/samples'即可。
    • url_suffix还支持一种更好用的写法,就是'a.indice.samples',底层会把.替换成/。
    • query_params 你可以认为这就是传给API的json,只是token已经设置过了,就不需要写了。
  4. 返回结果
    • query_json的返回结果和网站上一模一样
    • query_dataframe的返回结果有点不同,就是data域用dataframe格式替换了。

版本更新内容

版本1.0.2

未设置token时使用改成抛出“token未设置”的异常

版本1.0.0

重大改版,取消了业务封装,直接使用底层api,反而更灵活

版本0.2.5

适配新URL

版本0.2.4

适配新URL,修改接口名,禁用不可用接口

版本0.2.3

适配新的请求URL

版本0.2.2

修复使用错误的查询条件无返回结果的BUG

版本0.2.1

适配新的返回结构。新返回结构将数据放到'data'字段里,新增'code'返回值,和'msg'返回消息。

版本0.2.0

适配港股接口,原有A股接口不变

更新文档,添加港股查询示例

版本0.1.1

适配pip版本10.0

版本0.1.0

初始版本,支持A股数据查询,支持json和dataframe格式

安装

从PyPI安装

pip install lixinger-openapi

从Github安装

pip install git+http://github.com/ShekiLyu/lixinger-openapi.git

从PyPI更新版本

pip install --upgrade lixinger-openapi

从Github更新版本

pip install --upgrade git+http://github.com/ShekiLyu/lixinger-openapi.git

使用示例

详细使用方法请参考用户使用指南

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].