Skip to main content

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.

Source Distribution

Ivystock-0.4.1.zip (5.3 kB view details)

Uploaded Source

File details

Details for the file Ivystock-0.4.1.zip.

File metadata

  • Download URL: Ivystock-0.4.1.zip
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Ivystock-0.4.1.zip
Algorithm Hash digest
SHA256 1c55f10043564ab493cb1d726097233fcc0cf051e52fab6f8ec33b6b92a8d281
MD5 ae34d8f812f527184a01ff4440ce4328
BLAKE2b-256 e16a500bc76834373422f87444eacbf30de4af666250f4c0fc2d6bb7889c0fd6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page