Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions query_apiv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
ORG = 'some org name'

# request details
BA = 'CAISO_NORTH' # identify grid region
BA = 'CAISO_NORTH' # identify grid region

# starttime and endtime are optional, if ommited will return the latest value
# starttime and endtime are optional, if omitted will return the latest value
START = '2020-03-01T00:00:00-0000' # UTC offset of 0 (PDT is -7, PST -8)
END = '2020-03-01T00:45:00-0000'

Expand Down Expand Up @@ -119,7 +119,7 @@ def historical(token, ba):
forecast_moer = forecast(token, BA)
print(forecast_moer)

forecast_moer = forecast(token, BA, START, END)
print(forecast_moer)
forecast_moer_historical = forecast(token, BA, START, END)
print(forecast_moer_historical)

historical(token, BA) # Writes zip file to current ditectory
historical(token, BA) # Writes zip file to current directory