LUSID C# SDK
Public Member Functions | List of all members
Lusid.Sdk.Api.ICalendarsApiSync Interface Reference

Represents a collection of functions to interact with the API endpoints More...

Inheritance diagram for Lusid.Sdk.Api.ICalendarsApiSync:
Inheritance graph
[legend]

Public Member Functions

AddBusinessDaysToDateResponse AddBusinessDaysToDate (string scope, AddBusinessDaysToDateRequest addBusinessDaysToDateRequest, int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] AddBusinessDaysToDate: Adds the requested number of Business Days to the provided date. More...
 
Lusid.Sdk.Client.ApiResponse< AddBusinessDaysToDateResponseAddBusinessDaysToDateWithHttpInfo (string scope, AddBusinessDaysToDateRequest addBusinessDaysToDateRequest, int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] AddBusinessDaysToDate: Adds the requested number of Business Days to the provided date. More...
 
CalendarDate AddDateToCalendar (string scope, string code, CreateDateRequest createDateRequest, int operationIndex=0, ConfigurationOptions? opts=null)
 AddDateToCalendar: Add a date to a calendar More...
 
Lusid.Sdk.Client.ApiResponse< CalendarDateAddDateToCalendarWithHttpInfo (string scope, string code, CreateDateRequest createDateRequest, int operationIndex=0, ConfigurationOptions? opts=null)
 AddDateToCalendar: Add a date to a calendar More...
 
BatchUpsertDatesForCalendarResponse BatchUpsertDatesForCalendar (string scope, string code, string successMode, Dictionary< string, CreateDateRequest > requestBody, int operationIndex=0, ConfigurationOptions? opts=null)
 BatchUpsertDatesForCalendar: Batch upsert dates to a calendar More...
 
Lusid.Sdk.Client.ApiResponse< BatchUpsertDatesForCalendarResponseBatchUpsertDatesForCalendarWithHttpInfo (string scope, string code, string successMode, Dictionary< string, CreateDateRequest > requestBody, int operationIndex=0, ConfigurationOptions? opts=null)
 BatchUpsertDatesForCalendar: Batch upsert dates to a calendar More...
 
Calendar CreateCalendar (CreateCalendarRequest createCalendarRequest, int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] CreateCalendar: Create a calendar in its generic form More...
 
Lusid.Sdk.Client.ApiResponse< CalendarCreateCalendarWithHttpInfo (CreateCalendarRequest createCalendarRequest, int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] CreateCalendar: Create a calendar in its generic form More...
 
Calendar DeleteCalendar (string scope, string code, int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] DeleteCalendar: Delete a calendar More...
 
Lusid.Sdk.Client.ApiResponse< CalendarDeleteCalendarWithHttpInfo (string scope, string code, int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] DeleteCalendar: Delete a calendar More...
 
CalendarDate DeleteDateFromCalendar (string scope, string code, string dateId, int operationIndex=0, ConfigurationOptions? opts=null)
 DeleteDateFromCalendar: Remove a date from a calendar More...
 
Lusid.Sdk.Client.ApiResponse< CalendarDateDeleteDateFromCalendarWithHttpInfo (string scope, string code, string dateId, int operationIndex=0, ConfigurationOptions? opts=null)
 DeleteDateFromCalendar: Remove a date from a calendar More...
 
Dictionary< string, CalendarDateDeleteDatesFromCalendar (string scope, string code, List< string > requestBody, int operationIndex=0, ConfigurationOptions? opts=null)
 DeleteDatesFromCalendar: Delete dates from a calendar More...
 
Lusid.Sdk.Client.ApiResponse< Dictionary< string, CalendarDate > > DeleteDatesFromCalendarWithHttpInfo (string scope, string code, List< string > requestBody, int operationIndex=0, ConfigurationOptions? opts=null)
 DeleteDatesFromCalendar: Delete dates from a calendar More...
 
List< DateTimeOffset > GenerateSchedule (string scope, ValuationSchedule valuationSchedule, DateTimeOffset? asAt=default(DateTimeOffset?), int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] GenerateSchedule: Generate an ordered schedule of dates. More...
 
