Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples Issue: Securities / Equity Options / Handling Data #1878

Open
jaredbroad opened this issue Sep 3, 2024 · 0 comments · May be fixed by #1884
Open

Examples Issue: Securities / Equity Options / Handling Data #1878

jaredbroad opened this issue Sep 3, 2024 · 0 comments · May be fixed by #1884
Assignees

Comments

@jaredbroad
Copy link
Member

jaredbroad commented Sep 3, 2024

Examples

  • Example 1: Individual: Add contracts expiring this week. Loop through quote bars calc mid price. Use seeder. (10 lines)
  • Example 2: Universe: Filter contracts expiring this week. Loop through quote bars calc mid price. Use seeder. (10 lines)
  • Example 3: Universe: Filter contracts expiring this week. In OnData, get the 1 contracts with delta closest to 0.4.

Remember

  • Don't use variables that aren't defined.
  • Comment every line or few lines.
  • Include 40-100 word explanation.
  • Declare everything you need each example.
  • Copy from IDE to Docs so confirm it works. Copy-pastable examples.
  • ALWAYS make Examples.html at the end.

For the new examples in the docs:

  • There should be a sentence at the beginning of the <h3>Examples</h3>
    • <p>The following examples demonstrate some common practices for _________.</p>
  • Have 1 <h4>Example _: ____________</h4> for each Example.
    • The example should highlight the concepts that were explained on the respective documentation page.
    • Avoid creating tutorial-style content for the text. The text between should at least have a sentence that explains what the algorithm does. "The following algorithm __________:"
    • If there is an opportunity to link some of the text to other pages/sections in the docs, please link it.
    • The example should be a full algorithm in 1 code block, with conventional styling (PEP8 or typical C#; Ask Grok/ChatGPT to help you style/format the code if you need).
    • Test that you can run each example algorithm in QC Cloud w/o error before adding it to the docs.
  • If we have a list of Demonstration Algorithms, put them all under <h4>Other Examples</h4>. The sentence under that heading should read <p>For more examples, see the following algorithms:</p>
@LouisSzeto LouisSzeto linked a pull request Sep 5, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants