-
-
Notifications
You must be signed in to change notification settings - Fork 3k
QUANTAXIS Protocol 标准化协议QAS 未来协议QAF
- 当前版本:0.0.2
- 协议最后修改日期:2017-04-05
- 项目版本:QUANTAXIS 0.3.8-dev-gamma(deal)
- 简介 Intro
- QAStandard-00x QUANTAXIS
- QAStandard-10x 数据
- QAStandard-20x 市场
- QAStandard-30x 用户
- QAStandard-40x 状态
- QAStandard-50x API
- QAStandard-60x Util
QAProtocol是为了规范化和标准化QUANTAXIS的数据获取,数据存储,模拟市场交易,以及标准化输出而建立的协议.
QUANTAXISStandard是目前的协议标准,简称QAS
QUANTAXISFuture 是未来即将添加的或是在测试版中的功能标准,简称QAF
QUANTAXIS的Logo需要遵循docs/logo标准下的logo,有两种形式的logo
QUANTAXIS 基于MIT开源协议
The MIT License (MIT)
Copyright (c) 2016-2017 yutiansut/QUANTAXIS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
被授权人有权利使用、复制、修改、合并、出版发行、散布、再授权及贩售软体及软体的副本。
被授权人可根据程式的需要修改授权条款为适当的内容。
在软件和软件的所有副本中都必须包含版权声明和许可声明。
此授权条款并非属copyleft的自由软体授权条款,允许在自由/开放源码软体或非自由软体(proprietary software)所使用。
QAS-10x需要遵循QAS-501-4规范
- DataBase: quantaxis
- Collections: stock_day,stock_min
- BasicalName: code,name,timestamp,open,high,low,close,volume
- AdvanceName:
Basical指的是存入数据库/更新数据时必须要有的字段
Advance指的是存入数据库/更新数据时定制的字段,非必须
- DataBase: quantaxis
- Collections: future_day,future_min,future_ms
- BasicalName: code,name,open,high,low,close,volume
- AdvanceName:
Basical指的是存入数据库/更新数据时必须要有的字段
Advance指的是存入数据库/更新数据时定制的字段,非必须
- DataBase: quantaxis
- Collections: options_day,options_min,options_ms
- BasicalName: code,name,open,high,low,close,volume
- AdvanceName:
Basical指的是存入数据库/更新数据时必须要有的字段
Advance指的是存入数据库/更新数据时定制的字段,非必须
- DataBase: quantaxis
- Collections: indicator_day,indicator_min,indicator_ms
- BasicalName:
- AdvanceName:
参考:
ADTM动态买卖气指标,ATR真实波幅,BBI多空指数,BBIBOLL多空布林线,BIAS乖离率,BOLL布林带,CCI顺势指标,CDP逆势操作,DMA平均线差,DMI趋向标准,DPO区间震荡线,ENV,EXPMA指数平滑移动平均,KDJ随机指标,slowKD慢速kd,MA简单移动平均,MACD指数平滑移动平均,MIKE麦克指数,MTM动力指标,PRICEOSC价格震荡指标,PVT量价趋势指标,RC变化率指数,ROC变动速率,RSI相对强弱指标,SAR抛物转向,SI摆动指标,SOBV能量潮,SRMI MI修正指标,STD 标准差,TAPI 加权指数成交值,TRIX 三重指数平滑平均,VHF纵横指标,VMA量简单移动平均,VMACD量指数平滑移动平均,VOSC成交量震荡,WVAD威廉变异离散量,vol_ratio量比
- DataBase: quantaxis
- Collections: news
- BasicalName: title,datetime,content,author,reference
- AdvanceName: comments,likeNum
- DataBase: quantaxis
- Collections: finance_info,finance_balance,finance_profit,finance_cash
QAS103主要规范了爬虫的命名标准,UserAgent设置,cookie,session等规范。
自定义数据需要按照分类标准引入数据库,如果是QAS101时间序列行情数据,QAS102文本信息数据,可以定制性的更新数据库(使用高级字段AdvanceName)
分市场的交易日存储,属于行情序列,但是是分片数据[不遵循QAS101] 按时间序列存储当日交易的所有股票,期货名称
- DataBase: quantaxis
- Collections: trade_date
- BasicalName: date,datestamp,exchangeName
- DataBase: quantaxis
- Collections: stock_list
- BasicalName: date,datestamp,stock[code,name]
交易量从QAS-101的数据格式规范中获取,此处的规范主要针对撮合机制,当策略的请求交易量大于当日真实成交量的1/8,则判断无法成交.
简单的行情判断机制是报价在[low,high]区间内,同时bid_amount小于真实交易量的1/8
QAF: 未来将加入更多的判断机制,尤其是深度池
QA_(n.)_(verb) n. 名词,一般是小类的名字 verb 动词,一般是这个小类的动作
QA_Spider_start
QA_Strategy_import
QA_util_log_info
QAS501-1主要规定了数据获取的打包规范,遵循此规范,可以进行API二次打包
QA_fetch_get_stock_day
QA_fetch_get_stock_min
QA_fetch_get_stock_tick
QA_fetch_get_stock_info
QA_fetch_get_stock_indicator
QA_fetch_get_future_day
QA_fetch_et_future_min
QA_fetch_get_future_tick
QA_fetch_get_future_info
QA_fetch_get_options_day
QA_fetch_get_options_min
QA_fetch_get_options_tick
QA_fetch_get_options_info
QAS-501-2 主要规定了市场交易的调用接口规范,包括数据返回和响应状态码遵循QAS-401
QAS-501-4 主要规定了数据库存储和调用时的命名规范,采用驼峰法则去定义 常见的Name定义
- code
- name
- open(double)
- high(double)
- low(double)
- close(double)
- volume(double)
QUANTAXIS-SINCE 2015-yutiansut
QUANTAXIS wiki
欢迎在这里添加和分享你的想法和量化的知识