# Imports import requests import io import pandas # Query to run query = '''select `SETTLEMENTDATE`, `RUNNO`, `REGIONID`, `PERIODID`, `RRP`, `EEP`, `INVALIDFLAG`, `LASTCHANGED`, `ROP`, `RAISE6SECRRP`, `RAISE6SECROP`, `RAISE60SECRRP`, `RAISE60SECROP`, `RAISE5MINRRP`, `RAISE5MINROP`, `RAISEREGRRP`, `RAISEREGROP`, `LOWER6SECRRP`, `LOWER6SECROP`, `LOWER60SECRRP`, `LOWER60SECROP`, `LOWER5MINRRP`, `LOWER5MINROP`, `LOWERREGRRP`, `LOWERREGROP`, `PRICE_STATUS` from mms.tradingprice where SETTLEMENTDATE between '2018-11-01' and '2018-11-02' limit 0, 10000''' # payload for POST request url = 'http://www.nempoint.com/data/query' data = { 'query': query, 'key':'abc123', 'format':'csv'} # Send HTTP request response = requests.post(url, data=data)# Note do NOT use params=data as this serialises to the URL! # Parse the response data = pandas.read_csv(io.StringIO(response.content.decode('utf-8')))
Specially designed to retrieve very large data-sets, handling millions of rows of data with ease.
It makes use of advanced caching and pre-fetching techniques, allowing you to scroll through enormous data results in real time.
QueryTool service open a door to numerous Energy Market database like NEM, VicGas (DGWM), STTM, WEM WA, as well as other related data like BOM. All of these data are stored in Google Cloud Platform for high reliability to ensure maximum uptime.
Use the data services feature to also run queries directly from your favourite analysis tools like Excel, Power BI, Matlab, R and Python.
At the click of a button, Query Tool enables you either examine the metadata for any table, or view a query and its results on the same page.
After running a query, you have the option to export your data to a CSV file.
The results of any query can be sorted by any column without re-executing the query, and you can easily search using any desired string.