Skip to content

Commit

Permalink
Update 04 Optimization.html
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMelchin authored Mar 15, 2024
1 parent 8f05781 commit e9e822c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 05 Lean CLI/05 Datasets/10 Terminal Link/04 Optimization.html
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
<p>Follow these steps to run a local optimization job with data from Bloomberg DAPI through Terminal Link:</p>

<ol>
<li>Add some <a href='/docs/v2/lean-cli/optimization/parameters'>parameters</a> to your project.</li>

<li>Open a terminal in your <a href='/docs/v2/lean-cli/initialization/organization-workspaces'>organization workspace</a>.</li>

<li>Run <code>lean optimize &lt;projectName&gt; --data-provider-historical "Terminal Link" --terminal-link-connection-type DAPI --terminal-link-environment &lt;environment&gt; --terminal-link-server-host &lt;serverHost&gt; --terminal-link-server-port &lt;serverPort&gt; --terminal-link-emsx-broker &lt;emsxBroker&gt; --terminal-link-openfigi-api-key &lt;openfigiApiKey&gt;</code>.</li>
<div class="cli section-example-container">
<pre>$ lean optimize "My Project" --data-provider-historical "Terminal Link" --terminal-link-connection-type DAPI --terminal-link-environment Production --terminal-link-server-host serverHost --terminal-link-server-port serverPort --terminal-link-emsx-broker emsxBroker --terminal-link-openfigi-api-key openfigiApiKey</pre>
</div>

<li>Follow <a href='/docs/v2/lean-cli/optimization/deployment#02-Run-Local-Optimizations'>the steps in the interactive wizard</a> to configure your optimization job settings.</li>
</ol>

<p>
The <code>lean optimize</code> command also accepts additional <a href='/docs/v2/lean-cli/api-reference/lean-backtest#04-Options'>options</a> so that you can select Terminal Link and run the command in non-interactive mode.
If you provide any of the preceding options, your <a href='/docs/v2/lean-cli/initialization/configuration#03-Lean-Configuration'>Lean configuration file</a> saves them so that you only need to run <code>lean optimize &lt;projectName&gt;</code> to run another optimization job with the same options.
</p>

0 comments on commit e9e822c

Please sign in to comment.