# stock **Repository Path**: xxuyou/stock ## Basic Information - **Project Name**: stock - **Description**: DEMO 股票行情 - **Primary Language**: NodeJS - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2017-06-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![荆秀实时数据推送服务](http://xxuyou.com/static/screenshot/logo-160.png)](http://xxuyou.com) # WSS Real-time Data Push Service ## DEMO 股票行情 [![Gitter](https://img.shields.io/badge/Powered%20by-WSS%20Realtime%20Data%20Push-brightgreen.svg)](http://xxuyou.com) 本 DEMO 简单演示了向 WSS RESTful API 发布数据,以及订阅者订阅数据。 * 响应事件,接收数据 ![响应事件,接收数据](http://xxuyou.com/static/screenshot/demo-stock-01.png) * 开启 DEBUG 模式,可在控制台查看 ![开启 DEBUG 模式,可在控制台查看](http://xxuyou.com/static/screenshot/demo-stock-02.png) ## 最佳实践 1. Clone 代码到本地 ```sh cd code/in/your/dir/ git clone https://github.com/xxuyou/stock.git ``` 2. 进入目录,编译代码 ```sh cd stock/ npm install ``` 3. 运行 ```sh npm start ``` 4. 打开浏览器,输入 http://127.0.0.1:8360 即可看到行情数据推送过来 ###### 提示:行情数据为模拟数据,请勿据此做出任何决策! ###### 提示:请勿将 DEMO 中的关键参数转作它用! # 感谢 [![Gitter](https://img.shields.io/badge/Thanks%20for-ThinkJS%20Framework-brightgreen.svg)](https://github.com/thinkjs/thinkjs) 免费开源的 Node 开发框架![官网](http://thinkjs.org) [![Gitter](https://img.shields.io/badge/Thanks%20for-SuperAgent-brightgreen.svg)](https://github.com/visionmedia/superagent) a small progressive **client-side** HTTP request library [官网](http://visionmedia.github.io/superagent/) [![Gitter](https://img.shields.io/badge/Thanks%20for-JWT-brightgreen.svg)](https://github.com/auth0/node-jsonwebtoken) an open, industry standard **RFC 7519** method for representing claims securely between two parties. [官网](https://jwt.io) # License [MIT](https://github.com/thinkjs/thinkjs/blob/master/LICENSE)