API Support Forum
User Profile

Viewing User Profile for: TLau471


About

Aug 27, 2013 11:16 AM

Apr 28, 2019 08:21 PM

Apr 28, 2019 08:21 PM



Post Statistics
TLau471 has contributed to 25 posts out of 4435 total posts (0.56%) in 2150 days (0.00 posts per day).

20 most recent posts:

API Support » How to use OEC.API.SymbolLookupCriteria Apr 28, 2019 @ 08:21 PM (Total replies: 3)

Hi,

It worked... until it stopped working again.
I set DesiredResultCount = 1000 but still, only 50 is returned and there is no K9 now, i.e. May 2019.

Please help. Thank you.
TLau


API Support » How to use OEC.API.SymbolLookupCriteria Mar 25, 2019 @ 01:09 AM (Total replies: 3)

When I send the following on 25th Mar 2019

With aBunchOfES
.SearchText = "GGC"
.Mode = OEC.Data.SymbolLookupMode.SymbolStartsWith
End With

GGCJ9 (Apr 2019) is not returned. Why is this so? Please advise.
TLau


API Support » m_Client_OnSymbolLookupReceived's Contracts returns nothing for m_Client.SymbolLookup ESM9 Mar 25, 2019 @ 01:03 AM (Total replies: 7)

Chris, I just checked, this is still not working.

m_Client.SymbolLookup("ESM9") returns "No contracts found"

Private Sub m_Client_OnSymbolLookupReceived(ByVal SymbolLookup As OEC.API.SymbolLookupCriteria, ByVal Contracts As OEC.API.ContractList) Handles m_Client.OnSymbolLookupReceived
if Contracts.First is Nothing then
msgbox ("No contracts found!")
end if
End Sub
TLau


API Support » RequestTicks returns data with .volume = 0 Mar 20, 2019 @ 03:54 AM (Total replies: 4)

Hi,

How can I get notified of such deprecation info?
TLau


API Support » m_Client_OnSymbolLookupReceived's Contracts returns nothing for m_Client.SymbolLookup ESM9 Mar 20, 2019 @ 03:53 AM (Total replies: 7)

Thanks Chris.
TLau


API Support » RequestTicks returns data with .volume = 0 Mar 18, 2019 @ 06:23 PM (Total replies: 4)

Thanks. Where can I subscribe to changes like this?
TLau


API Support » m_Client_OnSymbolLookupReceived's Contracts returns nothing for m_Client.SymbolLookup ESM9 Mar 18, 2019 @ 11:46 AM (Total replies: 7)

SIM

m_Client.SymbolLookup("ESM9")

...


Private Sub m_Client_OnSymbolLookupReceived(ByVal SymbolLookup As OEC.API.SymbolLookupCriteria, ByVal Contracts As OEC.API.ContractList) Handles m_Client.OnSymbolLookupReceived

Dim ctx As OEC.API.Contract = Nothing
ctx = m_Client.Contracts(Contracts.First.Symbol) 'Contracts.First is Nothing

End Sub
TLau


API Support » RequestTicks returns data with .volume = 0 Mar 18, 2019 @ 09:52 AM (Total replies: 4)

Hi,

The following is excerpt from LIVE software connected to SIM server
Why is it suddenly returning 0 today?
It was all ok last friday.

m_Client.RequestTicks(Contract, Start, [End])

...
...
...

Private Sub m_Client_OnTicksReceived(ByVal Subscription As OEC.API.Subscription, ByVal Ticks As OEC.API.Ticks) Handles m_Client.OnTicksReceived
DataLength = Ticks.Prices.Length

For i = 0 To DataLength - 1
e.size = Ticks.Volumes(i) ' why is Ticks.Volumes(i) always 0???
next
end sub
TLau


API Support » m_Client_OnSymbolLookupReceived's Contracts returns nothing for m_Client.SymbolLookup ESM9 Mar 17, 2019 @ 11:16 PM (Total replies: 7)

Hi,

m_Client_OnSymbolLookupReceived's Contracts use to return the contract when doing a m_Client.SymbolLookup for ESM9.
It now returns nothing. Any idea why?
TLau


API Support » does Reconnect() raise any events? Jun 01, 2016 @ 07:12 AM (Total replies: 5)

