Create Calendar

POST {{URL_ORIGIN}}/api/v2/calendars

This API allows to create a new calendar.

ID will be returned in the response, this ID is the unique identifier of the calendar and should be used when sending update commands.

Note: this ID can be retrieved via Get Calendars API.

Create Calendar- Error Codes

CodeMessage
1System is unavailable
100Missing or invalid parameter: [FieldName]
101Holiday date should not be sent twice
101Wrong holiday close time
101name already exists
NEW v1.33.0101IOC TIF is allowed only for Equilibrium Price
10001Permission denied
10005Not found
20000Calendar Name already exists
20001Wrong format
20002Wrong format

RESPONSES

status: OK

{"id":"1114611201","tradingDays":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"],"name":"Name","timeZone":"+00:00","marketOpen":"08:00","marketClose":"16:30","holidays":[{"date":"2022-01-01","closeTime":"13:00","name":"New Yaer"}]}