Skip to content

Commit

Permalink
Downgrade IQFeed.CSharpApiClient and Project Restructuring (#9)
Browse files Browse the repository at this point in the history
* feat: downgrade pckg IQFeed

* remove: IQFeed.Downloader proj

* comment: debug mode

* fix: workflow file
  • Loading branch information
Romazes committed Feb 1, 2024
1 parent 9e40719 commit 05a657c
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 220 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/gh-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ jobs:
with:
image: quantconnect/lean:foundation
options: -v /home/runner/work:/__w --workdir /__w/Lean.DataSource.IQFeed/Lean.DataSource.IQFeed -e QC_JOB_USER_ID=${{ secrets.QC_JOB_USER_ID }} -e QC_API_ACCESS_TOKEN=${{ secrets.QC_API_ACCESS_TOKEN }} -e QC_JOB_ORGANIZATION_ID=${{ secrets.QC_JOB_ORGANIZATION_ID }}

- name: BuildDataProcessing
run: dotnet build ./QuantConnect.IQFeed.Downloader/QuantConnect.IQFeed.Downloader.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1

- name: BuildDataSource
run: dotnet build ./QuantConnect.IQFeed/QuantConnect.IQFeed.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
Expand Down
6 changes: 0 additions & 6 deletions Lean.DataSource.IQFeed.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QuantConnect.IQFeed", "QuantConnect.IQFeed\QuantConnect.IQFeed.csproj", "{209C11BB-C283-4599-A04D-D96097E006E6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QuantConnect.IQFeed.Downloader", "QuantConnect.IQFeed.Downloader\QuantConnect.IQFeed.Downloader.csproj", "{90A539F4-1E21-475F-B591-6C08830E12B3}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QuantConnect.Tests", "..\Lean\Tests\QuantConnect.Tests.csproj", "{AF992149-87F2-4B40-B864-E9FC8F8392A6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QuantConnect.IQFeed.Tests", "QuantConnect.IQFeed.Tests\QuantConnect.IQFeed.Tests.csproj", "{E48A0E2D-97D7-4480-AE0D-EB73838D9208}"
Expand All @@ -21,10 +19,6 @@ Global
{209C11BB-C283-4599-A04D-D96097E006E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{209C11BB-C283-4599-A04D-D96097E006E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{209C11BB-C283-4599-A04D-D96097E006E6}.Release|Any CPU.Build.0 = Release|Any CPU
{90A539F4-1E21-475F-B591-6C08830E12B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{90A539F4-1E21-475F-B591-6C08830E12B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{90A539F4-1E21-475F-B591-6C08830E12B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90A539F4-1E21-475F-B591-6C08830E12B3}.Release|Any CPU.Build.0 = Release|Any CPU
{AF992149-87F2-4B40-B864-E9FC8F8392A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AF992149-87F2-4B40-B864-E9FC8F8392A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AF992149-87F2-4B40-B864-E9FC8F8392A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
101 changes: 0 additions & 101 deletions QuantConnect.IQFeed.Downloader/IQFeedDownloaderProgram.cs

This file was deleted.

55 changes: 0 additions & 55 deletions QuantConnect.IQFeed.Downloader/Program.cs

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions QuantConnect.IQFeed.Downloader/config.json

This file was deleted.

4 changes: 0 additions & 4 deletions QuantConnect.IQFeed.Tests/IQFeedDataDownloaderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@
using System;
using System.Linq;
using NUnit.Framework;
using QuantConnect.Data;
using QuantConnect.Logging;
using QuantConnect.Data.Market;
using System.Collections.Generic;
using QuantConnect.IQFeed.Downloader;

namespace QuantConnect.IQFeed.Tests
{
Expand Down
1 change: 0 additions & 1 deletion QuantConnect.IQFeed.Tests/QuantConnect.IQFeed.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Lean\Tests\QuantConnect.Tests.csproj" />
<ProjectReference Include="..\QuantConnect.IQFeed.Downloader\QuantConnect.IQFeed.Downloader.csproj" />
<ProjectReference Include="..\QuantConnect.IQFeed\QuantConnect.IQFeed.csproj" />
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion QuantConnect.IQFeed.Tests/TestSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class TestSetup
[OneTimeSetUp]
public void GlobalSetup()
{
Log.DebuggingEnabled = true;
// Log.DebuggingEnabled = true;
Log.LogHandler = new CompositeLogHandler();
Log.Trace("TestSetup(): starting...");
ReloadConfiguration();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
using QuantConnect.Configuration;
using IQFeed.CSharpApiClient.Lookup;

namespace QuantConnect.IQFeed.Downloader
namespace QuantConnect.IQFeed
{
/// <summary>
/// Represents a data downloader for retrieving historical market data using IQFeed.
Expand Down Expand Up @@ -54,7 +54,7 @@ public IQFeedDataDownloader()
_fileHistoryProviderLazy = new Lazy<IQFeedFileHistoryProvider>(() =>
{
// Create and connect the IQFeed lookup client
var lookupClient = LookupClientFactory.CreateNew(Config.Get("iqfeed-host", "127.0.0.1"), IQSocket.GetPort(PortType.Lookup), NumberOfClients);
var lookupClient = LookupClientFactory.CreateNew(Config.Get("iqfeed-host", "127.0.0.1"), IQSocket.GetPort(PortType.Lookup), NumberOfClients, LookupDefault.Timeout);
// Establish connection with IQFeed Client
lookupClient.Connect();
Expand Down
2 changes: 1 addition & 1 deletion QuantConnect.IQFeed/QuantConnect.IQFeed.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="IQFeed.CSharpApiClient" Version="2.7.0" />
<PackageReference Include="IQFeed.CSharpApiClient" Version="2.5.1" />
<PackageReference Include="QuantConnect.Lean.Engine" Version="2.5.*" />
</ItemGroup>

Expand Down

0 comments on commit 05a657c

Please sign in to comment.