![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
量化_ML
faustellarx
这个作者很懒,什么都没留下…
展开
-
python talib使用要点总结
文章目录安装(windows)简单指标主要模块其他模块解析Volume IndicatorsStatistic FunctionsVolatility Indicator FunctionsPrice Transform FunctionsCycle Indicator FunctionsMath Transform Functions/Math OperatorsPattern Recognit...原创 2019-11-04 08:52:40 · 4391 阅读 · 0 评论 -
matplotlib在pyqt5中的集成
文章目录一份pyqt5集成mpl示例matplotlib画图详解应用:当前k线绘制一些问题一份pyqt5集成mpl示例从一份来自stackoverflow的demo开始:# -*- coding: utf-8 -*-import sysfrom PyQt5.QtWidgets import QDialog, QApplication, QPushButton, QVBoxLayoutf...原创 2019-11-02 20:36:24 · 643 阅读 · 0 评论 -
huobiAPIPython代码解析
文章目录POSTURL编码数字签名面向对象化包装api整理POST与行情查询这个简单的html网页请求相比, 实盘交易包含了至关重要的身份验证环节, 这是通过修改request的url来实现的URL编码URL中常见%20这种意义不明的数字, 其实际上就是普通字符串经URL转换得到的. URL只能使用英文字母、阿拉伯数字和某些标点符号,不能使用其他文字和符号.import urllib#...原创 2019-11-02 12:02:15 · 1054 阅读 · 0 评论 -
从k-line到决策实践:huobi api实现(一)
文章目录获取实时k线画蜡烛图进一步的可视化一个简易的多因子策略获取实时k线import requestsimport pandas as pdurl = 'https://api.hbdm.com/market/history/kline?symbol=ETH_CQ&period=5min&size=200'result = requests.get(url=url, t...原创 2019-11-04 07:34:25 · 764 阅读 · 0 评论 -
深度图的归一化与均衡价格
深度图在实盘中, 深度图是重要参考要素import requestsresponse = requests.get(url='https://api.hbdm.com/market/depth?symbol=ETH_CQ&type=step5')depth = response.json()在这里,价格采用对数坐标将更为清晰:def logize(arr, p=1, base...原创 2019-11-04 07:33:55 · 572 阅读 · 0 评论 -
huobi API使用经验整理
开局不知道说什么, 韭就完事了文章目录基础知识REST API实例1.start2.更多数据基础知识现在火币/大多数交易所的API都有两种. 一种是REST API, 类似于浏览网页, 由客户发起请求到服务器, 然后服务器发送相关数据; 另一种是基于socket的, 当用户建立与服务器的请求后, 由服务器不断连续将数据推送过来(当然中间用户需要发送一些数据来表明自己还在).火币虽然高杠杆合...原创 2019-11-04 07:33:43 · 4457 阅读 · 1 评论