Package: energy-trading-api
Energy Trading API WrappersThis package aims to build Pandas-based API wrappers for Energy Markets Data coming from publicly available sources.
The results are returned in the Pandas dataFrame format unless specified otherwise.disclaimerWhile readily useable, this API library is under constant in development. The reliability of the data from  the API list depends on the sources.
Enjoy!Supported APIs:AustraliaWestern Australia Gas Bulletin BoardACCC LNG Netback Price IndexAustralian REC RegisterAEMC Gas Scheme Register (developing)Western Australia Wholesale Electricity Market (WEM)Bureau of MeteorologySingaporeSingapore National Electricity Market (NEMS)JapanJapan Electric Power ExchangeKyushu Electric Power Company - H/5M Demand and Forecasted DemandChubu Electric Power Company - Hourly Historical and Current DemandTokyo Electric Power Company - Hourly Historical and Current DemandChugoku Electric Power Company - Hourly Historical DemandFEPC - Federation of Electric Power Companies - Power Statistics LibraryGlobalU.S. Energy Information Administration Open DataInstallationPython 3.6 or 3.7To install,  usepip:$pipinstallenergy-trading-apiRequirementsPython 3.7UsageAUSTRALIAWestern Australian Wholesale Electricity Market (WEM)fromenergy_trading_apiimportaustraliaWEMdf=australiaWEM.loadForecast()df1=australiaWEM.demandSideProgrammePrices(year="2019")WEM Data API DocumentationACCC LNG Netback Price Seriesfromenergy_trading_apiimportaustraliaLNGnetback,netforward,merged=australiaLNG.acccNetbackPrice()print(netback.head())ACCC LNG Netback Price Series DocumentationAustralian REC Registerfromenergy_trading_apiimportaustraliaRECdf=australiaREC.recDay("2019-01-01")REC Registry API DocumentationAEMC Gas Scheme Registerfromenergy_trading_apiimportaustraliaNGdf=australiaNG.pipelineRegister()df1=australiaNG.pipelineRegisterSearch(state="NSW",operator="APA Group")AEMC Gas Scheme Register WebsiteWestern Australia Gas Bulletin Boardfromenergy_trading_apiimportwagbbwagbb.capacityOutlook()WAGBB API DocumentationAustralian Bureau of MeteorologyRetrieves BOM records into a pandas dataframe, given Product and location.For instance, Bankstown time series data has a product code of IDN60901.94765.To return Air Temp, Apparent Temp Rel Humidity, Cloud data in a pandas df, simply do:fromenergy_trading_apiimportaustraliaBOMdf1=australiaBOM.airTemp('IDN60901.94765')df2=australiaBOM.apparentTemp('IDN60901.94765')df2=australiaBOM.relativeHumidity('IDN60901.94765')df3=australiaBOM.cloud('IDN60901.94765')You can also access the entire dataset by doing:fromenergy_trading_apiimportaustraliaBOMdf,df_header=australiaBOM.__call_api_BOM('IDN60901.94765')# e.g. dew point:print(df['dewpt'].to_string())Bankstown BOM Data ExampleSINGAPORESingapore National Electricity Market (NEMS)fromenergy_trading_apiimportsingaporeNEMSdf=singaporeNEMS.singaporeUSEP(date="2019-01-01")JAPANJapan Electric Power Exchangefromenergy_trading_apiimportjepxdf=jepx.spotLatest()df=jepx.spotLatest("20190101")Kyushu Electric Power Company (Kyuden)fromenergy_trading_apiimportjapanElectricityasjedf=je.kyushuElectricdemandJapanese()df1=je.kyushuElectricdemandJapanese(day="20190101")Chubu Electric Power Company (Chuden)fromenergy_trading_apiimportjapanElectricityasjedf=je.chubuElectricdemandJapanese()df1=je.chubuElectricDemandJapaneseRange(begtime="20190101",endtime="20190101")Tokyo Electric Power Company (TEPCO)fromenergy_trading_apiimportjapanElectricityasjedf=je.tepcoElectricDemandHistoricalJapanese("2018")df1=je.tepcoElectricDemandCurrentJapanese()CHUGOKU Electric Power Company (Chugoku Denki)fromenergy_trading_apiimportjapanElectricityasjedf=je.chugokuElectricDemandJapanese("2018")FEPC - JAPAN Federation of Electric Power Companyfromenergy_trading_apiimportjapanFEPCasjedf=je.demandByIndustry()GLOBALU.S. Energy Information Administrationfromenergy_trading_apiimporteia_apidf=eia_api.ngAustraliaProduction("<YOUR-API-KEY-HERE>")EIA-Python DocumentationEIA API Documentation