Lusid.Sdk.Client.ApiResponse< List< DateTimeOffset > > GenerateScheduleWithHttpInfo (string scope, ValuationSchedule valuationSchedule, DateTimeOffset? asAt=default(DateTimeOffset?), int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] GenerateSchedule: Generate an ordered schedule of dates. More...
 
Calendar GetCalendar (string scope, string code, List< string >? propertyKeys=default(List< string >?), DateTimeOffset? asAt=default(DateTimeOffset?), int operationIndex=0, ConfigurationOptions? opts=null)
 GetCalendar: Get a calendar in its generic form More...
 
Lusid.Sdk.Client.ApiResponse< CalendarGetCalendarWithHttpInfo (string scope, string code, List< string >? propertyKeys=default(List< string >?), DateTimeOffset? asAt=default(DateTimeOffset?), int operationIndex=0, ConfigurationOptions? opts=null)
 GetCalendar: Get a calendar in its generic form More...
 
ResourceListOfCalendarDate GetDates (string scope, string code, DateTimeOrCutLabel? fromEffectiveAt=default(DateTimeOrCutLabel?), DateTimeOrCutLabel? toEffectiveAt=default(DateTimeOrCutLabel?), DateTimeOffset? asAt=default(DateTimeOffset?), List< string >? idFilter=default(List< string >?), int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] GetDates: Get dates for a specific calendar More...
 
Lusid.Sdk.Client.ApiResponse< ResourceListOfCalendarDateGetDatesWithHttpInfo (string scope, string code, DateTimeOrCutLabel? fromEffectiveAt=default(DateTimeOrCutLabel?), DateTimeOrCutLabel? toEffectiveAt=default(DateTimeOrCutLabel?), DateTimeOffset? asAt=default(DateTimeOffset?), List< string >? idFilter=default(List< string >?), int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] GetDates: Get dates for a specific calendar More...
 
IsBusinessDayResponse IsBusinessDateTime (DateTimeOffset dateTime, string scope, string code, DateTimeOffset? asAt=default(DateTimeOffset?), int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] IsBusinessDateTime: Check whether a DateTime is a &quot;Business DateTime&quot; More...
 
Lusid.Sdk.Client.ApiResponse< IsBusinessDayResponseIsBusinessDateTimeWithHttpInfo (DateTimeOffset dateTime, string scope, string code, DateTimeOffset? asAt=default(DateTimeOffset?), int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] IsBusinessDateTime: Check whether a DateTime is a &quot;Business DateTime&quot; More...
 
PagedResourceListOfCalendar ListCalendars (DateTimeOffset? asAt=default(DateTimeOffset?), string? page=default(string?), int? limit=default(int?), List< string >? propertyKeys=default(List< string >?), string? filter=default(string?), int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] ListCalendars: List Calendars More...
 
Lusid.Sdk.Client.ApiResponse< PagedResourceListOfCalendarListCalendarsWithHttpInfo (DateTimeOffset? asAt=default(DateTimeOffset?), string? page=default(string?), int? limit=default(int?), List< string >? propertyKeys=default(List< string >?), string? filter=default(string?), int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] ListCalendars: List Calendars More...
 
PagedResourceListOfCalendar ListCalendarsInScope (string scope, DateTimeOffset? asAt=default(DateTimeOffset?), string? page=default(string?), int? limit=default(int?), List< string >? propertyKeys=default(List< string >?), string? filter=default(string?), int operationIndex=0, ConfigurationOptions? opts=null)
 ListCalendarsInScope: List all calenders in a specified scope More...
 
Lusid.Sdk.Client.ApiResponse< PagedResourceListOfCalendarListCalendarsInScopeWithHttpInfo (string scope, DateTimeOffset? asAt=default(DateTimeOffset?), string? page=default(string?), int? limit=default(int?), List< string >? propertyKeys=default(List< string >?), string? filter=default(string?), int operationIndex=0, ConfigurationOptions? opts=null)
 ListCalendarsInScope: List all calenders in a specified scope More...
 
Calendar UpdateCalendar (string scope, string code, UpdateCalendarRequest updateCalendarRequest, int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] UpdateCalendar: Update a calendar More...
 
