IQuote not found? #203
-
Hi, But no matter what i include, IQuote can not be resolved using the Nuget Package. My goal here is to try out the performance of the Lib when using IQuote, as i currently loose a lot of processor time converting my custom Quote Class back to "Quote" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You cannot modify using Skender.Stock.Indicators;
[..]
public class MyCustomQuote : IQuote
{
// required base properties
public DateTime Date { get; set; }
public decimal Open { get; set; }
public decimal High { get; set; }
public decimal Low { get; set; }
public decimal Close { get; set; }
public decimal Volume { get; set; }
// custom properties
public int MyOtherProperty { get; set; }
} If you're getting CS2046 'IQuote' could not be found, then I'd check to make sure you've 1) supplied the <ItemGroup>
<PackageReference Include="Skender.Stock.Indicators" Version="1.2.0" /> <!-- or newer -->
</ItemGroup> If you've implemented a custom Quote class with the exact same cc @MithrilMan, thoughts? |
Beta Was this translation helpful? Give feedback.
You cannot modify
IQuote
directly, rather you'd need to add it to your pre-existing class equivalent ofQuote
. The code in your app should look something like this:If you're getting CS2046 'IQuote' could not be found, then I'd check to make sure you've 1) supplied the
using
statemen…