You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: 01 Cloud Platform/99 API Reference/07 Live Management/05 Live Commands/02 Broadcast Live Command/02 Request.html
+6-2
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,10 @@
9
9
</tr>
10
10
</thead>
11
11
<tr>
12
-
<tdwidth="20%">sourceProjectId</td><td><code>integer<br/><i><sub>example: 19626262</sub></i></code><br/> Project for the live instance we want to source the command from.</td>
12
+
<tdwidth="20%">organizationId</td><td><code>string<br/><i><sub>example: 5cad178b20a1d52567b534553413b691</sub></i></code><br/> Organization Id of the projects we would like to broadcast the command to.</td>
13
+
</tr>
14
+
<tr>
15
+
<tdwidth="20%">excludeProjectId</td><td><code>integer<br/><i><sub>example: 19626262</sub></i></code><br/> Project for the live instance we want to exclude from the broadcast list. If null, all projects will be included.</td>
Copy file name to clipboardexpand all lines: 03 Writing Algorithms/40 Live Trading/41 Commands/07 Broadcast Commands by API.html
+9-9
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
<p>
2
2
To broadcast a command to your live algorithms, send a payload through the <ahref='/docs/v2/cloud-platform/api-reference/live-management/live-commands'>QuantConnect REST API</a> or <ahref='/docs/v2/lean-cli/live-trading/algorithm-control'>LEAN CLI</a>.
3
3
<spanclass='csharp'>LEAN converts the first character in each key of the payload to uppercase before injecting the data into your algorithm.</span>
4
-
The following script demonstrates how to broadcast a command with the REST API.
5
-
The source project ID is any project in your organization. It will not receive the command.
4
+
The following script demonstrates how to broadcast a command to all projects in your organization with the REST API.
<p>To get your user Id and API token, see <ahref='/docs/v2/cloud-platform/community/profile#09-Request-API-Token'>Request API Token</a>.</p>
49
+
<p>To get your user Id, API token, and organization Id, see <ahref='/docs/v2/cloud-platform/community/profile#09-Request-API-Token'>Request API Token</a> and <ahref='/docs/v2/cloud-platform/organizations/getting-started#05-Get-Organization-Id'>Get Organization Id</a>.</p>
0 commit comments