File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public class ApiConnection
30
30
{
31
31
private readonly static JsonSerializerSettings _jsonSettings = new ( ) { Converters = { new LiveAlgorithmResultsJsonConverter ( ) , new OrderJsonConverter ( ) } } ;
32
32
33
+ /// <summary>
33
34
/// Authorized client to use for requests.
34
35
/// </summary>
35
36
public RestClient Client ;
Original file line number Diff line number Diff line change 1
- /*
1
+ /*
2
2
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
3
3
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
4
4
*
13
13
* limitations under the License.
14
14
*/
15
15
using System ;
16
- using System . Collections . Generic ;
17
16
using Newtonsoft . Json ;
17
+ using System . Collections . Generic ;
18
18
19
19
namespace QuantConnect . Api
20
20
{
@@ -52,6 +52,12 @@ public class Project : RestResponse
52
52
/// </summary>
53
53
[ JsonProperty ( PropertyName = "language" ) ]
54
54
public Language Language { get ; set ; }
55
+
56
+ /// <summary>
57
+ /// The projects owner id
58
+ /// </summary>
59
+ [ JsonProperty ( PropertyName = "ownerId" ) ]
60
+ public int OwnerId { get ; set ; }
55
61
}
56
62
57
63
/// <summary>
@@ -65,4 +71,4 @@ public class ProjectResponse : RestResponse
65
71
[ JsonProperty ( PropertyName = "projects" ) ]
66
72
public List < Project > Projects { get ; set ; }
67
73
}
68
- }
74
+ }
Original file line number Diff line number Diff line change @@ -29,6 +29,17 @@ namespace QuantConnect.Tests.API
29
29
[ TestFixture , Explicit ( "Requires configured api access and available backtest node to run on" ) ]
30
30
public class ProjectTests : ApiTestBase
31
31
{
32
+ [ Test ]
33
+ public void ReadProject ( )
34
+ {
35
+ var readProject = ApiClient . ReadProject ( 16408347 ) ;
36
+ Assert . IsTrue ( readProject . Success ) ;
37
+ Assert . AreEqual ( 1 , readProject . Projects . Count ) ;
38
+
39
+ var project = readProject . Projects [ 0 ] ;
40
+ Assert . AreNotEqual ( 0 , project . OwnerId ) ;
41
+ }
42
+
32
43
/// <summary>
33
44
/// Test creating and deleting projects with the Api
34
45
/// </summary>
You can’t perform that action at this time.
0 commit comments