This file contains parameters/variables that will need to be updated with client-specific information, including credentials. Other variables have been created for some, but not all, of the method parameters. The user will need to add parameters and update the python code below according to their needs.
import json
#account info
region = "" #use MRTU, TX, PJM, ISONE, NYISO, MISO, SPP
participantCode = ""
participantShortName = "MR_" + participantCode #For CAISO/MRTU, use 'MR_"+ participantCode, for ERCOT just use participantCode
#Guid for getStatus or getFile
fileGuid = "e4a29449-09b8-43af-9619-a2b2449e5cc8"
#params for uploadFile
uploadIntervalBegin = "2022-01-30T00:00"
uploadIntervalEnd = "2022-01-31T00:00" #Should always be begin + 1 day OR 1 hour
fileType = "APX_NonXmkrt_SchedulingData_CSV"
#params for getScheduleData
marketStage = "DA"
marketStatus = "PRE"
firstIntervalBegin = "2022-01-30T08:00"
lastIntervalEnd = "2022-01-31T08:00"
applications = [ "BidsOffers" ]
#report params
reportPath = "/Settlement/Battery and Hybrid Performance"
reportParams = json.dumps([
{
"key": "Region",
"value": "CAISO"
},
{
"key": "Market_Participant",
"value": "" + participantCode + ""
},
{
"key": "Begin_Trade_Date",
"value": "07/17/2021"
},
{
"key": "End_Trade_Date",
"value": "07/17/2021"
},
{
"key": "Location",
"value": "Unit_1"
},
{
"key": "State_of_Charge",
"value": "Charge"
},
{
"key": "State_of_Charge",
"value": "Discharge"
},
{
"key": "Aggregate_Intervals",
"value": "Hourly"
}
])
#params for listFiles or listFilesSince
fileType = "CAISO_DAM_Hourly_LMPs"
fileSource = "CAISO OASIS"
fileRendition = "N/A"
fileWatermarkDate = "2021-02-08T00:00:00"
fileIntervalBegin = "2021-02-08T00:00:00"
fileIntervalEnd = "2021-02-10T00:00:00"
#file upload/download paths
fileUploadPath = "C:\\Users\\MktSte_Python"
scheduleDataDownloadPath = "c:\\Users\\MktSte_Python\\scheduleData.zip"
reportDownloadPath = "c:\\Users\\MktSte_Python\\report.zip"
fileDownloadPath = "c:\\Users\\MktSte_Python\\file.zip"
statusDownloadPath = "c:\\Users\\MktSte_Python\\getStatus.zip"
#endpoints/environments
tokenUrl = "<tokenUrl.apx.com>"
fileApiUrl = "<fileApiUrl.apx.com>"
#credentials:
username = "<Xuser_ws_access>"
password = "<Xpass>"
clientId = "<MkSte-ISO-Xclient>"
secret = "<Xkey>"