Skip to content

Commit 1dee596

Browse files
authored
Initial commit
0 parents  commit 1dee596

26 files changed

+1735
-0
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build & Test
2+
3+
on:
4+
push:
5+
branches: ['*']
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-20.04
12+
container:
13+
image: quantconnect/lean:foundation
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Checkout Lean Same Branch
18+
id: lean-same-branch
19+
uses: actions/checkout@v2
20+
continue-on-error: true
21+
with:
22+
ref: ${{ github.ref }}
23+
repository: QuantConnect/Lean
24+
path: Lean
25+
26+
- name: Checkout Lean Master
27+
if: steps.lean-same-branch.outcome != 'success'
28+
uses: actions/checkout@v2
29+
with:
30+
repository: QuantConnect/Lean
31+
path: Lean
32+
33+
- name: Move Lean
34+
run: mv Lean ../Lean
35+
36+
- name: BuildDataSource
37+
run: dotnet build ./QuantConnect.DataSource.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
38+
39+
- name: BuildTests
40+
run: dotnet build ./tests/Tests.csproj /p:Configuration=Release /v:quiet /p:WarningLevel=1
41+
42+
- name: Run Tests
43+
run: dotnet test ./tests/bin/Release/net6.0/Tests.dll

.gitignore

Lines changed: 279 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,279 @@
1+
# Object files
2+
*.o
3+
*.ko
4+
*.obj
5+
*.elf
6+
*.pyc
7+
8+
# Visual Studio Project Items:
9+
*.suo
10+
11+
# Precompiled Headers
12+
*.gch
13+
*.pch
14+
15+
# Libraries
16+
*.lib
17+
*.a
18+
*.la
19+
*.lo
20+
21+
# Shared objects (inc. Windows DLLs)
22+
#*.dll
23+
*.so
24+
*.so.*
25+
*.dylib
26+
27+
# Executables
28+
*/bin/*.exe
29+
*.out
30+
*.app
31+
*.i*86
32+
*.x86_64
33+
*.hex
34+
35+
# QC Cloud Setup Bash Files
36+
*.sh
37+
# Include docker launch scripts for Mac/Linux
38+
!run_docker.sh
39+
!research/run_docker_notebook.sh
40+
41+
# QC Config Files:
42+
# config.json
43+
44+
# QC-C-Specific
45+
*Engine/bin/Debug/cache/data/*.zip
46+
*/obj/*
47+
*/bin/*
48+
*Data/*
49+
*Docker/*
50+
*/Docker/*
51+
*Algorithm.Python/Lib/*
52+
*/[Ee]xtensions/*
53+
!**/Libraries/*
54+
55+
# C Debug Binaries
56+
*.pdb
57+
58+
## Ignore Visual Studio temporary files, build results, and
59+
## files generated by popular Visual Studio add-ons.
60+
61+
# User-specific files
62+
*.suo
63+
*.user
64+
*.userosscache
65+
*.sln.docstates
66+
*.userprefs
67+
68+
# Build results
69+
[Dd]ebug/
70+
[Dd]ebugPublic/
71+
[Rr]elease/
72+
[Rr]eleases/
73+
x64/
74+
x86/
75+
.vs/
76+
build/
77+
bld/
78+
[Bb]in/
79+
[Oo]bj/
80+
81+
# Roslyn cache directories
82+
*.ide/
83+
84+
# MSTest test Results
85+
[Tt]est[Rr]esult*/
86+
[Bb]uild[Ll]og.*
87+
88+
#NUNIT
89+
*.VisualState.xml
90+
TestResult.xml
91+
92+
# Build Results of an ATL Project
93+
[Dd]ebugPS/
94+
[Rr]eleasePS/
95+
dlldata.c
96+
97+
*_i.c
98+
*_p.c
99+
*_i.h
100+
*.ilk
101+
*.meta
102+
*.obj
103+
*.pch
104+
*.pdb
105+
*.pgc
106+
*.pgd
107+
*.rsp
108+
*.sbr
109+
*.tlb
110+
*.tli
111+
*.tlh
112+
*.tmp
113+
*.tmp_proj
114+
*.log
115+
*.vspscc
116+
*.vssscc
117+
.builds
118+
*.pidb
119+
*.svclog
120+
*.scc
121+
122+
# Chutzpah Test files
123+
_Chutzpah*
124+
125+
# Visual C++ cache files
126+
ipch/
127+
*.aps
128+
*.ncb
129+
*.opensdf
130+
*.sdf
131+
*.cachefile
132+
133+
# Visual Studio profiler
134+
*.psess
135+
*.vsp
136+
*.vspx
137+
138+
# TFS 2012 Local Workspace
139+
$tf/
140+
141+
# Guidance Automation Toolkit
142+
*.gpState
143+
144+
# ReSharper is a .NET coding add-in
145+
_ReSharper*/
146+
*.[Rr]e[Ss]harper
147+
*.DotSettings
148+
*.DotSettings.user
149+
150+
# JustCode is a .NET coding addin-in
151+
.JustCode
152+
153+
# TeamCity is a build add-in
154+
_TeamCity*
155+
156+
# DotCover is a Code Coverage Tool
157+
*.dotCover
158+
159+
# NCrunch
160+
_NCrunch_*
161+
.*crunch*.local.xml
162+
163+
# MightyMoose
164+
*.mm.*
165+
AutoTest.Net/
166+
167+
# Web workbench (sass)
168+
.sass-cache/
169+
170+
# Installshield output folder
171+
[Ee]xpress/
172+
173+
# JetBrains Rider
174+
.idea/
175+
176+
# DocProject is a documentation generator add-in
177+
DocProject/buildhelp/
178+
DocProject/Help/*.HxT
179+
DocProject/Help/*.HxC
180+
DocProject/Help/*.hhc
181+
DocProject/Help/*.hhk
182+
DocProject/Help/*.hhp
183+
DocProject/Help/Html2
184+
DocProject/Help/html
185+
186+
# Click-Once directory
187+
publish/
188+
189+
# Publish Web Output
190+
*.[Pp]ublish.xml
191+
*.azurePubxml
192+
# TODO: Comment the next line if you want to checkin your web deploy settings
193+
# but database connection strings (with potential passwords) will be unencrypted
194+
*.pubxml
195+
*.publishproj
196+
197+
# NuGet Packages
198+
*.nupkg
199+
!LocalPackages/*
200+
# The packages folder can be ignored because of Package Restore
201+
**/packages/*
202+
# except build/, which is used as an MSBuild target.
203+
!**/packages/build/
204+
# If using the old MSBuild-Integrated Package Restore, uncomment this:
205+
#!**/packages/repositories.config
206+
# ignore sln level nuget
207+
.nuget/
208+
!.nuget/NuGet.config
209+
210+
# Windows Azure Build Output
211+
csx/
212+
*.build.csdef
213+
214+
# Windows Store app package directory
215+
AppPackages/
216+
217+
# Others
218+
*.Cache
219+
ClientBin/
220+
[Ss]tyle[Cc]op.*
221+
~$*
222+
*~
223+
*.dbmdl
224+
*.dbproj.schemaview
225+
*.pfx
226+
*.publishsettings
227+
node_modules/
228+
bower_components/
229+
230+
# RIA/Silverlight projects
231+
Generated_Code/
232+
233+
# Backup & report files from converting an old project file
234+
# to a newer Visual Studio version. Backup files are not needed,
235+
# because we have git ;-)
236+
_UpgradeReport_Files/
237+
Backup*/
238+
UpgradeLog*.XML
239+
UpgradeLog*.htm
240+
241+
# SQL Server files
242+
*.mdf
243+
*.ldf
244+
245+
# Business Intelligence projects
246+
*.rdl.data
247+
*.bim.layout
248+
*.bim_*.settings
249+
250+
# Microsoft Fakes
251+
FakesAssemblies/
252+
253+
# Test Runner
254+
testrunner/
255+
256+
# Meld original diff files
257+
*.orig
258+
259+
# Output chart data
260+
Charts/
261+
262+
# NCrunch files
263+
*.ncrunchsolution
264+
*.ncrunchproject
265+
266+
# QuantConnect plugin files
267+
QuantConnectProjects.xml
268+
Launcher/Plugins/*
269+
/ApiPython/dist
270+
/ApiPython/quantconnect.egg-info
271+
/ApiPython/quantconnect.egg-info/*
272+
273+
QuantConnect.Lean.sln.DotSettings*
274+
275+
#User notebook files
276+
Research/Notebooks
277+
278+
#Docker result files
279+
Results/

DataProcessing/CLRImports.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is used to import the environment and classes/methods of LEAN.
2+
# so that any python file could be using LEAN's classes/methods.
3+
from clr_loader import get_coreclr
4+
from pythonnet import set_runtime
5+
6+
# process.runtimeconfig.json is created when we build the DataProcessing Project:
7+
# dotnet build .\DataProcessing\DataProcessing.csproj
8+
set_runtime(get_coreclr('process.runtimeconfig.json'))
9+
10+
from AlgorithmImports import *
11+
from QuantConnect.Lean.Engine.DataFeeds import *
12+
AddReference("Fasterflect")
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>Exe</OutputType>
4+
<TargetFramework>net6.0</TargetFramework>
5+
<AssemblyName>process</AssemblyName>
6+
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
7+
</PropertyGroup>
8+
<ItemGroup>
9+
<PackageReference Include="QuantConnect.Lean.Engine" Version="2.5.*"/>
10+
<PackageReference Include="QuantConnect.Research" Version="2.5.*"/>
11+
<PackageReference Include="QuantConnect.pythonnet" Version="2.0.*" />
12+
<PackageReference Include="fasterflect" Version="3.0.0" />
13+
</ItemGroup>
14+
<ItemGroup>
15+
<ProjectReference Include="..\QuantConnect.DataSource.csproj" />
16+
</ItemGroup>
17+
<ItemGroup>
18+
<None Remove="CLRImports.py" />
19+
<Content Include="CLRImports.py">
20+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
21+
</Content>
22+
</ItemGroup>
23+
<ItemGroup>
24+
<None Remove="config.json" />
25+
<Content Include="config.json">
26+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
27+
</Content>
28+
</ItemGroup>
29+
</Project>

0 commit comments

Comments
 (0)