Lean  $LEAN_TAG$
QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson Class Reference

Defines the json structure of a single entry in the market-hours-database.json file More...

Public Member Functions

 MarketHoursDatabaseEntryJson (MarketHoursDatabase.Entry entry)
 Initializes a new instance of the MarketHoursDatabaseEntryJson class More...
 
MarketHoursDatabase.Entry Convert (MarketHoursDatabase.Entry underlyingEntry, MarketHoursDatabase.Entry marketEntry)
 Converts this json representation to the MarketHoursDatabase.Entry type More...
 

Properties

string DataTimeZone [get, set]
 The data's raw time zone More...
 
string ExchangeTimeZone [get, set]
 The exchange's time zone id from the tzdb More...
 
List< MarketHoursSegmentSunday [get, set]
 Sunday market hours segments More...
 
List< MarketHoursSegmentMonday [get, set]
 Monday market hours segments More...
 
List< MarketHoursSegmentTuesday [get, set]
 Tuesday market hours segments More...
 
List< MarketHoursSegmentWednesday [get, set]
 Wednesday market hours segments More...
 
List< MarketHoursSegmentThursday [get, set]
 Thursday market hours segments More...
 
List< MarketHoursSegmentFriday [get, set]
 Friday market hours segments More...
 
List< MarketHoursSegmentSaturday [get, set]
 Saturday market hours segments More...
 
List< string > Holidays = new() [get, set]
 Holiday date strings More...
 
Dictionary< string, TimeSpan > EarlyCloses = new Dictionary<string [get, set]
 Early closes by date More...
 
Dictionary< string, TimeSpan > LateOpens = new Dictionary<string, TimeSpan>() [get, set]
 Late opens by date More...
 

Detailed Description

Defines the json structure of a single entry in the market-hours-database.json file

Definition at line 166 of file MarketHoursDatabaseJsonConverter.cs.

Constructor & Destructor Documentation

◆ MarketHoursDatabaseEntryJson()

QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.MarketHoursDatabaseEntryJson ( MarketHoursDatabase.Entry  entry)

Initializes a new instance of the MarketHoursDatabaseEntryJson class

Parameters
entryThe entry instance to copy

Definition at line 244 of file MarketHoursDatabaseJsonConverter.cs.

Member Function Documentation

◆ Convert()

MarketHoursDatabase.Entry QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.Convert ( MarketHoursDatabase.Entry  underlyingEntry,
MarketHoursDatabase.Entry  marketEntry 
)

Converts this json representation to the MarketHoursDatabase.Entry type

Returns
A new instance of the MarketHoursDatabase.Entry class

Definition at line 273 of file MarketHoursDatabaseJsonConverter.cs.

Property Documentation

◆ DataTimeZone

string QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.DataTimeZone
getset

The data's raw time zone

Definition at line 172 of file MarketHoursDatabaseJsonConverter.cs.

◆ ExchangeTimeZone

string QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.ExchangeTimeZone
getset

The exchange's time zone id from the tzdb

Definition at line 178 of file MarketHoursDatabaseJsonConverter.cs.

◆ Sunday

List<MarketHoursSegment> QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.Sunday
getset

Sunday market hours segments

Definition at line 184 of file MarketHoursDatabaseJsonConverter.cs.

◆ Monday

List<MarketHoursSegment> QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.Monday
getset

Monday market hours segments

Definition at line 190 of file MarketHoursDatabaseJsonConverter.cs.

◆ Tuesday

List<MarketHoursSegment> QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.Tuesday
getset

Tuesday market hours segments

Definition at line 196 of file MarketHoursDatabaseJsonConverter.cs.

◆ Wednesday

List<MarketHoursSegment> QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.Wednesday
getset

Wednesday market hours segments

Definition at line 202 of file MarketHoursDatabaseJsonConverter.cs.

◆ Thursday

List<MarketHoursSegment> QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.Thursday
getset

Thursday market hours segments

Definition at line 208 of file MarketHoursDatabaseJsonConverter.cs.

◆ Friday

List<MarketHoursSegment> QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.Friday
getset

Friday market hours segments

Definition at line 214 of file MarketHoursDatabaseJsonConverter.cs.

◆ Saturday

List<MarketHoursSegment> QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.Saturday
getset

Saturday market hours segments

Definition at line 220 of file MarketHoursDatabaseJsonConverter.cs.

◆ Holidays

List<string> QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.Holidays = new()
getset

Holiday date strings

Definition at line 226 of file MarketHoursDatabaseJsonConverter.cs.

◆ EarlyCloses

Dictionary<string, TimeSpan> QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.EarlyCloses = new Dictionary<string
getset

Early closes by date

Definition at line 232 of file MarketHoursDatabaseJsonConverter.cs.

◆ LateOpens

Dictionary<string, TimeSpan> QuantConnect.Util.MarketHoursDatabaseJsonConverter.MarketHoursDatabaseEntryJson.LateOpens = new Dictionary<string, TimeSpan>()
getset

Late opens by date

Definition at line 238 of file MarketHoursDatabaseJsonConverter.cs.


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