API Support » Generic "Dates and Sales" list Aug 19, 2010 @ 01:40 AM (Total replies: 4) | |||||
Victor, thank you very match. It works. Mikhail Iost |
|||||
API Support » Generic "Dates and Sales" list Aug 18, 2010 @ 01:20 AM (Total replies: 4) | |||||
Hi, I have one question about API.. How I can generic "Time and Sales" list in API? I use OECClient.OnPriceChanged and .OnPriceTick events. This my code: private OEC.API.OECClient oecClient1 = new OEC.API.OECClient(); private int iTotalVol; oecClient1.OnPriceTick += new OEC.API.OnPriceChangedEvent(oecClient1_OnPriceTick); .... void oecClient1_OnPriceTick(OEC.API.Contract Contract, OEC.API.Price Price) { if (iTotalVol != Price.TotalVol) { listBox1.Items.Add(DateTime.Now.ToLongTimeString() + ":" + DateTime.Now.Millisecond + " Price: " + Price.LastPrice); iTotalVol = Price.TotalVol; dPrice = Price.LastPrice; } } But, if I compare output of this code with chart of OEC, I see difference between this...some events is not come. Can you help me with this problem? Thank you in advance and best regards, Mikhail Iost. Mikhail Iost |