Author |
Topic: Request Tick Function (4 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
AAlario486 Posts: 11 Joined: Jan 23, 2013 |
Please, Can You give us an example of C# or C++ code using the OEC.API function 'RequestTics.' ? We would use this function to retrieve tick by tick data of a single Market from the beginning of the day until the time of the request.
Thank you Alessandro Alario |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Hello, you can find out sample code in Advanced API Example http://www.openecry.com/trading/api/documentation.cfm?ClientUpdate=0_5001_1: Tick View tab page shows how to subscribe and handle tick subscriptions
Victor Vins Lead Software Developer |
||||
AAlario486 Posts: 11 Joined: Jan 23, 2013 |
Please, we can't find in advanced example the code to obtain historical ticks from beginning of the day to now. Can you help us?
Alessandro Alario |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
TickViewControl.cs has a line TickSubscription = OECClient.Global.SubscribeTicks(cbSymbol.SelectedContract, DateTime.UtcNow.AddMinutes(-10));
you need to modify to something like OECClient.Global.SubscribeTicks(cbSymbol.SelectedContract, DateTime.Today.ToUniversalTime()); Victor Vins Lead Software Developer |
||||