Skip to content

Commit

Permalink
rename: namespaces to new format
Browse files Browse the repository at this point in the history
  • Loading branch information
Romazes committed Mar 1, 2024
1 parent 621dacc commit a948a65
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion DataProcessing/MyCustomDataDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
using Newtonsoft.Json;
using QuantConnect.Configuration;
using QuantConnect.Data.Auxiliary;
using QuantConnect.DataSource;
using QuantConnect.Lean.DataSource;
using QuantConnect.Lean.Engine.DataFeeds;
using QuantConnect.Logging;
using QuantConnect.Util;
Expand Down
2 changes: 1 addition & 1 deletion Demonstration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
using QuantConnect.Util;
using QuantConnect.Orders;
using QuantConnect.Algorithm;
using QuantConnect.DataSource;
using QuantConnect.Lean.DataSource;

namespace QuantConnect.DataLibrary.Tests
{
Expand Down
4 changes: 1 addition & 3 deletions DemonstrationUniverse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
*
*/

using System;
using System.Linq;
using QuantConnect.Data;
using QuantConnect.Data.UniverseSelection;
using QuantConnect.DataSource;
using QuantConnect.Lean.DataSource;

namespace QuantConnect.Algorithm.CSharp
{
Expand Down
6 changes: 3 additions & 3 deletions MyCustomDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
*
*/

using System;
using NodaTime;
using QuantConnect.Data;
using System.Collections.Generic;
using QuantConnect.Lean.Engine.HistoricalData;
using QuantConnect.Lean.Engine.DataFeeds;
using System;
using QuantConnect.Lean.Engine.HistoricalData;

namespace QuantConnect.DataSource
namespace QuantConnect.Lean.DataSource
{
/// <summary>
/// Implementation of Custom Data Provider
Expand Down
2 changes: 1 addition & 1 deletion MyCustomDataType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
using QuantConnect.Data;
using System.Collections.Generic;

namespace QuantConnect.DataSource
namespace QuantConnect.Lean.DataSource
{
/// <summary>
/// Example custom data type
Expand Down
2 changes: 1 addition & 1 deletion MyCustomDataUniverseType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
using System.Collections.Generic;
using System.Globalization;

namespace QuantConnect.DataSource
namespace QuantConnect.Lean.DataSource
{
/// <summary>
/// Example custom data type
Expand Down
6 changes: 3 additions & 3 deletions QuantConnect.DataSource.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>QuantConnect.DataSource</RootNamespace>
<AssemblyName>QuantConnect.DataSource.MyCustomDataType</AssemblyName>
<RootNamespace>QuantConnect.Lean.DataSource</RootNamespace>
<AssemblyName>QuantConnect.Lean.DataSource.MyCustomDataType</AssemblyName>
<OutputPath>bin\$(Configuration)</OutputPath>
<DocumentationFile>$(OutputPath)\QuantConnect.DataSource.MyCustomDataType.xml</DocumentationFile>
<DocumentationFile>$(OutputPath)\QuantConnect.Lean.DataSource.MyCustomDataType.xml</DocumentationFile>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions tests/MyCustomDataProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
using QuantConnect.Data;
using QuantConnect.Util;
using QuantConnect.Tests;
using QuantConnect.DataSource;
using QuantConnect.Lean.DataSource;
using QuantConnect.Securities;
using System.Collections.Generic;

Expand Down Expand Up @@ -53,12 +53,12 @@ private static IEnumerable<TestCaseData> TestParameters
.SetCategory("Invalid");

/// <see cref="Slice.Delistings"/>
yield return new TestCaseData(Symbol.Create("AAA.1", SecurityType.Equity, Market.USA), Resolution.Hour, TickType.Trade, TimeSpan.FromDays(2))
yield return new TestCaseData(Symbol.Create("AAA.1", SecurityType.Equity, Market.USA), Resolution.Hour, TickType.Trade, TimeSpan.FromDays(2), true)
.SetDescription("Delisted Symbol - the DataSource supports the history of delisted ones or not")
.SetCategory("Valid/Invalid");

/// <see cref="Slice.SymbolChangedEvents"/>
yield return new TestCaseData(Symbol.Create("SPWR", SecurityType.Equity, Market.USA), Resolution.Hour, TickType.Trade, TimeSpan.FromDays(2))
yield return new TestCaseData(Symbol.Create("SPWR", SecurityType.Equity, Market.USA), Resolution.Hour, TickType.Trade, TimeSpan.FromDays(2), true)
.SetDescription("Mapping Symbol")
.SetCategory("Valid");
}
Expand Down
2 changes: 1 addition & 1 deletion tests/MyCustomDataTypeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
using Newtonsoft.Json;
using NUnit.Framework;
using QuantConnect.Data;
using QuantConnect.DataSource;
using QuantConnect.Lean.DataSource;

namespace QuantConnect.DataLibrary.Tests
{
Expand Down

0 comments on commit a948a65

Please sign in to comment.