python + tushare get stock suspension and resumption of daily information

Interface: suspend

Updated: irregular

Description: Get the suspension and resumption of daily stock information

Note: tushare module to download and install the tutorial, please refer to my previous article

Input parameters

Name | Type | Required | Description

ts_code | str | N | stock code (one of three)

suspend_date | str | N | suspension date (one of three)

resume_date | str | N | resumption date (one of three)

Output parameters

Name | Type | Description

ts_code | str | ticker

suspend_date | str | suspension Date

resume_date | str | resumption date

ann_date | str | Date Announcement

suspend_reason | str | suspension reasons

reason_type | str | Category reason for suspension

Interface Usage

pro = ts.pro_api()

df = pro.suspend(ts_code='600848.SH', suspend_date='', resume_date='', fields='')

or

df = pro.query('suspend', ts_code='', suspend_date='20180720', resume_date='', fields='')

Sample data

      ts_code suspend_date resume_date        suspend_reason

0 600848.SH 20180809 None proposed planning a major reorganization of assets

1 600848.SH 20180808 None proposed planning a major reorganization of assets

2 600848.SH 20180807 None proposed planning a major reorganization of assets

3 600848.SH 20180806 None proposed planning a major reorganization of assets

4 600848.SH 20180803 None proposed planning a major reorganization of assets

5 600848.SH 20180802 None proposed planning a major reorganization of assets

6 600848.SH 20180801 None proposed planning a major reorganization of assets

7 600848.SH 20180731 None proposed planning a major reorganization of assets

8 600848.SH 20180730 None proposed planning a major reorganization of assets

9 600848.SH 20180727 None proposed planning a major reorganization of assets

10 600848.SH 20180726 None proposed planning a major reorganization of assets

11 600848.SH 20180725 None proposed planning a major reorganization of assets

12 600848.SH 20180723 None proposed planning a major reorganization of assets

13 600848.SH 20180720 None proposed planning a major reorganization of assets

14 600848.SH 20180719 None proposed planning a major reorganization of assets

15 600848.SH 20180718 None proposed planning a major reorganization of assets

16 600848.SH 20180717 None proposed planning a major reorganization of assets

17 600848.SH 20180716 None proposed planning a major reorganization of assets

18 600848.SH 20180713 None proposed planning a major reorganization of assets

19 600848.SH 20180712 None proposed planning a major reorganization of assets

20 600848.SH 20180711 None proposed planning a major reorganization of assets

About tushare points earning

    I do quantitative investment team in transition, for the trading strategy,

    We do have more idle transfer departure colleagues.

    600: Original 50, only 39 yuan

    1,500 points price: $ 140 only 109 yuan (sold out)

    2000 points: the original price of 190 yuan, only 149 yuan

    5000 points: the original price of 490 yuan, only 388 yuan (sold out).

    The small number even need to ask the Department of VX: a56746435 (Note tushare)

.

Guess you like

Origin www.cnblogs.com/tushare/p/11780594.html