Skip to content

Commit

Permalink
restore serializable attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender committed Mar 17, 2024
1 parent cc8196a commit 6118858
Show file tree
Hide file tree
Showing 84 changed files with 96 additions and 20 deletions.
7 changes: 0 additions & 7 deletions Stock.Indicators.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.Other", "tests\other\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.Performance", "tests\performance\Tests.Performance.csproj", "{3BD4837B-D197-41FD-A286-A3256D0770E1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{3A4158F9-4165-4823-9526-0CFAACCF1ACC}"
ProjectSection(SolutionItems) = preProject
.github\workflows\build-indicators.yml = .github\workflows\build-indicators.yml
gitversion.yml = gitversion.yml
.github\workflows\test-performance.yml = .github\workflows\test-performance.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Observe.Streaming", "tests\observe\Observe.Streaming.csproj", "{14DEC3AF-9AF2-4A66-8BEE-C342C6CC4307}"
ProjectSection(ProjectDependencies) = postProject
{11CD6C7E-871F-4903-AEAD-58E034C6521D} = {11CD6C7E-871F-4903-AEAD-58E034C6521D}
Expand Down
4 changes: 2 additions & 2 deletions src/_common/Candles/Candles.Models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace Skender.Stock.Indicators;

// CANDLESTICK MODELS

[Serializable]
public record CandleProperties : Quote
{
// raw sizes
Expand All @@ -20,8 +21,7 @@ public record CandleProperties : Quote
public bool IsBearish => Close < Open;
}



[Serializable]
public record class CandleResult : IResult
{
public CandleResult(DateTime date, Match match)
Expand Down
2 changes: 2 additions & 0 deletions src/_common/Quotes/Quote.Models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public interface IQuote : ISeries, IEquatable<IQuote>
/// <summary>
/// Built-in Quote type.
/// </summary>
[Serializable]
public record class Quote : IQuote
{
public DateTime Timestamp { get; set; }
Expand Down Expand Up @@ -103,6 +104,7 @@ public override int GetHashCode()
Timestamp, Open, High, Low, Close, Volume);
}

[Serializable]
internal class QuoteD
{
internal DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/_common/Use (quote converter)/Use.Models.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Skender.Stock.Indicators;

// TODO: this is redundant to "BasicResult", but it has a funny name
[Serializable]
public sealed record class UseResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Adl/Adl.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class AdlResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Adx/Adx.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class AdxResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Alligator/Alligator.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class AlligatorResult : IResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Alma/Alma.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class AlmaResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Aroon/Aroon.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class AroonResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Atr/Atr.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class AtrResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/AtrStop/AtrStop.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class AtrStopResult : IResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Awesome/Awesome.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class AwesomeResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/BasicQuote/BasicQuote.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class BasicResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Beta/Beta.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class BetaResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/BollingerBands/BollingerBands.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class BollingerBandsResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Bop/Bop.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class BopResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Cci/Cci.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class CciResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/ChaikinOsc/ChaikinOsc.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class ChaikinOscResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Chandelier/Chandelier.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class ChandelierResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Chop/Chop.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class ChopResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Cmf/Cmf.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class CmfResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Cmo/Cmo.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class CmoResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/ConnorsRsi/ConnorsRsi.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class ConnorsRsiResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Correlation/Correlation.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class CorrResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Dema/Dema.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class DemaResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Donchian/Donchian.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class DonchianResult : IResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Dpo/Dpo.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class DpoResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/a-d/Dynamic/Dynamic.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class DynamicResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/ElderRay/ElderRay.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class ElderRayResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/Ema/Ema.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class EmaResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/Epma/Epma.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class EpmaResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/Fcb/Fcb.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class FcbResult : IResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/FisherTransform/FisherTransform.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class FisherTransformResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/ForceIndex/ForceIndex.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class ForceIndexResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/Fractal/Fractal.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class FractalResult : IResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/HeikinAshi/HeikinAshi.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class HeikinAshiResult : IResult, IQuote
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/Hma/Hma.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class HmaResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/HtTrendline/HtTrendline.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class HtlResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/Hurst/Hurst.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class HurstResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/Ichimoku/Ichimoku.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class IchimokuResult : IResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/Kama/Kama.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class KamaResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/Keltner/Keltner.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class KeltnerResult : IResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/e-k/Kvo/Kvo.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class KvoResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/m-r/MaEnvelopes/MaEnvelopes.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class MaEnvelopeResult : IResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/m-r/Macd/Macd.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class MacdResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/m-r/Mama/Mama.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class MamaResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/m-r/Mfi/Mfi.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class MfiResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/m-r/Obv/Obv.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class ObvResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/m-r/ParabolicSar/ParabolicSar.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class ParabolicSarResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/m-r/PivotPoints/PivotPoints.Models.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ internal interface IPivotPoint
public decimal? S4 { get; set; }
}

[Serializable]
public sealed record class PivotPointsResult : IResult, IPivotPoint
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/m-r/Pmo/Pmo.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class PmoResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/m-r/Prs/Prs.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class PrsResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
1 change: 1 addition & 0 deletions src/m-r/Pvo/Pvo.Models.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Skender.Stock.Indicators;

[Serializable]
public sealed record class PvoResult : IReusableResult
{
public DateTime Timestamp { get; set; }
Expand Down
Loading

0 comments on commit 6118858

Please sign in to comment.