Lusid.Sdk.Client.ApiResponse< CalendarUpdateCalendarWithHttpInfo (string scope, string code, UpdateCalendarRequest updateCalendarRequest, int operationIndex=0, ConfigurationOptions? opts=null)
 [EARLY ACCESS] UpdateCalendar: Update a calendar More...
 

Detailed Description

Represents a collection of functions to interact with the API endpoints

Member Function Documentation

◆ AddBusinessDaysToDate()

AddBusinessDaysToDateResponse Lusid.Sdk.Api.ICalendarsApiSync.AddBusinessDaysToDate ( string  scope,
AddBusinessDaysToDateRequest  addBusinessDaysToDateRequest,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] AddBusinessDaysToDate: Adds the requested number of Business Days to the provided date.

A Business day is defined as a point in time that: * Does not represent a day in the calendar&#39;s weekend * Does not represent a day in the calendar&#39;s list of holidays (e.g. Christmas Day in the UK) All dates specified must be UTC and the upper bound of a calendar is not inclusive e.g. From: 2020-12-24-00-00-00: Adding 3 business days returns 2020-12-30, assuming Saturday and Sunday are weekends, and the 25th and 28th are holidays. Adding -2 business days returns 2020-12-22 under the same assumptions. If the provided number of days to add is zero, returns a failure.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope within which to search for the calendars
addBusinessDaysToDateRequestRequest Details: start date, number of days to add (which can be negative, but not zero), calendar codes and optionally an AsAt date for searching the calendar store
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
AddBusinessDaysToDateResponse

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ AddBusinessDaysToDateWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<AddBusinessDaysToDateResponse> Lusid.Sdk.Api.ICalendarsApiSync.AddBusinessDaysToDateWithHttpInfo ( string  scope,
AddBusinessDaysToDateRequest  addBusinessDaysToDateRequest,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] AddBusinessDaysToDate: Adds the requested number of Business Days to the provided date.

A Business day is defined as a point in time that: * Does not represent a day in the calendar&#39;s weekend * Does not represent a day in the calendar&#39;s list of holidays (e.g. Christmas Day in the UK) All dates specified must be UTC and the upper bound of a calendar is not inclusive e.g. From: 2020-12-24-00-00-00: Adding 3 business days returns 2020-12-30, assuming Saturday and Sunday are weekends, and the 25th and 28th are holidays. Adding -2 business days returns 2020-12-22 under the same assumptions. If the provided number of days to add is zero, returns a failure.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope within which to search for the calendars
addBusinessDaysToDateRequestRequest Details: start date, number of days to add (which can be negative, but not zero), calendar codes and optionally an AsAt date for searching the calendar store
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of AddBusinessDaysToDateResponse

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ AddDateToCalendar()