ok...... under what circumstances should we call Reconnect?
Rather, what purpose does Reconnect serve?
TLau


API Support » does Reconnect() raise any events? May 31, 2016 @ 09:52 PM (Total replies: 5)

Still not happening for me.

1. I connect using Connect(hostname, 9200, Me.Username, Me.Password, True)
2. I simulate disconnection by calling Disconnect()
3. This raises OnDisconnected event
4. I call Reconnect() inside the OnDisconnected event, but nothing happens

Did I miss any step?
TLau

Edited by TLau471 on May 31, 2016 09:53 PM

API Support » Subscribe vs SubscribeTicks vs RequestTicks May 31, 2016 @ 10:56 AM (Total replies: 3)

Hi,

Thanks. I'm clear about the difference between the 3 now. Is there a way to get TotalVol when using SubscribeTicks?
TLau


Market Data » Which datafeed is not entitled? May 31, 2016 @ 08:54 AM (Total replies: 5)

Ok thanks, but more questions:

1. Are we supposed to compare DataFeedEntitlements.Exchange with the Contract.Exchange to determine if a datafeed is entitled?

2. For exchanges that required individual datafeed entitlements, how do we figure it out?
TLau


Market Data » Which datafeed is not entitled? May 31, 2016 @ 08:35 AM (Total replies: 5)

I'm trying to handle situations when a trader requests for symbols they are not entitled to.
TLau


API Support » does Reconnect() raise any events? May 30, 2016 @ 12:09 PM (Total replies: 5)

After calling Reconnect(),

1. What are the expected events? OnLoginComplete is not raised
2. Do we need to resubscribe to symbols?

Thanks.
TLau


Market Data » Which datafeed is not entitled? May 27, 2016 @ 11:02 PM (Total replies: 5)

Right now, the API raises the OnError event with the message Data feed is not entitled

How do we tell which datafeed is not entitled?
Please kindly recommend a solution as that message is not user friendly for traders.

Thank you.
TLau


API Support » Subscribe vs SubscribeTicks vs RequestTicks May 27, 2016 @ 10:00 AM (Total replies: 3)

What's the difference between these methods?
I'm looking to get the tick stream and the total volume

Subscribe gives me Subscription.Contract.CurrentPrice.TotalVol
but SubscribeTicks gives Subscription.Contract.CurrentPrice as Null/Nothing.

Furthermore, why doesn't Subscribe return a Subscription criteria like the rest of the SubscribeXXX methods?

TLau

Edited by TLau471 on May 27, 2016 10:14 AM

API Support » http://futures.gaincapital.com/cfbb/index.cfm Oct 02, 2014 @ 10:14 PM (Total replies: 5)

Hi Zach,

No. It did not fire.

I made a check and realized that my DLLs are not the latest.
When I replaced them with the latest, I get an error that says not encrypted.

How do I setup encryption?

TLau

API Support » http://futures.gaincapital.com/cfbb/index.cfm Sep 24, 2014 @ 12:32 PM (Total replies: 5)

My apologies about the topic... please help change it to:

.Connect() and .RequestTicks not throwing exceptions or raising events at times

Thank you

Edited by TLau471 on Sep 24, 2014 at 12:34:27

API Support » http://futures.gaincapital.com/cfbb/index.cfm Sep 24, 2014 @ 12:30 PM (Total replies: 5)

Hi,

The app I'm working on has >20 users and some of them are facing frequent disconnections, something like 1 per hour from both the sim.oec.com and prod.oec.com

I could not find any details on the AutoReconnect of the OECClient.Connect, so decided to make my own reconnection.

My main question is, is it "legal" to do the following:

1. Call OECClient.connect() inside the OnDisconnected event to reconnect
2. Call .RequestTicks inside OnSymbolLookupReceived and OnTicksReceived to pull historical data
3. Call .SubscribeTicks inside OnTicksReceived to pull live data

So far, things are working, but I observed that sometimes .Connect and .RequestTicks goes silent, meaning to say, after calling them, they do not raise any events or throw any exceptions. I need a solution to this as it causes the app to go into a "hanged" state.

Thank you for any help!
Edited by TLau471 on Sep 24, 2014 at 12:45:49