Skip to content

Commit

Permalink
Update 14 Short Availability.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMelchin authored Dec 24, 2024
1 parent 5b3a4ae commit 7910255
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="section-example-container">
<pre class="csharp">// Add an asset and save a reference to the Equity object.
var security = AddEquity("SPY");
// Set the shortable provider to the IB shortable provider.
// Overwrite the default shortable provider to one that provides data.
security.SetShortableProvider(new InteractiveBrokersShortableProvider());
// Select a time in the past.
var t = Time.AddDays(-30);
Expand All @@ -13,7 +13,7 @@
var shortableQuantity = security.ShortableProvider.ShortableQuantity(security.Symbol, t);</pre>
<pre class="python"># Add an asset and save a reference to its Equity object.
security = self.add_equity('SPY')
# Set the shortable provider to the IB shortable provider.
# Overwrite the default shortable provider to one that provides data.
security.set_shortable_provider(InteractiveBrokersShortableProvider())
# Select a time in the past.
t = self.time - timedelta(30)
Expand Down

0 comments on commit 7910255

Please sign in to comment.