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
| Code | Message |
|---|---|
| 1 | System is unavailable |
| 100 | Missing or invalid parameter: [FieldName] |
| 101 | Holiday date should not be sent twice |
| 101 | Wrong holiday close time |
| 101 | name already exists |
NEW v1.33.0101 | IOC TIF is allowed only for Equilibrium Price |
| 10001 | Permission denied |
| 10005 | Not found |
| 20000 | Calendar Name already exists |
| 20001 | Wrong format |
| 20002 | Wrong 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"}]}