
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
tushare-api
Advanced tools
tushare.pro 的 HTTP API 封装。
npm install tushare-api
首先,设置环境变量 TUSHARE_TOKEN
API = require('tushare-api')
也可以这样
API = require('tushare-api/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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.