diff --git a/01 Cloud Platform/10 Live Trading/02 Brokerages/17 Bloomberg EMSX/13 Deployment Details.php b/01 Cloud Platform/10 Live Trading/02 Brokerages/17 Bloomberg EMSX/13 Deployment Details.php new file mode 100644 index 0000000000..332a71beb4 --- /dev/null +++ b/01 Cloud Platform/10 Live Trading/02 Brokerages/17 Bloomberg EMSX/13 Deployment Details.php @@ -0,0 +1,10 @@ + +$brokerageName = "Terminal Link"; +$deploymentDetails = [ + "terminal-link-server-auth-id" => "The Server Auth Id, which is the unique user identifier (UUID) of the Bloomberg Anywhere user.", + "terminal-link-emsx-broker" => "The EMSX broker that receives the orders.", + "terminal-link-emsx-account" => "The EMSX account to which LEAN routes orders.", + "terminal-link-emsx-team" => "The EMSX team account that receives events of your team's orders. It's empty if you didn't set one." +]; +include(DOCS_RESOURCES."/live-trading/deployment-details.php"); +?> diff --git a/01 Cloud Platform/99 API Reference/07 Live Management/02 Read Live Algorithm/01 Live Algorithm Statistics/03 Responses.html b/01 Cloud Platform/99 API Reference/07 Live Management/02 Read Live Algorithm/01 Live Algorithm Statistics/03 Responses.html index 1dbca6a90d..6f24bd9ef2 100644 --- a/01 Cloud Platform/99 API Reference/07 Live Management/02 Read Live Algorithm/01 Live Algorithm Statistics/03 Responses.html +++ b/01 Cloud Platform/99 API Reference/07 Live Management/02 Read Live Algorithm/01 Live Algorithm Statistics/03 Responses.html @@ -56,6 +56,9 @@
ServerStatistics object string object ChartSummary object When you deploy a live algorithm with =$brokerageName?>, the brokerage shares some details of the deployment, like the account it trades. Use them to tell concurrent deployments apart or to check that the algorithm connected to the account you expect. The details never include credentials.
+ +The following table describes the deployment details that =$brokerageName?> shares:
+ +| Key | +Description | +
|---|---|
=$key?> |
+ =$description?> | +
TheDeploymentDetailsdeployment_details property of your algorithm is a read-only dictionary of the details. LEAN populates it before it calls the Initializeinitialize method, so you can read it anywhere in your algorithm.
var deploymentDetails = DeploymentDetails.Select(kvp => $"{kvp.Key}:{kvp.Value}");
+Log($"deploymentDetails: {string.Join(", ", deploymentDetails)}");
+ deployment_details = [f'{kvp.key}:{kvp.value}' for kvp in self.deployment_details]
+self.log(f'deployment_details: {deployment_details}')
+The /live/read API endpoint also returns the details in its deploymentDetails field, so you can read them outside of the algorithm.