Skip to content

Commit 080f54a

Browse files
authored
[MDAPI-25] [.NET] [IPF] Implement custom fields in InstrumentProfile (#68)
1 parent 2d0d8e2 commit 080f54a

21 files changed

+1837
-632
lines changed

samples/CandleDataResponseReader/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ private static async Task Main(string[] args)
3737
// Create an HTTP client with the base URL and the authentication token
3838
using var client = CreateHttpClient("https://tools.dxfeed.com/", token);
3939

40-
4140
var start = DateTimeOffset.Now.AddDays(-2).ToString("yyyyMMdd", InvariantCulture);
4241
var stop = DateTimeOffset.Now.AddDays(-1).ToString("yyyyMMdd", InvariantCulture);
4342
// URL for fetching candle events.
@@ -130,6 +129,11 @@ private static List<T> ParseEvents<T>(HttpResponseMessage message)
130129
private static List<T> ParseEvents<T>(StreamReader reader)
131130
where T : ITimeSeriesEvent
132131
{
132+
if (reader.EndOfStream)
133+
{
134+
return new List<T>();
135+
}
136+
133137
var config = new CsvConfiguration(InvariantCulture)
134138
{
135139
AllowComments = false, HasHeaderRecord = true, MissingFieldFound = null, DetectDelimiter = true,

src/DxFeed.Graal.Net/DxFeed.Graal.Net.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
</PackageReference>
2424
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0"/>
2525
<PackageReference Include="System.Collections.Immutable" Version="8.0.0"/>
26-
<PackageReference Include="DxFeed.Graal.Native" Version="1.1.21" />
26+
<PackageReference Include="DxFeed.Graal.Native" Version="1.1.22" />
27+
</ItemGroup>
28+
29+
<ItemGroup>
30+
<InternalsVisibleTo Include="DxFeed.Graal.Net.Tests" />
2731
</ItemGroup>
2832

2933
</Project>

0 commit comments

Comments
 (0)