Asia
Experience: Beginner
Platform: NinjaTrader, TOS
Posts: 796 since Jun 2009
Thanks Given: 109
Thanks Received: 800
|
Hi All,
This is something I should know, but I don't (yet) and would be greatful for some C# help.
From a broker connection I have set up to receive trade events only (think "last price") , I get a stream of data like the attached console window.
I need to parse it to make it useful, I believe.
Each event is always in the same format, starting with 'Tradeinfo:' and ending with 'Timestamp:'
Can anyone off the top of their head throw me a bone on the best way to deal with that kind of event? If it contains 11 variables like that and I only wanted to Console.WriteLine, say, 'price', 'size', and 'timestamp'?
Its basic C# stuff but I'm still learning the basics.
Of course if the answer is "Dude! Don't parse it, do xyz instead!" I'm open to ideas.
Thanks!
|