https://github.com/aweiu/wow-stocks
😱 实时获取所有 A 股现在 + 过去的行情数据,可基于它来做量化交易的行情服务
https://github.com/aweiu/wow-stocks
stock
Last synced: about 2 months ago
JSON representation
😱 实时获取所有 A 股现在 + 过去的行情数据,可基于它来做量化交易的行情服务
- Host: GitHub
- URL: https://github.com/aweiu/wow-stocks
- Owner: aweiu
- Created: 2019-08-28T12:59:30.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-08T13:44:22.000Z (almost 6 years ago)
- Last Synced: 2025-04-12T08:48:58.679Z (2 months ago)
- Topics: stock
- Language: TypeScript
- Homepage:
- Size: 44.9 KB
- Stars: 24
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wow-stocks
实时获取所有 A 股现在 + 过去的行情数据,可基于它来做量化交易的行情服务,也可以用来实时选股。
## 示例
```javascript
import { update } from 'wow-stocks'
import { ma, cross } from 'wow-stock-calculator'update({ length: 90 }).then(({ watch }) => {
watch((stocks) => {
// 获取当前 5 日均线上穿 10 日均线的所有股票
console.log(
stocks.filter((stock) => {
const ma5 = ma(stock.close, 5)
const ma10 = ma(stock.close, 10)
const ma5CrossMa10 = cross(ma5, ma10)
return ma5CrossMa10[ma5CrossMa10.length - 1]
}),
)
})
})
```## 文档
https://aweiu.com/documents/wow-stocks/