diff --git a/QUANTAXISWebkit/.gitignore b/QUANTAXISWebkit/.gitignore new file mode 100644 index 000000000..d144432a0 --- /dev/null +++ b/QUANTAXISWebkit/.gitignore @@ -0,0 +1,14 @@ +.DS_* +*.log +logs +**/*.backup.* +**/*.back.* + +node_modules +bower_componets + +*.sublime* + +psd +thumb +sketch diff --git a/QUANTAXISWebkit/.npmignore b/QUANTAXISWebkit/.npmignore new file mode 100644 index 000000000..d144432a0 --- /dev/null +++ b/QUANTAXISWebkit/.npmignore @@ -0,0 +1,14 @@ +.DS_* +*.log +logs +**/*.backup.* +**/*.back.* + +node_modules +bower_componets + +*.sublime* + +psd +thumb +sketch diff --git a/QUANTAXISWebkit/LICENSE b/QUANTAXISWebkit/LICENSE new file mode 100644 index 000000000..27a692320 --- /dev/null +++ b/QUANTAXISWebkit/LICENSE @@ -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. \ No newline at end of file diff --git a/QUANTAXISWebkit/README.md b/QUANTAXISWebkit/README.md index 83d4815ce..987bc2b8a 100644 --- a/QUANTAXISWebkit/README.md +++ b/QUANTAXISWebkit/README.md @@ -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) \ No newline at end of file +### 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 "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. + +--- +![docor]() +built upon love by [docor](git+https://github.com/turingou/docor.git) v0.3.0 diff --git a/QUANTAXISWebkit/backend/.gitignore b/QUANTAXISWebkit/backend/.gitignore new file mode 100644 index 000000000..d144432a0 --- /dev/null +++ b/QUANTAXISWebkit/backend/.gitignore @@ -0,0 +1,14 @@ +.DS_* +*.log +logs +**/*.backup.* +**/*.back.* + +node_modules +bower_componets + +*.sublime* + +psd +thumb +sketch diff --git a/QUANTAXISWebkit/backend/.npmignore b/QUANTAXISWebkit/backend/.npmignore new file mode 100644 index 000000000..d144432a0 --- /dev/null +++ b/QUANTAXISWebkit/backend/.npmignore @@ -0,0 +1,14 @@ +.DS_* +*.log +logs +**/*.backup.* +**/*.back.* + +node_modules +bower_componets + +*.sublime* + +psd +thumb +sketch diff --git a/QUANTAXISWebkit/backend/LICENSE b/QUANTAXISWebkit/backend/LICENSE new file mode 100644 index 000000000..a4caedaa2 --- /dev/null +++ b/QUANTAXISWebkit/backend/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2017 yutianut (yutiansut@qq.com) + +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. \ No newline at end of file diff --git a/QUANTAXISWebkit/backend/readme.md b/QUANTAXISWebkit/backend/readme.md index 37fdcb801..17688c487 100644 --- a/QUANTAXISWebkit/backend/readme.md +++ b/QUANTAXISWebkit/backend/readme.md @@ -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 \ No newline at end of file +### MIT license +Copyright (c) 2017 yutianut (yutiansut@qq.com) + +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. + +--- +![docor]() +built upon love by [docor](git+https://github.com/turingou/docor.git) v0.3.0 diff --git a/QUANTAXISWebkit/client/.gitignore b/QUANTAXISWebkit/client/.gitignore index 3237c8dd2..d144432a0 100644 --- a/QUANTAXISWebkit/client/.gitignore +++ b/QUANTAXISWebkit/client/.gitignore @@ -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 diff --git a/QUANTAXISWebkit/client/.npmignore b/QUANTAXISWebkit/client/.npmignore new file mode 100644 index 000000000..d144432a0 --- /dev/null +++ b/QUANTAXISWebkit/client/.npmignore @@ -0,0 +1,14 @@ +.DS_* +*.log +logs +**/*.backup.* +**/*.back.* + +node_modules +bower_componets + +*.sublime* + +psd +thumb +sketch diff --git a/QUANTAXISWebkit/client/LICENSE b/QUANTAXISWebkit/client/LICENSE new file mode 100644 index 000000000..6355df564 --- /dev/null +++ b/QUANTAXISWebkit/client/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2017 Greg Holguin <simulatedgreg@gmail.com> + +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. \ No newline at end of file diff --git a/QUANTAXISWebkit/client/README.md b/QUANTAXISWebkit/client/README.md index d6a0dca9c..daa2e1a71 100644 --- a/QUANTAXISWebkit/client/README.md +++ b/QUANTAXISWebkit/client/README.md @@ -1,19 +1,51 @@ -# quantaxis +## quantaxis ![NPM version](https://img.shields.io/npm/v/quantaxis.svg?style=flat) -> 客户端部分 +An electron-vue project -## Build Setup +### Installation +```bash +$ npm install quantaxis +``` + +### Example +```js +var quantaxis = require('quantaxis'); +``` -``` bash -# install dependencies -npm install +### API +check this file: `` -# serve with hot reload at localhost:9080 -npm run dev +### 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 -# build electron app for production -npm run build +### MIT license +Copyright (c) 2017 Greg Holguin <simulatedgreg@gmail.com> -# run webpack in production -npm run pack -``` +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. + +--- +![docor]() +built upon love by [docor](git+https://github.com/turingou/docor.git) v0.3.0 diff --git a/QUANTAXISWebkit/web/.gitignore b/QUANTAXISWebkit/web/.gitignore index 09552ad97..d144432a0 100644 --- a/QUANTAXISWebkit/web/.gitignore +++ b/QUANTAXISWebkit/web/.gitignore @@ -1,6 +1,14 @@ -.DS_Store -node_modules/ -dist/ -npm-debug.log* -yarn-debug.log* -yarn-error.log* +.DS_* +*.log +logs +**/*.backup.* +**/*.back.* + +node_modules +bower_componets + +*.sublime* + +psd +thumb +sketch diff --git a/QUANTAXISWebkit/web/.npmignore b/QUANTAXISWebkit/web/.npmignore new file mode 100644 index 000000000..d144432a0 --- /dev/null +++ b/QUANTAXISWebkit/web/.npmignore @@ -0,0 +1,14 @@ +.DS_* +*.log +logs +**/*.backup.* +**/*.back.* + +node_modules +bower_componets + +*.sublime* + +psd +thumb +sketch diff --git a/QUANTAXISWebkit/web/LICENSE b/QUANTAXISWebkit/web/LICENSE new file mode 100644 index 000000000..cfbe9db3b --- /dev/null +++ b/QUANTAXISWebkit/web/LICENSE @@ -0,0 +1,2 @@ +Copyright (c) 2017 yutiansut <yutiansut@qq.com> + diff --git a/QUANTAXISWebkit/web/readme.md b/QUANTAXISWebkit/web/readme.md index 180ca502c..92481ff99 100644 --- a/QUANTAXISWebkit/web/readme.md +++ b/QUANTAXISWebkit/web/readme.md @@ -1,22 +1,30 @@ -# quantaxisweb +## quantaxisweb ![NPM version](https://img.shields.io/npm/v/quantaxisweb.svg?style=flat) -> A Vue.js project +A Vue.js project -## Build Setup - -``` bash -# install dependencies -npm install +### Installation +```bash +$ npm install quantaxisweb +``` -# serve with hot reload at localhost:8080 -npm run dev +### Example +```js +var quantaxisweb = require('quantaxisweb'); +``` -# build for production with minification -npm run build +### API +check this file: `` -# build for production and view the bundle analyzer report -npm run build --report -``` -## 展望 +### 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 -需要有一个setting表去配合 \ No newline at end of file +--- +![docor]() +built upon love by [docor](git+https://github.com/turingou/docor.git) v0.3.0