{"@odata.type": "#DataScope.Select.Api.Extractions.ReportTemplates.PriceHistoryReportTemplate", "ShowColumnHeaders": true, "Name": "Test", "Headers": [], "Trailers": [], "ContentFields": [{"FieldName": "Ask Price"}, {"FieldName": "Bid Price"}], "Condition": {"ReportDateRangeType": "Range"}}
resp = {'error': {'message': 'Validation Error:\r\n\r\nCondition ReportDateRangeType must be Range, Delta, or Relative'}}
I am having python script which creates instrument list and attempts to create template. I pasted how my json looks like and what I get ass error message.
Any idea what I am doing wrong here? Also tried with DataScope.Select.Api.Extractions.ExtractionsResult/Raw but nothing works as ReportDateRangeType is not a string but enum. Not sure how to approach it.