Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

This package can very easily and friendly download China market and USA market and any stock data from yahoo HK and future data from Sina, then analyze the data.

Project description

* Ivystock
Ivystock

* Installation
pip install Ivystock

* Help
Hongkong
code='0336.HK'
Shenzhen
code='000969.SZ'
Shanghai
code='600011.SS'
Shangzheng Index
code='000001.SS'
HK index
code='^HSI'
USA stock
code='AAPL'

* Sample

from ivystock import ivystock as ivy

if __name__ == '__main__':
code = '0336.HK'
stock = ivy.Ivystock()
# SS.begin = SS.datetime_timestamp("2018-1-1 09:00:00")
#stock.help()
#stock.get(code)
#stock.plot(code)

# hl50 = r"http://www.csindex.com.cn/uploads/file/autofile/cons/000015cons.xls"
# hs300 = r"http://www.csindex.com.cn/uploads/file/autofile/closeweight/000300closeweight.xls"

#aa = stock.get_code(hs300)

#dd = stock.get_code('hl50')
#stock.get_list(dd)
#stock.preprocess(dd,['Date','Close'])

#futurelist = ['TA0','RS0','RM0']
code = 'A0'
#stock.get_future(futurelist)
tick = stock.get_dick(code, '5m')
tick1m = stock.get_1m(code)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Ivystock-0.4.1.zip (5.3 kB) Copy SHA256 hash SHA256 Source None May 19, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page