
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
tushare-api
Advanced tools
npm install tushare-api
首先,设置环境变量 TUSHARE_TOKEN
API = require('tushare-api')
也可以这样
Api = require('tushare-api/api')
API = new Api("你的令牌xxx")
使用方式,比如读取沪深日线的成交量、成交额,调用如下 :
const API = require('tushare-api');
(async ()=>{
var data = await API.index_daily(
{
ts_code:'399300.SZ',
start_date:20180101,
end_date:20181010,
},
"vol,amount"
);
console.log(data);
})()
进入 src 目录
运行一次测试 npm run test
持续运行测试 npm run dev
FAQs
Did you know?

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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.