tushare-js
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

tushare-js

tushare.pro node.js sdk

Commitizen friendly Continuous Deployment FOSSA Status GitHub license

usage

  • external dependency - danfojs-node

install

yarn add tushare-js danfojs-node
import TuShare from 'tushare-js';

const ts=TuShare('your token');
//stock daily api
const daily_datas=ts.daily({
  params: { ts_code: '002156',start_date: '20200808',end_date: '20220809'},
  fields: ['ts_code', 'trade_date', 'open', 'high', 'low'],
})
// common api query
const dt=ts.query({
  api_name:'daily'
  params: { ts_code: '002156',start_date: '20200808',end_date: '20220809'},
  fields: ['ts_code', 'trade_date', 'open', 'high', 'low'],
})

License

FOSSA Status

Analytics

Alt

Package Sidebar

Install

npm i tushare-js

Weekly Downloads

8

Version

1.3.0

License

MIT

Unpacked Size

2.53 MB

Total Files

25

Last publish

Collaborators

  • gavin-hao