Skip to content

Commit

Permalink
Update OpenClose.cs - make constructor public (#735)
Browse files Browse the repository at this point in the history
* Update OpenClose.cs - make constructor public

* added inits instead of public ctor, fixed public API
  • Loading branch information
michaelnero authored Mar 12, 2024
1 parent 217c3ef commit fdcb2f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Alpaca.Markets/Helpers/OpenClose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ internal OpenClose(
/// <summary>
/// Gets open time in EST time zone.
/// </summary>
public DateTimeOffset OpenEst { get; }
public DateTimeOffset OpenEst { get; init; }

/// <summary>
/// Gets close time in EST time zone.
/// </summary>
public DateTimeOffset CloseEst { get; }
public DateTimeOffset CloseEst { get; init; }

/// <summary>
/// Gets session open and close time as <see cref="Interval{DateTime}"/> instance with UTC times.
Expand Down
2 changes: 2 additions & 0 deletions Alpaca.Markets/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,10 @@ Alpaca.Markets.OneCancelsOtherOrder.StopLoss.get -> Alpaca.Markets.IStopLoss!
Alpaca.Markets.OneCancelsOtherOrder.TakeProfit.get -> Alpaca.Markets.ITakeProfit!
Alpaca.Markets.OpenClose
Alpaca.Markets.OpenClose.CloseEst.get -> System.DateTimeOffset
Alpaca.Markets.OpenClose.CloseEst.init -> void
Alpaca.Markets.OpenClose.OpenClose() -> void
Alpaca.Markets.OpenClose.OpenEst.get -> System.DateTimeOffset
Alpaca.Markets.OpenClose.OpenEst.init -> void
Alpaca.Markets.OpenClose.ToInterval() -> Alpaca.Markets.Interval<System.DateTime>
Alpaca.Markets.OptionContractsRequest
Alpaca.Markets.OptionContractsRequest.AssetStatus.get -> Alpaca.Markets.AssetStatus?
Expand Down

0 comments on commit fdcb2f4

Please sign in to comment.