Project Management
Create Project
Request
Name and language of the project to create. The /projects/create
API accepts requests in the following format:
CreateProjectRequest Model - Request to create a project with the specified name and language via QuantConnect.com API. | |
---|---|
name | string Project name. |
language | string Enum Programming langage to use. Options : ['C#', 'Py'] |
organizationId | string Optional parameter for specifying organization to create project under. If none provided web defaults to preferred. |
Example |
{ "name": "string", "language": "C#", "organizationId": "string" } |
Responses
The /projects/create
API provides a response in the following format:
200 Success
ProjectListResponse Model - Project list response. | |
---|---|
projects | Project Array List of projects for the authenticated user. |
versions | LeanVersion Array List of LEAN versions. |
success | boolean Indicate if the API request was successful. |
errors | string Array List of errors with the API call. |
Example |
{ "projects": [ { "projectId": 0, "organizationId": 0, "name": "string", "modified": "2021-11-26T15:18:27.693Z", "created": "2021-11-26T15:18:27.693Z", "ownerId": 0, "language": "C#", "collaborators": [ { "uid": 0, "liveControl": true, "permission": "read", "publicId": "string", "profileImage": "https://cdn.quantconnect.com/web/i/users/profile/abc123.jpeg", "email": "abc@123.com", "name": "string", "bio": "string", "owner": true } ], "leanVersionId": 0, "leanPinnedToMaster": true, "owner": true, "description": "string", "channelId": "string", "parameters": [ { "name": "string", "value": 0 } ], "libraries": [ { "projectId": 0, "libraryName": "string", "ownerName": "string", "access": true } ], "grid": "string", "liveGrid": "string", "paperEquity": 0, "lastLiveDeployment": "2021-11-26T15:18:27.693Z", "liveForm": , "encrypted": true, "codeRunning": true, "leanEnvironment": 0, "encryptionKey": { "id": "string", "name": "string" } } ], "versions": [ { "id": , "created": "2021-11-26T15:18:27.693Z", "description": "string", "leanHash": "string", "leanCloudHash": "string", "name": "string", "ref": "string", "public": } ], "success": true, "errors": [ "string" ] } |
Project Model - Response from reading a project by id. | |
---|---|
projectId | integer Project id. |
organizationId | integer Orgainization id. |
name | string Name of the project. |
modified | string($date-time) Modified date for the project. |
created | string($date-time) Date the project was created. |
ownerId | integer Owner id. |
language | string Enum Programming language of the project. Options : ['C#', 'Py'] |
collaborators | Collaborator Array List of collaborators. |
leanVersionId | integer The version of LEAN this project is running on. |
leanPinnedToMaster | boolean Indicate if the project is pinned to the master branch of LEAN. |
owner | boolean Indicate if you are the owner of the project. |
description | string The project description. |
channelId | string Channel id. |
parameters | ParameterSet Array Optimization parameters. |
libraries | Library Array The library projects. |
grid | string Configuration of the backtest view grid. |
liveGrid | string Configuration of the live view grid. |
paperEquity | number The equity value of the last paper trading instance. |
lastLiveDeployment | string($date-time) The last live deployment active time. |
liveForm | object The last live wizard content used. |
encrypted | boolean Indicates if the project is encrypted. |
codeRunning | boolean Indicates if the project is running or not. |
leanEnvironment | integer LEAN environment of the project running on. |
encryptionKey | EncryptionKey object Encryption key details. |
Example |
{ "projectId": 0, "organizationId": 0, "name": "string", "modified": "2021-11-26T15:18:27.693Z", "created": "2021-11-26T15:18:27.693Z", "ownerId": 0, "language": "C#", "collaborators": [ { "uid": 0, "liveControl": true, "permission": "read", "publicId": "string", "profileImage": "https://cdn.quantconnect.com/web/i/users/profile/abc123.jpeg", "email": "abc@123.com", "name": "string", "bio": "string", "owner": true } ], "leanVersionId": 0, "leanPinnedToMaster": true, "owner": true, "description": "string", "channelId": "string", "parameters": [ { "name": "string", "value": 0 } ], "libraries": [ { "projectId": 0, "libraryName": "string", "ownerName": "string", "access": true } ], "grid": "string", "liveGrid": "string", "paperEquity": 0, "lastLiveDeployment": "2021-11-26T15:18:27.693Z", "liveForm": , "encrypted": true, "codeRunning": true, "leanEnvironment": 0, "encryptionKey": { "id": "string", "name": "string" } } |
Collaborator Model | |
---|---|
uid | integer User ID. |
liveControl | boolean Indicate if the user have live control. |
permission | string Enum The permission this user is given. Options : ['read', 'write'] |
publicId | string The user public ID. |
profileImage | string The url of the user profile image. |
string The registered email of the user. | |
name | string The display name of the user. |
bio | string The biography of the user. |
owner | boolean Indicate if the user is the owner of the project. |
Example |
{ "uid": 0, "liveControl": true, "permission": "read", "publicId": "string", "profileImage": "https://cdn.quantconnect.com/web/i/users/profile/abc123.jpeg", "email": "abc@123.com", "name": "string", "bio": "string", "owner": true } |
ParameterSet Model - Parameter set. | |
---|---|
name | string Name of parameter. |
value | number Value of parameter. |
Example |
{ "name": "string", "value": 0 } |
Library Model | |
---|---|
projectId | integer Project Id of the library project. |
libraryName | string Name of the library project. |
ownerName | string Name of the library project owner. |
access | boolean Indicate if the library project can be accessed. |
Example |
{ "projectId": 0, "libraryName": "string", "ownerName": "string", "access": true } |
EncryptionKey Model - Encryption key details. | |
---|---|
id | string Encryption key id. |
name | string Name of the encryption key. |
Example |
{ "id": "string", "name": "string" } |
LeanVersion Model | |
---|---|
id | int ID of the LEAN version. |
created | string($date-time) Date when this version was created. |
description | string Description of the LEAN version. |
leanHash | string Commit Hash in the LEAN repository. |
leanCloudHash | string Commit Hash in the LEAN Cloud repository. |
name | string Name of the branch where the commit is. |
ref | string Reference to the branch where the commit is. |
public | int Indicates if the version is available for the public (1) or not (0). |
Example |
{ "id": , "created": "2021-11-26T15:18:27.693Z", "description": "string", "leanHash": "string", "leanCloudHash": "string", "name": "string", "ref": "string", "public": } |
401 Authentication Error
UnauthorizedError Model - Unauthorized response from the API. Key is missing, invalid, or timestamp is too old for hash. | |
---|---|
www_authenticate | string Header |