API Support Forum
OEC API > API Support > OEC.API.Price.OpenInterest
Author Topic: OEC.API.Price.OpenInterest
(3 messages, Page 1 of 1)
Moderators: VPfau
Opc
Posts: 3
Joined: May 06, 2009


Posted: May 07, 2009 @ 03:06 PM             Msg. 1 of 3
I'm trying to use OEC.API.Price.OpenInterest property - but it always return 0 (zero).

Code example:

Dim strT As String, contract As OEC.API.Contract
Dim price As OEC.API.Price

OECClient = OEC.API.OECClient.CreateInstance(True)

For Each contract In OECClient.ContractGroups("Indices").Contracts
strT = contract.Symbol
price = contract.CurrentPrice
If Not IsNothing(price) Then
Debug.Print(strT & " OI=" & price.OpenInterest)
End If
Next

Is it required to do something special to get correct open interest value from OEC.API.Price object?

And one more question:
Where can I find description (conditions) of using deployment service for custom indicators?
Is it really works or just for demo purposes?

Thank you.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: May 07, 2009 @ 03:09 PM             Msg. 2 of 3
Sorry, OpenInterest is not currently supported.
VictorV
Posts: 746
Joined: May 08, 2007


Posted: May 07, 2009 @ 03:14 PM             Msg. 3 of 3
Unfortunately, we have no user guide for "Indicator Store" and deployment service. It is working in demo and production environements. Please contact Customer Service for details.