Skip to content

fix to support protocol 6.2 changes in L2 streaming example #144

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jphiggs
Copy link
Contributor

@jphiggs jphiggs commented Jul 13, 2022

I had issues with projects targeting .NET Framework 4.6.1 and could not find the SDK so I targeted 4.6.2 in my local repo but did not include any of those changes. A second PR for a new demo project will be coming soon.

level2Client.Timestamp += Level2ClientOnTimestamp;

// Step 6 - Make your streaming Level 2 requests
level2Client.ReqWatch("@ES#");
// ReqWatch is only supported in protocols 6.1 and below.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah didnt know that.

@@ -9,7 +9,7 @@ namespace IQFeed.CSharpApiClient.Examples.Examples.StreamingLevel2
{
public class StreamingLevel2Example : IExampleAsync
{
public bool Enable => false; // *** SET TO TRUE TO RUN THIS EXAMPLE ***
public bool Enable => true; // *** SET TO TRUE TO RUN THIS EXAMPLE ***
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please put it back to false

@@ -32,34 +32,65 @@ public async Task RunAsync()
level2Client.System += Level2ClientOnSystem;
level2Client.Error += Level2ClientOnError;

level2Client.Summary += Level2ClientOnSummary;
level2Client.Update += Level2ClientOnSummary;
//level2Client.Summary += Level2ClientOnSummary; // protocol 6.1 and prior
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it documented somewhere?

Console.WriteLine(msg);
}

//private void Level2ClientOnSummary(UpdateSummaryMessage msg) // protocol 6.1 and prior
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can just remove all this code if not usable in 6,2 anymore...

@jphiggs
Copy link
Contributor Author

jphiggs commented Feb 28, 2023 via email

@mathpaquette
Copy link
Owner

@jphiggs did you review my comments at some point ?

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 this pull request may close these issues.

2 participants