API Support Forum
User Profile

Viewing User Profile for: MMikhail13


About

Aug 17, 2010 08:24 AM

Aug 19, 2010 01:40 AM

Aug 19, 2010 01:40 AM



Post Statistics
MMikhail13 has contributed to 2 posts out of 5600 total posts (0.04%) in 5021 days (0.00 posts per day).

20 most recent posts:

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