New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

finclip-wow-stocks

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

finclip-wow-stocks

实时获取所有 A 股现在 + 过去的行情数据,可基于它来做量化交易的行情服务,也可以用来实时选股

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
0
Weekly downloads
 
Created
Source

wow-stocks

实时获取所有 A 股现在 + 过去的行情数据,可基于它来做量化交易的行情服务,也可以用来实时选股。

示例

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/

Keywords

FAQs

Package last updated on 11 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc