API Support Forum
User Profile

Viewing User Profile for: KZetterstrom


About

Jun 22, 2011 08:22 AM

Sep 21, 2011 05:12 PM

Oct 04, 2011 12:28 PM



Post Statistics
KZetterstrom has contributed to 6 posts out of 5593 total posts (0.11%) in 4700 days (0.00 posts per day).

20 most recent posts:

API Support » SubscribeBars not working? Sep 21, 2011 @ 05:12 PM (Total replies: 11)

PM Sent

Kevin Zetterstrom

API Support » SubscribeBars not working? Sep 20, 2011 @ 09:07 PM (Total replies: 11)

Username: KZetterstrom
Contract: 6AZ1
Time at SubscribeBars() call: 9:02:xx Eastern Standard Time. xx is somewhere between 3-30 seconds, not exactly sure.

Kevin Zetterstrom

API Support » SubscribeBars not working? Sep 20, 2011 @ 08:35 PM (Total replies: 11)

I tried several contracts. EMU1, 6CZ1, 6JZ1, 6AZ1. A few others too. None seemed to work. I can use requestBars for these and I get the bars that way through OnBarsReceived. Thoughts?

Kevin Zetterstrom

API Support » SubscribeBars not working? Sep 20, 2011 @ 06:29 PM (Total replies: 11)

I am trying to use SubscribeBars to keep updated with a contracts bar history. I have tried both:

oecClient1.SubscribeBars(contract, DateTime.Now, OEC.Data.SubscriptionType.Bar, 3);

and the new overload

oecClient1.SubscribeBars(contract, 41, OEC.Data.SubscriptionType.Bar, 3, false);

to get 3 minute bar intervals for my OEC.API.Contract contract.


With both of these calls, I am getting an oecClient1_OnBarsReceived() function to fire just ONCE, which happens immediately after my call to SubscribeBars(). Shouldn't the SubscribeBars() functions send me bars on my bar interval? I thought I would hit the oecClient1_OnBarsReceived() every 3 minutes but I am not.

Please help!
Thanks

Kevin Zetterstrom

API Support » Autoreconnect login problem Jul 20, 2011 @ 05:05 PM (Total replies: 2)

Thanks Victor, that fixed it.

Kevin Zetterstrom

API Support » Autoreconnect login problem Jul 19, 2011 @ 11:58 PM (Total replies: 2)

Hi,

I am having a problem with auto-connect. If I disconnect my computer from the internet, within a few seconds the app (a spin off of the basic api example, with the connect flag set to true to autoconnect) will receive the OnDisconnected(). When I connect my internet connection back up, after about 20 seconds i receive the OnLoginComplete() immediately followed by a OnLoginFailed(), with an OEC.Data.FailReason "Data Error"

What is going wrong?

If I hit the Disconnect button to disconnect, followed by the Connect button (going off the basic api example, again), everything works correctly which leads me to question why the autoconnect will not work?

Kevin Zetterstrom