Skip to main content

python wrapper for CAISO Oasis API

Project description

pycaiso

pycaiso is a python wrapper for the California Independent System Operator (CAISO) Open Access Same-time Information System (OASIS) API.

pycaiso currently supports the following reports and resultsets:

  1. Prices
  2. System Demand
  3. Atlas

Install

pip install pycaiso

Examples

Get locational marginal prices (LMPs) in Day Ahead Market (DAM) for arbitrary Node and period: Note: "DAM" is the default market. You can also set the market parameter in get_lmps to "RTM" or "RTPD".

from pycaiso.oasis import Node
from datetime import datetime
import pandas as pd

# select pnode

cj = Node("CAPTJACK_5_N003")

# create dataframe with LMPS from arbitrary period (30 day maximum). 

cj_lmps = cj.get_lmps(datetime(2021, 1, 1), datetime(2021, 1, 2))

print(cj_lmps.head())

#        INTERVALSTARTTIME_GMT        INTERVALENDTIME_GMT  ...        MW  GROUP
# 0  2021-01-01T08:00:00-00:00  2021-01-01T09:00:00-00:00  ...  33.32310      1
# 1  2021-01-01T08:00:00-00:00  2021-01-01T09:00:00-00:00  ...   0.00000      2
# 2  2021-01-01T08:00:00-00:00  2021-01-01T09:00:00-00:00  ...  34.68627      3
# 3  2021-01-01T08:00:00-00:00  2021-01-01T09:00:00-00:00  ...  -1.36317      4
# 4  2021-01-01T09:00:00-00:00  2021-01-01T10:00:00-00:00  ...  31.51635      1

Alternatively, you can use pre-built Nodes for major aggregated pricing nodes (apnodes) like SP15:

# use pre-built pnode
sp15 = Node.SP15()

sp15_lmps = sp15.get_lmps(datetime(2021, 1, 1), datetime(2021, 1, 2))

print(sp15_lmps.head())

#        INTERVALSTARTTIME_GMT        INTERVALENDTIME_GMT  ...        MW  GROUP
# 0  2021-01-01T08:00:00-00:00  2021-01-01T09:00:00-00:00  ...  33.48613      1
# 1  2021-01-01T08:00:00-00:00  2021-01-01T09:00:00-00:00  ...   0.00000      2
# 2  2021-01-01T08:00:00-00:00  2021-01-01T09:00:00-00:00  ...  34.68627      3
# 3  2021-01-01T08:00:00-00:00  2021-01-01T09:00:00-00:00  ...  -1.20014      4
# 4  2021-01-01T09:00:00-00:00  2021-01-01T10:00:00-00:00  ...  31.58175      1

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

pycaiso-0.2.7.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycaiso-0.2.7-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pycaiso-0.2.7.tar.gz.

File metadata

  • Download URL: pycaiso-0.2.7.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for pycaiso-0.2.7.tar.gz
Algorithm Hash digest
SHA256 a9d860004645e45f15d16b28ed2f188329baeecb00e342209efe8af3cb659ece
MD5 75a451beb9cf8c4929d2e029799dc153
BLAKE2b-256 6bdccc48aa307abb89fe0595717942cf73aa562fb7cd7f095498b985f5c5f975

See more details on using hashes here.

File details

Details for the file pycaiso-0.2.7-py2.py3-none-any.whl.

File metadata

  • Download URL: pycaiso-0.2.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for pycaiso-0.2.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 523a5d1d1e89642718a2c32703e8fde742dbfe8433bde497137ca825e894a798
MD5 a1878b63bacc805b7da526ad92d8b262
BLAKE2b-256 3c7d3c37179e6236733e07b512c150ced4c19286e8a6b55d2a5bee4c7339a01c

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