npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

big-a-api

v1.0.1

Published

A股node.js调用接口

Readme

big-a-api

A股node.js调用接口, 目前信息源来源于腾讯证券。

  • 建议
    • 最好用于腾讯相关的服务比如微信小程序等等,否则可能容易出现调用异常。
    • 同时服务存在限流,请注意缓存数据。
    • 此SDK为仅做封装,API是否可用最终由腾讯证券提供,本SDK不保证可用性。

install

npm install big-a-api

use

根据股票名字进行搜索获取股票代码

    import { getStockSearch } from 'big-a-api'
    const query = "中国平安";
    // @param 
    // string query 查询股票关键词
    const data = await getStockSearch({ query }); // output [{name:"中国平安",code:"sz000001"},...]

获取实时价格

    import { getRealTimeData } from 'big-a-api'
    // @param 
    // string code 股票代码 
    // number limit 最近N条
    const data = await getRealTimeData({ code: "sz000001", limit: 5 });
    /**
     * output:
        {
            date: '20250303',
            data: [
                { time: '13:13:24', price: '11.55', volume: '188', direction: 'S' },...
            ]
        }
     */

获取K线

    import { getSeriesData } from 'big-a-api'
    // @param 
    // string code 股票代码 
    // string interval 周期 day为日线 week为周线 month为月线  
    // number limit 最近N条
    const data = await getSeriesData({ code: "sz000001", interval: "day", limit: 10 });
    /**
     * output:
        [
            {
                date: '2025-02-17',
                open: '11.60',
                close: '11.78',
                high: '11.80',
                low: '11.55',
                volume: '2061965.00'
            },...
        ]
     */