CalendarDate Lusid.Sdk.Api.ICalendarsApiSync.AddDateToCalendar ( string  scope,
string  code,
CreateDateRequest  createDateRequest,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

AddDateToCalendar: Add a date to a calendar

Add an event to the calendar. These Events can be a maximum of 24 hours and must be specified in UTC. A local date will be calculated by the system and applied to the calendar before processing.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
createDateRequestAdd date to calendar request
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
CalendarDate

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ AddDateToCalendarWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<CalendarDate> Lusid.Sdk.Api.ICalendarsApiSync.AddDateToCalendarWithHttpInfo ( string  scope,
string  code,
CreateDateRequest  createDateRequest,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

AddDateToCalendar: Add a date to a calendar

Add an event to the calendar. These Events can be a maximum of 24 hours and must be specified in UTC. A local date will be calculated by the system and applied to the calendar before processing.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
createDateRequestAdd date to calendar request
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of CalendarDate

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ BatchUpsertDatesForCalendar()

BatchUpsertDatesForCalendarResponse Lusid.Sdk.Api.ICalendarsApiSync.BatchUpsertDatesForCalendar ( string  scope,
string  code,
string  successMode,
Dictionary< string, CreateDateRequest requestBody,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

BatchUpsertDatesForCalendar: Batch upsert dates to a calendar

Create or update events in the calendar. These Events can be a maximum of 24 hours and must be specified in UTC. A local date will be calculated by the system and applied to the calendar before processing.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
successModeWhether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial.
requestBodyCreate Date Requests of dates to upsert
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
BatchUpsertDatesForCalendarResponse

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ BatchUpsertDatesForCalendarWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<BatchUpsertDatesForCalendarResponse> Lusid.Sdk.Api.ICalendarsApiSync.BatchUpsertDatesForCalendarWithHttpInfo ( string  scope,
string  code,
string  successMode,
Dictionary< string, CreateDateRequest requestBody,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

BatchUpsertDatesForCalendar: Batch upsert dates to a calendar

Create or update events in the calendar. These Events can be a maximum of 24 hours and must be specified in UTC. A local date will be calculated by the system and applied to the calendar before processing.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
successModeWhether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial.
requestBodyCreate Date Requests of dates to upsert
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of BatchUpsertDatesForCalendarResponse

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ CreateCalendar()

Calendar Lusid.Sdk.Api.ICalendarsApiSync.CreateCalendar ( CreateCalendarRequest  createCalendarRequest,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] CreateCalendar: Create a calendar in its generic form

Create a calendar in a generic form which can be used to store date events.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
createCalendarRequestA request to create the calendar
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
Calendar

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ CreateCalendarWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<Calendar> Lusid.Sdk.Api.ICalendarsApiSync.CreateCalendarWithHttpInfo ( CreateCalendarRequest  createCalendarRequest,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] CreateCalendar: Create a calendar in its generic form

Create a calendar in a generic form which can be used to store date events.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
createCalendarRequestA request to create the calendar
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of Calendar

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ DeleteCalendar()

Calendar Lusid.Sdk.Api.ICalendarsApiSync.DeleteCalendar ( string  scope,
string  code,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] DeleteCalendar: Delete a calendar

Delete a calendar and all of its respective dates

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
Calendar

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ DeleteCalendarWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<Calendar> Lusid.Sdk.Api.ICalendarsApiSync.DeleteCalendarWithHttpInfo ( string  scope,
string  code,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] DeleteCalendar: Delete a calendar

Delete a calendar and all of its respective dates

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of Calendar

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ DeleteDateFromCalendar()

CalendarDate Lusid.Sdk.Api.ICalendarsApiSync.DeleteDateFromCalendar ( string  scope,
string  code,
string  dateId,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

DeleteDateFromCalendar: Remove a date from a calendar

Remove a date from a calendar.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
dateIdIdentifier of the date to be removed
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
CalendarDate

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ DeleteDateFromCalendarWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<CalendarDate> Lusid.Sdk.Api.ICalendarsApiSync.DeleteDateFromCalendarWithHttpInfo ( string  scope,
string  code,
string  dateId,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

DeleteDateFromCalendar: Remove a date from a calendar

Remove a date from a calendar.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
dateIdIdentifier of the date to be removed
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of CalendarDate

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ DeleteDatesFromCalendar()

Dictionary<string, CalendarDate> Lusid.Sdk.Api.ICalendarsApiSync.DeleteDatesFromCalendar ( string  scope,
string  code,
List< string >  requestBody,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

DeleteDatesFromCalendar: Delete dates from a calendar

Delete dates from a calendar.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
requestBodyIdentifiers of the dates to be removed
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
Dictionary<string, CalendarDate>

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ DeleteDatesFromCalendarWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<Dictionary<string, CalendarDate> > Lusid.Sdk.Api.ICalendarsApiSync.DeleteDatesFromCalendarWithHttpInfo ( string  scope,
string  code,
List< string >  requestBody,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

DeleteDatesFromCalendar: Delete dates from a calendar

Delete dates from a calendar.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
requestBodyIdentifiers of the dates to be removed
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of Dictionary<string, CalendarDate>

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ GenerateSchedule()

List<DateTimeOffset> Lusid.Sdk.Api.ICalendarsApiSync.GenerateSchedule ( string  scope,
ValuationSchedule  valuationSchedule,
DateTimeOffset?  asAt = default(DateTimeOffset?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] GenerateSchedule: Generate an ordered schedule of dates.

Returns an ordered array of dates. The dates will only fall on business days as defined by the scope and calendar codes in the valuation schedule. Valuations are made at a frequency defined by the valuation schedule&#39;s tenor, e.g. every day (&quot;1D&quot;), every other week (&quot;2W&quot;) etc. These dates will be adjusted onto business days as defined by the schedule&#39;s rollConvention.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendars to use
valuationScheduleThe ValuationSchedule to generate schedule dates from
asAtOptional AsAt for searching the calendar store. Defaults to Latest. (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
List<DateTimeOffset>

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ GenerateScheduleWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<List<DateTimeOffset> > Lusid.Sdk.Api.ICalendarsApiSync.GenerateScheduleWithHttpInfo ( string  scope,
ValuationSchedule  valuationSchedule,
DateTimeOffset?  asAt = default(DateTimeOffset?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] GenerateSchedule: Generate an ordered schedule of dates.

Returns an ordered array of dates. The dates will only fall on business days as defined by the scope and calendar codes in the valuation schedule. Valuations are made at a frequency defined by the valuation schedule&#39;s tenor, e.g. every day (&quot;1D&quot;), every other week (&quot;2W&quot;) etc. These dates will be adjusted onto business days as defined by the schedule&#39;s rollConvention.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendars to use
valuationScheduleThe ValuationSchedule to generate schedule dates from
asAtOptional AsAt for searching the calendar store. Defaults to Latest. (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of List<DateTimeOffset>

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ GetCalendar()

Calendar Lusid.Sdk.Api.ICalendarsApiSync.GetCalendar ( string  scope,
string  code,
List< string >?  propertyKeys = default(List< string >?),
DateTimeOffset?  asAt = default(DateTimeOffset?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

GetCalendar: Get a calendar in its generic form

Retrieve a generic calendar by a specific ID at a point in AsAt time

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar identifier
codeCode of the calendar identifier
propertyKeysA list of property keys from the &quot;Calendar&quot; domain to decorate onto the calendar, These take the format {domain}/{scope}/{code} e.g. &quot;Calendar/System/Name&quot;. (optional)
asAtThe AsAt datetime at which to retrieve the calendar (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
Calendar

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ GetCalendarWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<Calendar> Lusid.Sdk.Api.ICalendarsApiSync.GetCalendarWithHttpInfo ( string  scope,
string  code,
List< string >?  propertyKeys = default(List< string >?),
DateTimeOffset?  asAt = default(DateTimeOffset?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

GetCalendar: Get a calendar in its generic form

Retrieve a generic calendar by a specific ID at a point in AsAt time

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar identifier
codeCode of the calendar identifier
propertyKeysA list of property keys from the &quot;Calendar&quot; domain to decorate onto the calendar, These take the format {domain}/{scope}/{code} e.g. &quot;Calendar/System/Name&quot;. (optional)
asAtThe AsAt datetime at which to retrieve the calendar (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of Calendar

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ GetDates()

ResourceListOfCalendarDate Lusid.Sdk.Api.ICalendarsApiSync.GetDates ( string  scope,
string  code,
DateTimeOrCutLabel fromEffectiveAt = default(DateTimeOrCutLabel?),
DateTimeOrCutLabel toEffectiveAt = default(DateTimeOrCutLabel?),
DateTimeOffset?  asAt = default(DateTimeOffset?),
List< string >?  idFilter = default(List< string >?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] GetDates: Get dates for a specific calendar

Get dates from a specific calendar within a specific window of effective time, at a point in AsAt time. Providing an id filter can further refine the results.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
fromEffectiveAtWhere the effective window of dates should begin from (optional)
toEffectiveAtWhere the effective window of dates should end (optional)
asAtAsAt the dates should be retrieved at (optional)
idFilterAn additional filter that will filter dates based on their identifer (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ResourceListOfCalendarDate

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ GetDatesWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<ResourceListOfCalendarDate> Lusid.Sdk.Api.ICalendarsApiSync.GetDatesWithHttpInfo ( string  scope,
string  code,
DateTimeOrCutLabel fromEffectiveAt = default(DateTimeOrCutLabel?),
DateTimeOrCutLabel toEffectiveAt = default(DateTimeOrCutLabel?),
DateTimeOffset?  asAt = default(DateTimeOffset?),
List< string >?  idFilter = default(List< string >?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] GetDates: Get dates for a specific calendar

Get dates from a specific calendar within a specific window of effective time, at a point in AsAt time. Providing an id filter can further refine the results.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendar
codeCode of the calendar
fromEffectiveAtWhere the effective window of dates should begin from (optional)
toEffectiveAtWhere the effective window of dates should end (optional)
asAtAsAt the dates should be retrieved at (optional)
idFilterAn additional filter that will filter dates based on their identifer (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of ResourceListOfCalendarDate

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ IsBusinessDateTime()

IsBusinessDayResponse Lusid.Sdk.Api.ICalendarsApiSync.IsBusinessDateTime ( DateTimeOffset  dateTime,
string  scope,
string  code,
DateTimeOffset?  asAt = default(DateTimeOffset?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] IsBusinessDateTime: Check whether a DateTime is a &quot;Business DateTime&quot;

A Business DateTime is defined as a point in time that: * Does not represent a day that overlaps with the calendars WeekendMask * If the calendar is a &quot;Holiday Calendar&quot; Does not overlap with any dates in the calendar * If the calendar is a &quot;TradingHours Calendar&quot; Does overlap with a date in the calendar All dates specified must be UTC and the upper bound of a calendar is not inclusive e.g. From: 2020-12-25-00-00-00 To: 2020-12-26-00-00-00 IsBusinessDay(2020-12-26-00-00-00) &#x3D;&#x3D; false

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
dateTimeDateTime to check - This DateTime must be UTC
scopeScope of the calendar
codeCode of the calendar
asAtAsAt for the request (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
IsBusinessDayResponse

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ IsBusinessDateTimeWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<IsBusinessDayResponse> Lusid.Sdk.Api.ICalendarsApiSync.IsBusinessDateTimeWithHttpInfo ( DateTimeOffset  dateTime,
string  scope,
string  code,
DateTimeOffset?  asAt = default(DateTimeOffset?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] IsBusinessDateTime: Check whether a DateTime is a &quot;Business DateTime&quot;

A Business DateTime is defined as a point in time that: * Does not represent a day that overlaps with the calendars WeekendMask * If the calendar is a &quot;Holiday Calendar&quot; Does not overlap with any dates in the calendar * If the calendar is a &quot;TradingHours Calendar&quot; Does overlap with a date in the calendar All dates specified must be UTC and the upper bound of a calendar is not inclusive e.g. From: 2020-12-25-00-00-00 To: 2020-12-26-00-00-00 IsBusinessDay(2020-12-26-00-00-00) &#x3D;&#x3D; false

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
dateTimeDateTime to check - This DateTime must be UTC
scopeScope of the calendar
codeCode of the calendar
asAtAsAt for the request (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of IsBusinessDayResponse

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ ListCalendars()

PagedResourceListOfCalendar Lusid.Sdk.Api.ICalendarsApiSync.ListCalendars ( DateTimeOffset?  asAt = default(DateTimeOffset?),
string?  page = default(string?),
int?  limit = default(int?),
List< string >?  propertyKeys = default(List< string >?),
string?  filter = default(string?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] ListCalendars: List Calendars

List calendars at a point in AsAt time.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
asAtThe AsAt datetime at which to retrieve the calendars (optional)
pageThe pagination token to use to continue listing calendars from a previous call to list calendars. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request. (optional)
limitWhen paginating, limit the number of returned results to this many. (optional)
propertyKeysA list of property keys from the &quot;Calendar&quot; domain to decorate onto the calendar, These take the format {domain}/{scope}/{code} e.g. &quot;Calendar/System/Name&quot;. (optional)
filterExpression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid. (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
PagedResourceListOfCalendar

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ ListCalendarsInScope()

PagedResourceListOfCalendar Lusid.Sdk.Api.ICalendarsApiSync.ListCalendarsInScope ( string  scope,
DateTimeOffset?  asAt = default(DateTimeOffset?),
string?  page = default(string?),
int?  limit = default(int?),
List< string >?  propertyKeys = default(List< string >?),
string?  filter = default(string?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

ListCalendarsInScope: List all calenders in a specified scope

List calendars in a Scope at a point in AsAt time.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendars
asAtThe AsAt datetime at which to retrieve the calendars (optional)
pageThe pagination token to use to continue listing calendars from a previous call to list calendars. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request. (optional)
limitWhen paginating, limit the number of returned results to this many. (optional)
propertyKeysA list of property keys from the &quot;Calendar&quot; domain to decorate onto the calendar, These take the format {domain}/{scope}/{code} e.g. &quot;Calendar/System/Name&quot;. (optional)
filterExpression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid. (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
PagedResourceListOfCalendar

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ ListCalendarsInScopeWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<PagedResourceListOfCalendar> Lusid.Sdk.Api.ICalendarsApiSync.ListCalendarsInScopeWithHttpInfo ( string  scope,
DateTimeOffset?  asAt = default(DateTimeOffset?),
string?  page = default(string?),
int?  limit = default(int?),
List< string >?  propertyKeys = default(List< string >?),
string?  filter = default(string?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

ListCalendarsInScope: List all calenders in a specified scope

List calendars in a Scope at a point in AsAt time.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the calendars
asAtThe AsAt datetime at which to retrieve the calendars (optional)
pageThe pagination token to use to continue listing calendars from a previous call to list calendars. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request. (optional)
limitWhen paginating, limit the number of returned results to this many. (optional)
propertyKeysA list of property keys from the &quot;Calendar&quot; domain to decorate onto the calendar, These take the format {domain}/{scope}/{code} e.g. &quot;Calendar/System/Name&quot;. (optional)
filterExpression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid. (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of PagedResourceListOfCalendar

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ ListCalendarsWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<PagedResourceListOfCalendar> Lusid.Sdk.Api.ICalendarsApiSync.ListCalendarsWithHttpInfo ( DateTimeOffset?  asAt = default(DateTimeOffset?),
string?  page = default(string?),
int?  limit = default(int?),
List< string >?  propertyKeys = default(List< string >?),
string?  filter = default(string?),
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] ListCalendars: List Calendars

List calendars at a point in AsAt time.

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
asAtThe AsAt datetime at which to retrieve the calendars (optional)
pageThe pagination token to use to continue listing calendars from a previous call to list calendars. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request. (optional)
limitWhen paginating, limit the number of returned results to this many. (optional)
propertyKeysA list of property keys from the &quot;Calendar&quot; domain to decorate onto the calendar, These take the format {domain}/{scope}/{code} e.g. &quot;Calendar/System/Name&quot;. (optional)
filterExpression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid. (optional)
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of PagedResourceListOfCalendar

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ UpdateCalendar()

Calendar Lusid.Sdk.Api.ICalendarsApiSync.UpdateCalendar ( string  scope,
string  code,
UpdateCalendarRequest  updateCalendarRequest,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] UpdateCalendar: Update a calendar

Update the calendars WeekendMask, SourceProvider or Properties

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the request
codeCode of the request
updateCalendarRequestThe new state of the calendar
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
Calendar

Implemented in Lusid.Sdk.Api.CalendarsApi.

◆ UpdateCalendarWithHttpInfo()

Lusid.Sdk.Client.ApiResponse<Calendar> Lusid.Sdk.Api.ICalendarsApiSync.UpdateCalendarWithHttpInfo ( string  scope,
string  code,
UpdateCalendarRequest  updateCalendarRequest,
int  operationIndex = 0,
ConfigurationOptions opts = null 
)

[EARLY ACCESS] UpdateCalendar: Update a calendar

Update the calendars WeekendMask, SourceProvider or Properties

Exceptions
Lusid.Sdk.Client.ApiExceptionThrown when fails to make API call
Parameters
scopeScope of the request
codeCode of the request
updateCalendarRequestThe new state of the calendar
operationIndexIndex associated with the operation.
optsOptions for this request.
Returns
ApiResponse of Calendar

Implemented in Lusid.Sdk.Api.CalendarsApi.


The documentation for this interface was generated from the following file: