-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1511 from DerekMelchin/bug-1500-object-store-data…
…-source Update Object Store streaming docs
- Loading branch information
Showing
18 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
5 changes: 4 additions & 1 deletion
5
...ey Concepts/04 Remote File Providers.html → ...ta/01 Key Concepts/02 File Providers.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
03 Writing Algorithms/16 Importing Data/01 Key Concepts/98 Rate Limits.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<p>We do not impose a rate limit on file downloads but often external providers do. Dropbox caps download speeds to 10 kb/s after 3-4 download requests. To ensure your algorithms run fast, only use a small number of small custom data files.</p> | ||
<p>We do not impose a rate limit on file downloads but often external providers do. Dropbox caps download speeds to 10 kb/s after 3-4 download requests. To ensure your algorithms run fast, only use a small number of small custom data files or use the Object Store.</p> |
2 changes: 1 addition & 1 deletion
2
...iting Algorithms/16 Importing Data/02 Streaming Data/01 Key Concepts/01 Introduction.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<p>There are two techniques to import data into your algorithm. You can either manually import the entire file or stream the file line-by-line into your algorithm's <code>OnData</code> event. This page explores streaming a file's contents into your algorithm line-by-line.</p> | ||
<p>There are two techniques to import data into your algorithm. You can either manually import the entire file or stream the file line-by-line into your algorithm's <code>OnData</code> event. This page explores streaming a file's contents into your algorithm line-by-line. The data you import can be from a remote server or the <a href='/docs/v2/writing-algorithms/object-store'>Object Store</a>.</p> |
4 changes: 2 additions & 2 deletions
4
...iting Algorithms/16 Importing Data/02 Streaming Data/01 Key Concepts/02 Data Formats.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<p>Common data formats are <span class="public-file-name">CSV</span>, <span class="public-file-name">JSON</span>, and <span class="public-file-name">XML</span>, but you can use any file type that can be read over the internet. Each request has a one-second overhead, so you should package your custom data to minimize requests. Bundle dates together where possible to speed up execution. Just ensure the data in the file is in chronological order.</p> | ||
<p>Common data formats are <span class="public-file-name">CSV</span>, <span class="public-file-name">JSON</span>, and <span class="public-file-name">XML</span>, but you can use any file type that can be read over the internet. For Excel files, double check the raw data format for parsing in the data reader, since data will be formatted for convenient visualization in Excel application view. To avoid confusion of data format, save the spreadsheet as a <span class="public-file-name">CSV</span> file and open it in a text editor to confirm the raw data format.</p> | ||
|
||
<p>For Excel files, please double check the raw data format for parsing in the data reader, since data will be formatted for convenient visualization in Excel application view. To avoid confusion of data format, save the spreadsheet as a <span class="public-file-name">CSV</span> file and open it in a text editor to confirm the raw data format.</p> | ||
<p>The data in the file must be in chronological order. If you import from a remote <a href=''>file provider</a>, each request has a one-second overhead, so package your custom data to minimize requests. Bundle dates together where possible to speed up execution. The Object Store file provider gives you the fastest execution because you don't need to download the files on every execution.</p> |
1 change: 1 addition & 0 deletions
1
...s/16 Importing Data/02 Streaming Data/01 Key Concepts/90 Live Trading Considerations.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>In live trading, we pass custom data to your algorithm as soon as it arrives. The time it arrives may not align with the time of other <a href='https://www.quantconnect.com/docs/v2/writing-algorithms/key-concepts/time-modeling/timeslices'>slices</a>. Design your algorithm to handle unsychronized data so that you don't run into issues.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
03 Writing Algorithms/16 Importing Data/03 Bulk Downloads/01 Introduction.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
<p>There are two techniques to import data into your algorithm. You can either manually import the entire file or stream the file line-by-line into your algorithm's <code>OnData</code> event. This page explores importing an entire file for manual use.</p> | ||
|
||
<p>Instead of downloading the file from a remote file provider, you can upload the file to the Object Store (with the <a href='/docs/v2/cloud-platform/organizations/object-store#03-Upload-Files'>Algorithm Lab</a> or with the <a href='/docs/v2/lean-cli/object-store'>CLI</a>) for faster execution.</p> |
2 changes: 1 addition & 1 deletion
2
03 Writing Algorithms/16 Importing Data/03 Bulk Downloads/02 Recommended Use Cases.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php echo file_get_contents(DOCS_RESOURCES."/datasets/custom-data/download-use-cases.html"); ?> | ||
<? include(DOCS_RESOURCES."/datasets/custom-data/download-use-cases.html"); ?> |
1 change: 1 addition & 0 deletions
1
03 Writing Algorithms/16 Importing Data/03 Bulk Downloads/04 Save Files.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>When you download a remote file, save it into the Object Store so that you don't have to download the file again. If you need to import the file multiple times, it's faster to import it from the Object Store rather than repeatedly downloading the file from the remote file provider.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters