JSEStocks 0.0.3
a module that returns all the stock data in JSE
License: MIT

![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAScAAACrCAMAAAATgapkAAAAe1BMVEUoKCj///8uLi4rKysAAAAjIyMbGxsgICAICAiHh4fPz88PDw8WFhb6+vq6urqfn59ERETp6elkZGQUFBTX19dXV1fz8/Pi4uJJSUl/f3+0tLRycnJAQEDV1dXFxcWUlJQ1NTWRkZGkpKRoaGiCgoJYWFirq6u2trZ3d3cDANGnAAAHmUlEQVR4nO2c63aqOhRGEZOAglfwVq/orqfv/4QHrUGQJHwgFmzX/NMxdpWSucPKSrKCZXeJYmzLtohiyBMGecIgTxjkCYM8YZAnDPKEQZ4wyBMGecIgTxjkCYM8YZAnDPKEQZ4wyBMGecIgTxjkCYM8YZAnDPKEQZ4wyBMGecIgTxjkCYM8YZAnDPKEQZ4wyBMGecIgTxjkCYM8YZAnDPKEQZ4wyBMGecIgTxjkCaN9nrgjhB8jHN70raRolScuPMYO069oPxrte+slY55oiaxaPHkuQFGDuc8OveGik2YyXFlMFN8A8vczANfMUoenYNcvJtwYRXFmj7KOJNuVFxTcgNgCN5Bmuyorqg5PbKBs4ANLgyfOljv9Nwcj32zKQ/5+hpFfso2t8ORbBktX9swx3MAf8cRWxd+ezFz9DfwNT+wDaxrT3sCf8MT6Dx+cL/rD4XC3nTz8e9/TmX4XT9CtaTyxTGjqRzOXMdeLiX8uo236l5OuJki9iSfnX6+Y6KD8rnu833y4Clw/rSJOqbqj+f0Dc1stygH+fpZZ2fS1ljxTIKhb+HnvLVNVRskDFqVEaeYy0A2kKZ3lNzxvYUkQOmpH/kDcH82FYdR7Kc16Ej0pYKUfzWKb/xJRO9PnXkiznpLu1DP3E2+WDKn/Sk/NaqFRT84U7SViI0UNvB+5tUca9eTJDLNbGFfF5vuTQ97MQkujnuRjNwSis7j0vXDJGlqPqsUTQ1A0kN+609Q0yZW4x8G6KUv1ePIWk2Lm41wb+ezmCRvshddMCL/S5PxO3NYJFg2N9W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y+EKzS+uwfaLgrM25Rbqcbq+t0PS6YfKp4qOfL6Gap/uTF09w3SB/IoNN7yv/pnFcjFO7mfPI8/I9j3tBqu5nrYx0fllKP7sV53f+OtW8UTddVcmFG6xSFRVz46joHNIFBYOPWeZVa9wJ2PicUql+GY0zKskROkGapup6gfcv1bxOOJr6jDH3slQ4izJvTBmot3ATeJB9D8182JsxeS17fc7UsGgmg21eH3cfX9o0WITbcPFYQaHZ6U6TimTJt+JrbRe50pWj5glusyfLmwLHyRYW0MG9paHwKYX2nRmt9hTnR2HR7ZyxShyHRcXOFxtt4tBuT3FW0zM2bzKDcx3fP5qudD3XoVfeck9x87yR1tRkZXz33iOBt9eW0nXme9fUsNZ7ujRvtVXdyO5Ueo/MZ58fykK63brgjJAYlqX0kujz+wiC8a+PdCCeh+dTtSM9jsfG0S5zre1xClzLK8tP5ZlZLq/l5bP112r1dVrGiVRQfap6fcVv9/P7WmOPuU9cq07q25e6vOdZ1PSSZ6fGa9VDq94X3WLIEwZ5wiBPGOQJgzxhkCcM8oRBnjDIEwZ5wiBPGOQJgzxhkCcM8oRBnjDIEwZ5wiBPGOQJgzxhkCcM8oRBnjDIEwZ5wiBPGOQJgzxhkCcM8oRBnjDIEwZ5wiBPGOQJgzxhkCcM8oRBnjDIEwZ5wiBPGOQJw7YONlHM4X+m8XzERz0RIAAAAABJRU5ErkJggg==)

# JSE STOCK Python Module

this module returns stock history for any given module

## Installation
`pip install JSEStocks`

## Usage

### Getting all JSE stocks
```
import JSEStocks
JSEStocks.ReturnListStocks()
```

- Output
```
        StockCode,CompanyNames
        PRX,Prosus N.V. 
        ANH,Anheuser-Busch Inbev 
        BTI,British American Tobacco 
        GLN,Glencore plc 
        CFR,Compagnie Fin Richemont 
        BHP,BHP Group plc 
        NPN,Naspers Limited - N 
        AGL,Anglo American plc 
        AMS,Anglo American Platinum Ltd 
        FSR,Firstrand Limited 
        MTN,MTN Group Limited 
        VOD,Vodacom Group Limited 
        SBK,Standard Bank Group 
        CPI,Capitec Bank Holdings 
        SOL,Sasol Limited 
        S32,South32 Limited 
        IMP,Impala Platinum Holdings Limited 
        MNP,Mondi plc 
        KIO,Kumba Iron Ore 
        SSW,Sibanye Stillwater Limited 
        ABG,Absa Group Limited 
        GFI,Gold Fields Limited 
        SLM,Sanlam Limited 
        SHP,Shoprite Holdings Limited 
        ANG,Anglogold Ashanti 
        BID,Bid Corporation Limited 
        DSY,Discovery Limited 
        NED,Nedbank Group Limited 
        APN,Aspen Pharmacare Holdings Limited 
        PPH,Pepkor Holdings Limited 
        NHM,Northam Platinum Limited 
        RMI,Rand Merchant Investment Holdings 
        CLS,Clicks Group Limited 
        REM,Remgro Limited 
        OMU,Old Mutual Limited 
        NRP,Nepi Rockcastle plc 
        BVT,Bidvest Group 
        INP,Investec plc 
        EXX,Exxaro Resources Limited 
        RNI,Reinet Investments S.C.A. 
        WHL,Woolworths Holdings Limited 
        MCG,MultiChoice Group 
        MRP,Mr Price Group 
        GRT,Growthpoint Properties Limited 
        ARI,African Rainbow Minerals 
        MEI,Mediclinic International plc 
        QLT,Quilter plc 
        RBP,Royal Bafokeng Platinum Limited 
        TFG,The Foschini Group 
        DGH,Distell Group Holdings 
        VVO,Vivo Energy plc 
        HMN,Hammerson plc 
        TBS,Tiger Brands Limited 
        N91,Ninety One plc 
        LHC,Life Healthcare Group 
        TXT,Textainer Group Holdings 
        HAR,Harmony Gold Mining Company 
        SPP,Spar Group Limited 
        TCP,Transaction Capital Ltd 
        SRE,Sirius Real Estate 
        SNT,Santam Limited 
        CCO,Capital & Counties Properties plc 
        DCP,Dis-Chem Pharmacies Limited 
        MSP,MAS Real Estate Inc 
        MTM,Momentum Metropolitan Holdings 
        LBH,Liberty Holdings Limited 
        INL,Investec Limited 
        APH,Alphamin Resources Corporation 
        BAW,Barloworld Limited 
        PIK,Pick n Pay Stores Limited 
        AVI,AVI Limited 
        TKG,Telkom SA Limited 
        RDF,Redefine Properties Limited 
        RES,Resilient REIT Limited 
        SAP,Sappi Limited 
        TRU,Truworths International Limited 
        BYI,Bytes Technology Group 
        MTH,Motus Holdings Limited 
        SNH,Steinhoff International Holdings NV 
        NTC,Netcare Limited 
        ITE,Italtile Limited 
        KST,PSG Konsult Limited 
        PSG,PSG Group Limited 
        CML,Coronation Fund Managers 
        KRO,Karooooo Ltd 
        NY1,Ninety One Limited 
        EQU,Equites Property Fund Limited 
        FFA,Fortress REIT Limited - A 
        LTE,Lighthouse Capital Limited 
        RCL,RCL Foods Limited 
        IPL,Imperial Logistics Limited 
        MSM,Massmart Holdings Limited 
        AFE,AECI Limited 
        HYP,Hyprop Investments Limited 
        SPG,Super Group Limited 
        TGA,Thungela Resources Limited 
        IAP,Irongate Group 
        TSG,Tsogo Sun Gaming 
        ACL,ArcelorMittal South Africa Limited 
        VKE,Vukile Property Fund Limited 
        KAP,Kap Industrial Holdings Limited 
        STP,Stenprop Limited 
        DRD,DRDGOLD Limited 
        JSE,JSE Limited 
        IPF,Investec Property Fund Limited 
        OMN,Omnia Holdings Limited 
        EPP,EPP N.V. 
        GTC,Globe Trade Centre S.A. 
        AIP,Adcock Ingram Holdings 
        AIL,African Rainbow Capital Investments 
        RLO,Reunert Limited 
        ADH,ADvTECH Limited 
        AFT,Afrimat Limited 
        PAN,Pan African Resources plc 
        COH,Curro Holdings Limited 
        DTC,Datatec Limited 
        JBL,Jubilee Metals Group Plc 
        OCE,Oceana Group Limited 
        THA,Tharisa plc 
        PPC,PPC Limited 
        ARL,Astral Foods Limited 
        CSB,Cashbuild Limited 
        FBR,Famous Brands Limited 
        SSS,Stor-Age Property REIT 
        SUI,Sun International Limited 
        WBO,Wilson Bayly Holmes-Ovcon Limited 
        RBX,Raubex Group Limited 
        HCI,Hosken Consolidated Investments Limited 
        MUR,Murray & Roberts Holdings Limited 
        SAC,SA Corporate Real Estate Fund Limited 
        BAT,Brait SE 
        ATT,Attacq Limited 
        MTA,Metair Investments Limited 
        AFH,Alexander Forbes Group Holdings Limited 
        RAV,Raven Property Group Limited 
        EMI,Emira Property Fund Limited 
        MPT,Mpact Limited 
        ZED,Zeder Investments Limited 
        GSH,Grindrod Shipping Holdings 
        TGO,Tsogo Sun Hotels 
        MED,Middle East Diamond Resources Limited 
        SHG,Sea Harvest Group Limited 
        BLU,Blue Label Telecoms 
        L2D,Liberty Two Degrees Limited 
        REN,Renergen Limited 
        MIX,Mix Telematics Limited 
        HDC,Hudaco Industries Limited 
        LBR,Libstar Holdings Limited 
        GML,Gemfields Group Limited 
        L4L,Long4Life Limited 
        KAL,Kaap Agri Limited 
        NT1,Net 1 UEPS Technologies Inc 
        FFB,Fortress REIT Limited - B 
        MTNZF,MTN Zakhele Futhi 
        PPE,Purple Group Limited 
        CLI,Clientele Limited 
        AHB,Arrowhead Properties Limited B 
        RFG,RFG Holdings Limited 
        AEG,Aveng Group Limited 
        MRF,Merafe Resources Limited 
        GND,Grindrod Limited 
        AEL,Allied Electronics Corporation 
        CAT,Caxton & CTP Publishers & Printers Limited 
        EXP,Exemplar Reitail Limited 
        CLH,City Lodge Hotels Limited 
        IVT,Invicta Holdings Limited 
        SCD,Schroder European Real Estate Investment Trust 
        LEW,Lewis Group Limited 
        ACT,Afrocentric Investment Corp 
        SDO,STADIO Holdings Limited 
        HET,Heriot REIT Limited 
        HIL,Homechoice International plc 
        TDH,Tradehold Limited 
        WEZ,Wesizwe Platinum Limited 
        OAO,Oando PLC 
        NPK,Nampak Limited 
        CTA,Capital Appreciation Limited 
        SYG,Sygnia Limited 
        YYLBEE,YeboYethu (RF) Limited 
        DIA,Dipula Income Fund Limited A 
        SBP,Sabvest Capital Limited 
        OCT,Octodec Investments Limited 
        RMH,RMB Holdings Limited 
        FVT,Fairvest Property Holdings 
        CRP,Capital & Regional plc 
        AVV,Alviva Holdings Limited 
        SUR,Spur Corporation Limited 
        DRA,DRA Global Limited 
        CMH,Combined Motor Holdings Limited 
        TTO,Trustco Group Holdings Limited 
        SEA,Spear Reit Limited 
        MDI,Master Drilling Group Limited 
        ARH,ARB Holdings Limited 
        BWN,Balwin Properties Limited 
        ACS,Acsion Limited 
        BRN,Brimstone Investment Corporation - N Shares 
        SAR,Safari Investments RSA Limited 
        ENX,enX Group Limited 
        EMN,E Media Holdings Limited - N Shares 
        HLM,Hulamin Limited 
        MFL,Metrofile Holdings Limited 
        EPE,EPE Capital Partners Limited 
        OAS,Oasis Crescent Property Fund 
        ORN,Orion Minerals Limited 
        UPL,Universal Partners Limited 
        TEX,Texton Property Fund Limited 
        GPL,Grand Parade Investments Limited 
        BEL,Bell Equipment Limited 
        AYO,AYO Tech Solutions 
        YRK,York Timber Holdings Limited 
        ILU,Indluplace Properties Limited 
        DIB,Dipula Income Fund Limited B 
        HPR,Hosken Passenger Logistics and Rail Limited 
        APF,Accelerate Property Fund Ltd 
        QFH,Quantum Foods Holdings 
        SOLBE1,Sasol Limited - BEE 
        CHP,Choppies Enterprises Limited 
        AHA,Arrowhead Properties Limited A 
        PBG,PBT Group Limited 
        SFN,Sasfin Holdings Limited 
        EOH,EOH Holdings 
        TRE,Trencor Limited 
        TPF,Transcend Residential Property Fund Limited 
        BCF,Bowler Metcalf Limited 
        MST,Mustek Limited 
        FGL,Finbond Group Limited 
        DNB,Deneb Investments Limited 
        SNV,Santova Limited 
        NVS,Novus Holdings Limited 
        MMP,Marshall Monteagle PLC 
        WSL,Wescoal Holdings Limited 
        OLG,Onelogix Group Limited 
        TMT,Trematon Capital Investments Limited 
        ART,Argent Industrial Limited 
        DKR,Deutsche Konsum REIT-AG 
        NWL,Nu-World Holdings Limited 
        KP2,Kore Potash Plc 
        ADR,Adcorp Holdings Limited 
        TON,Tongaat Hulett Limited 
        EPS,Eastern Platinum Limited 
        HUG,Huge Group Limited 
        CND,Conduit Capital Limited 
        CKS,Crookes Brothers Limited 
        TPC,Transpaco Limited 
        CGR,Calgro M3 Holdings Limited 
        ALH,Alaris Holdings Limited 
        VUN,Vunani Limited 
        SEP,Sephaku Holdings Limited 
        NVE,Nvest Financial Holdings Limited 
        AEE,African Equity Empowerment Investments 
        DLT,Delta Property Fund Limited 
        ISB,Insimbi Industrial Holdings Ltd 
        ASC,Ascendis Health Limited 
        RSG,Resource Generation Limited 
        NRL,Newpark REIT Limited 
        RHB,RH Bophelo Limited 
        SOH,South Ocean Holdings 
        WKF,Workforce Holdings Limited 
        BUC,Buffalo Coal Corporation 
        BIK,Brikor Limited 
        TRL,Trellidor Holdings Limited 
        SEB,Sebata Holdings Limited 
        BAU,Bauba Resources Limited 
        AME,African Media Entertainment 
        EMH,E Media Holdings Limited 
        AVL,Advanced Health Limited 
        BRT,Brimstone Investment Corporation 
        ARA,Astoria Investments Limited 
        ETO,Etion Limited 
        ELI,Ellies Holdings Limited 
        LNF,London Finance & Investment Group Plc 
        HUL,Hulisani Limited 
        FSE,Firestone Energy Limited 
        KBO,Kibo Energy PLC 
        PFB,Premier Fishing and Brands 
        REA,Rebosis Property Fund - A Shares 
        RTN,Rex Trueform Group - N Shares 
        CVW,Castleview Property Fund Limited 
        REB,Rebosis Property Fund 
        CMO,Chrometco Limited 
        MCZ,MC Mining Limited 
        CSG,CSG Holdings Limited 
        ISA,ISA Holdings Limited 
        4SI,4Sight Holdings Limited 
        CGN,Cognition Holdings Limited 
        PPR,Putprop Limited 
        EEL,Efora Energy Limited 
        LAB,Labat Africa Limited 
        PMV,Primeserv Group Limited 
        SSK,Stefanutti Stocks Holdings Limited 
        EUZ,Europa Metals Limited 
        RNG,Randgold And Exploration Company 
        JSC,Jasco Electronics Holdings 
        AON,African and Overseas Enterprises - N Shares 
        TLM,TeleMasters Holdings Limited 
        UAT,Union Atlantic Minerals Limited 
        BSR,Basil Read Holdings Limited 
        AHL,AH-Vest Limited 
        HWA,Hwange Colliery Company Limited 
        RTO,Rex Trueform Group 
        SVB,SilverBridge Holdings Limited 
        NCS,Nictus Limited 
        PEM,Pembury Lifestyle Group 
        CAC,CAFCA Limited 
        PSV,PSV Holdings Limited 
        ILE,Imbalie Beauty Limited 
        MRI,Mine Restoration Investments Limited 
        TAS,Taste Holdings Limited 
        AOO,African and Overseas Enterprises Limited 
        VIS,Visual International Holdings Limited 
        ADW,African Dawn Capital 
        ECS,Ecsponent Limited 
        GLI,Go Life International Ltd 
        WEA,WG Wearne Limited 
        NFP,New Frontier Properties Limited 
        NUT,Nutritional Holdings Limited 
        ACZ,Arden Capital Limited 
        PHM,Phumelela Gaming And Leisure Limited 
        RPL,RDI REIT PLC 
        ACE,Accentuate Limited 
        RDI,Rockwell Diamonds Incorporated 
        AFX,African Oxygen Limited 
        ACG,Anchor Group Limited 
        ALP,Atlantic Leaf Properties Limited 
        TBG,Tiso Blackstar Group SE 
        CTK,Cartrack Holdings 
        UCP,Unicorn Capital Partners Limited 
        VLE,Value Group Limited 
        COM,Comair Limited 
        CIL,Consolidated Infrastructure Group 
        EFG,Efficient Group Limited 
        ELR,ELB Group Limited 
        ESR,Esor Limited 
        FDP,Freedom Property Fund Limited 
        GAI,Gaia Infrastructure Capital Limited 
        GRF,Group Five Limited 
        HPB,Hospitality Property Fund - B 
        IDQ,Indequity Group Limited 
        KDV,Kaydav Group Limited 
        MZR,Mazor Group Limited 
        MLE,Mettle Investments Limited 
        MNK,Montauk Holdings Limited 
```


### Getting stock

Example Tongaat Hullets with code of `TON`

```
import JSEStocks
JSEStocks.GetStockHistory('TON')

```

Output
```
                   Open         High          Low        Close    Adj Close  Volume       Date
Date
2000-01-04  4066.684082  4066.684082  3996.163574  3996.163574  1829.829346  183560 2000-01-04
2000-01-05  3917.807617  4011.834961  3882.547119  3902.136230  1786.775024  117768 2000-01-05
2000-01-06  3839.451416  3839.451416  3721.916992  3725.834961  1706.046875  106109 2000-01-06
2000-01-07  3761.095215  3917.807617  3761.095215  3761.095215  1722.192749  206864 2000-01-07
2000-01-10  3902.136230  3996.163574  3862.958252  3862.958252  1768.835205  141350 2000-01-10
...                 ...          ...          ...          ...          ...     ...        ...
2022-01-27   485.000000   490.000000   461.000000   467.000000   467.000000  129986 2022-01-27
2022-01-28   475.000000   475.000000   445.000000   450.000000   450.000000  243373 2022-01-28
2022-01-31   455.000000   479.000000   444.000000   450.000000   450.000000  334563 2022-01-31
2022-02-01   460.000000   460.000000   431.000000   445.000000   445.000000  193173 2022-02-01
2022-02-02   444.000000   450.000000   435.000000   449.000000   449.000000  350496 2022-02-02

[5682 rows x 7 columns]
```

##### made with ❤️ by Ashlin Darius Govindasamy - ADGSTUDIOS 2022