Skip to content

Commit

Permalink
[MDAPI-25] [.NET] [IPF] Implement custom fields in InstrumentProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Ivaschenko committed Jul 3, 2024
1 parent 2d0d8e2 commit a45e8f6
Show file tree
Hide file tree
Showing 21 changed files with 1,839 additions and 631 deletions.
6 changes: 5 additions & 1 deletion samples/CandleDataResponseReader/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ private static async Task Main(string[] args)
// Create an HTTP client with the base URL and the authentication token
using var client = CreateHttpClient("https://tools.dxfeed.com/", token);


var start = DateTimeOffset.Now.AddDays(-2).ToString("yyyyMMdd", InvariantCulture);
var stop = DateTimeOffset.Now.AddDays(-1).ToString("yyyyMMdd", InvariantCulture);
// URL for fetching candle events.
Expand Down Expand Up @@ -130,6 +129,11 @@ private static List<T> ParseEvents<T>(HttpResponseMessage message)
private static List<T> ParseEvents<T>(StreamReader reader)
where T : ITimeSeriesEvent
{
if (reader.EndOfStream)
{
return new List<T>();
}

var config = new CsvConfiguration(InvariantCulture)
{
AllowComments = false, HasHeaderRecord = true, MissingFieldFound = null, DetectDelimiter = true,
Expand Down
4 changes: 4 additions & 0 deletions src/DxFeed.Graal.Net/DxFeed.Graal.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@
<PackageReference Include="DxFeed.Graal.Native" Version="1.1.21" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="DxFeed.Graal.Net.Tests" />
</ItemGroup>

</Project>
Loading

0 comments on commit a45e8f6

Please sign in to comment.