Skip to content

Commit

Permalink
using docor
Browse files Browse the repository at this point in the history
  • Loading branch information
yutiansut committed Jul 4, 2017
1 parent 249a624 commit bd63fb2
Show file tree
Hide file tree
Showing 16 changed files with 405 additions and 128 deletions.
14 changes: 14 additions & 0 deletions QUANTAXISWebkit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_*
*.log
logs
**/*.backup.*
**/*.back.*

node_modules
bower_componets

*.sublime*

psd
thumb
sketch
14 changes: 14 additions & 0 deletions QUANTAXISWebkit/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_*
*.log
logs
**/*.backup.*
**/*.back.*

node_modules
bower_componets

*.sublime*

psd
thumb
sketch
19 changes: 19 additions & 0 deletions QUANTAXISWebkit/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2017 yutiansut

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.
107 changes: 45 additions & 62 deletions QUANTAXISWebkit/README.md
Original file line number Diff line number Diff line change
@@ -1,68 +1,51 @@
# QUANTAXIS 量化金融策略框架

QUANTAXIS量化工具箱,实现了股票和期货市场的全品种回测.通过分布式爬虫进行数据抓取,构建了响应式的数据清洗和行情推送引擎.搭建了支持多语言的开放式回测框架.并构建了交互可视化的客户端和网站.
## quantaxis ![NPM version](https://img.shields.io/npm/v/quantaxis.svg?style=flat)

> 0.3.9 版本将对于一体化和模块化流程进行进一步的优化
Integrated Quantitative Framework

