/setushare

security data from tushare.org

Primary LanguageCoffeeScriptMIT LicenseMIT

NPM version npm download

warning:

This doesn't seem to work correctly since it will return repeatedly on multiple querying.

Query tushare.org through python-shell. Also see example.

Tushare = require './setushare'
ts = new Tushare()
#console.log ts
ts.data {func: 'get_hist_data',args: "'300388',ktype='W'"}, (res)->
  console.log(res)

ts.data {func: 'get_hist_data',args: "'159915',ktype='M'"}, (res)->
  console.log(res)

ts.data {func: 'get_h_data',args: "'300388'"}, (res)->
  console.log(res)
  # use this to end conversatio
ts.done()