![version](https://img.shields.io/badge/Version-%200.3.9dev/alpha-orange.svg)
![Pypi](https://img.shields.io/badge/Pypi-%200.3.9-blue.svg)
![Npm](https://img.shields.io/badge/Npm-%200.3.9-yellow.svg)
![author](https://img.shields.io/badge/Powered%20by-%20%20yutiansut-red.svg)
![license](https://img.shields.io/badge/License-%20MIT-brightgreen.svg)
![QQ group](https://img.shields.io/badge/QQGroup-%20563280067-yellow.svg)
![WebSite](https://img.shields.io/badge/Website-%20www.yutiansut.com-brown.svg)
![QQ](https://img.shields.io/badge/AutherQQ-%20279336410-blue.svg)


![QUANTAXIS LOGO](http://i1.piimg.com/1949/62c510db7915837a.png)



``` nodejs
mkdir web && cd web
npm install cnpm -g
cnpm install quantaxiswebkit
cd node_modules/quantaxiswebkit
npm run all
### Installation
```bash
$ npm install quantaxis
```



```
一键安装
npm run install
一键启动所有服务:
npm run all
安装后台
npm run install-backend
安装web
npm run install-web
安装client
npm run install-client
一键启动web+后台
npm run Xweb
一键启动Client+后台
npm run Xclient
只启动backend (后台)
npm run backend
只启动前端web
npm run website
只启动客户端Client
npm run client
### Example
```js
var quantaxis = require('quantaxis');
```
## 回测Webkit插件概览
### Web版
![](http://i1.piimg.com/567571/1b8ace2f83859112.png)

![](http://i2.muimg.com/567571/5079341ad1461a91.png)
![](http://i1.piimg.com/567571/09bd05c3698f2d38.png)
![](http://i1.piimg.com/567571/053ac3e3850f8f60.png)
### Client版
![](http://i2.muimg.com/4851/25f8b959d5c6f794.png)
### API
check this file: ``

### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3

### MIT license
Copyright (c) 2017 yutiansut

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the &quot;Software&quot;), 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 &quot;AS IS&quot;, 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.

---
![docor]()
built upon love by [docor](git+https://github.com/turingou/docor.git) v0.3.0
14 changes: 14 additions & 0 deletions QUANTAXISWebkit/backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_*
*.log
logs
**/*.backup.*
**/*.back.*

node_modules
bower_componets

*.sublime*

psd
thumb
sketch
14 changes: 14 additions & 0 deletions QUANTAXISWebkit/backend/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_*
*.log
logs
**/*.backup.*
**/*.back.*

node_modules
bower_componets

*.sublime*

psd
thumb
sketch
19 changes: 19 additions & 0 deletions QUANTAXISWebkit/backend/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2017 yutianut ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the &quot;Software&quot;), 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 &quot;AS IS&quot;, 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.
140 changes: 120 additions & 20 deletions QUANTAXISWebkit/backend/readme.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,127 @@
BACKEND
## quantaxisbackend ![NPM version](https://img.shields.io/npm/v/quantaxisbackend.svg?style=flat)

## APIS
a nodejs version of quantaxis spider

localhost:3000/stock
### /stock/history/all?code=xxx&feq=xxx
### /stock/history/time?code=xxx&start=(yyyy-mm-dd)&end=(yyyy-mm-dd)
### /stock/index/
### /stock/live?code=xxx
### /stock/quota/lhb?
### /stock/quota/lhb?
### Installation
```bash
$ npm install quantaxisbackend
```

### Example
```js
var quantaxisbackend = require('quantaxisbackend');
```

localhost:3000/backtest
### /ts?bidCode=000001&bidTime=2001-01-04&bidPrice=4.08
返回Success 则成交 返回failed 则不成交
一定要给报价
### API

- quantaxisbackend.domain()
- quantaxisbackend._events()
- quantaxisbackend._maxListeners()
- quantaxisbackend.setMaxListeners()
- quantaxisbackend.getMaxListeners()
- quantaxisbackend.emit()
- quantaxisbackend.addListener()
- quantaxisbackend.on()
- quantaxisbackend.prependListener()
- quantaxisbackend.once()
- quantaxisbackend.prependOnceListener()
- quantaxisbackend.removeListener()
- quantaxisbackend.removeAllListeners()
- quantaxisbackend.listeners()
- quantaxisbackend.listenerCount()
- quantaxisbackend.eventNames()
- quantaxisbackend.init()
- quantaxisbackend.defaultConfiguration()
- quantaxisbackend.lazyrouter()
- quantaxisbackend.handle()
- quantaxisbackend.use()
- quantaxisbackend.route()
- quantaxisbackend.engine()
- quantaxisbackend.param()
- quantaxisbackend.set()
- quantaxisbackend.path()
- quantaxisbackend.enabled()
- quantaxisbackend.disabled()
- quantaxisbackend.enable()
- quantaxisbackend.disable()
- quantaxisbackend.acl()
- quantaxisbackend.bind()
- quantaxisbackend.checkout()
- quantaxisbackend.connect()
- quantaxisbackend.copy()
- quantaxisbackend.delete()
- quantaxisbackend.get()
- quantaxisbackend.head()
- quantaxisbackend.link()
- quantaxisbackend.lock()
- quantaxisbackend.m-search()
- quantaxisbackend.merge()
- quantaxisbackend.mkactivity()
- quantaxisbackend.mkcalendar()
- quantaxisbackend.mkcol()
- quantaxisbackend.move()
- quantaxisbackend.notify()
- quantaxisbackend.options()
- quantaxisbackend.patch()
- quantaxisbackend.post()
- quantaxisbackend.propfind()
- quantaxisbackend.proppatch()
- quantaxisbackend.purge()
- quantaxisbackend.put()
- quantaxisbackend.rebind()
- quantaxisbackend.report()
- quantaxisbackend.search()
- quantaxisbackend.subscribe()
- quantaxisbackend.trace()
- quantaxisbackend.unbind()
- quantaxisbackend.unlink()
- quantaxisbackend.unlock()
- quantaxisbackend.unsubscribe()
- quantaxisbackend.all()
- quantaxisbackend.del()
- quantaxisbackend.render()
- quantaxisbackend.listen()
- quantaxisbackend.request()
- quantaxisbackend.response()
- quantaxisbackend.cache()
- quantaxisbackend.engines()
- quantaxisbackend.settings()
- quantaxisbackend._eventsCount()
- quantaxisbackend.locals()
- quantaxisbackend.mountpath()
- quantaxisbackend._router()

localhost:3000/users
### /signup?username=xxx&password=xxx
### /login?username=xxx&password=xxx
### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3

localhost:3000/apis
### /queryContentbyName
### /queryTitlebyName
### /queryContentbyTitle
### MIT license
Copyright (c) 2017 yutianut ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the &quot;Software&quot;), 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 &quot;AS IS&quot;, 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.

---
![docor]()
built upon love by [docor](git+https://github.com/turingou/docor.git) v0.3.0
25 changes: 14 additions & 11 deletions QUANTAXISWebkit/client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
.DS_Store
app/dist/index.html
app/dist/main.js
app/dist/renderer.js
app/dist/styles.css
builds/*
node_modules/
npm-debug.log
npm-debug.log.*
thumbs.db
!.gitkeep
.DS_*
*.log
logs
**/*.backup.*
**/*.back.*

node_modules
bower_componets

*.sublime*

psd
thumb
sketch
Loading

0 comments on commit bd63fb2

Please sign in to comment.