API Support Forum
User Profile

Viewing User Profile for: ASykes69


About

Aug 25, 2008 08:46 AM

Jun 08, 2023 09:32 AM

Jul 15, 2023 12:30 AM



Post Statistics
ASykes69 has contributed to 12 posts out of 5593 total posts (0.21%) in 5722 days (0.00 posts per day).

20 most recent posts:

API Support » Unable to find contract(s) Jun 08, 2023 @ 09:32 AM (Total replies: 0)

I used this example code that the API documentation provides, and the contract always returns null.

GF.Api.Contracts.IContract Contract = client.Contracts.Base.Get("ES")?.Contracts.First();
if (Contract == null)
Continue;

API Support » Possible reason for socket-error 0 May 10, 2023 @ 03:49 AM (Total replies: 1)

If running prod, sim and API on the same server (sane IP address) would that cause the zero socket layer error?
All three applications are using the same UUID as well
APIPort=9210
• prod.gainfutures.com
• sim.gainfutures.com
• api.gainfutures.com

API Support » Socket errors May 04, 2023 @ 12:10 PM (Total replies: 9)

If running prod, sim and API on the same server would that cause the zero socket layer error?
All three applications are using the same UUID as well

• prod.gainfutures.com
• sim.gainfutures.com
• api.gainfutures.com

API Support » Socket errors Mar 20, 2023 @ 09:08 PM (Total replies: 9)

I'm still having 8 to 10 socket errors" causing disconnections. daily. Did you find out what was causing your problem?

API Support » Socket errors Mar 20, 2023 @ 09:07 PM (Total replies: 9)

I'm still having 8 to 10 socket errors" causing disconnections. daily. Did you find out what was causing your problem?

API Support » Cancel of Working Orders Mar 16, 2010 @ 11:01 AM (Total replies: 2)

Yes, we had to re-register the APICOM.tlb file in our application...Thanks

API Support » Cancel of Working Orders Mar 16, 2010 @ 09:46 AM (Total replies: 2)

Until yesterday we were able to Cancel a Working order, and to send a market order to exit a position using the API.

Nothing happens when we try to Cancel the order, and when issuing a market order, we see that it is Sent, but it does not Complete.

NLlc is the User name, and the Account is: API000744.

You help on this urgent matter is greatly appreciated.

Many Thanks,

Mark

API Support » Trailing Stop Oct 30, 2008 @ 08:21 AM (Total replies: 1)

I'm having trouble creating a Trailing Stop Loss Order using the API. If I want to create a 50 cent Crude Oil (GCLZ8) Trailing Stop, what should I put in the following fields? (in this example the Market is at 67.00/bbl:

Price, Price2 (in the Order), Reference Price and Delta (in SetTSData).

Thanks for your help.

Market Data » Symbol List with Months available Aug 25, 2008 @ 10:09 AM (Total replies: 5)

Thank you.

How do we get a second or sub-account setup on the API database for test purposes....Our uer name is NLlc and API1000380 is the account we have now

Market Data » Symbol List with Months available Aug 25, 2008 @ 08:49 AM (Total replies: 5)

We're logging in to the api.openecry.com database, and trying to subscribe
to GCLV8, but the system cannot find the contract, nor the base contract.
It appears to only be able to find contracts with 4 characters in the name.

Can you please let me know whether or not we should be finding this
contract?

Many Thanks,

The code that I'm using is shown below:

Public Sub SubscribeAll(oecApi As OECAPICOM.IOECClient)
Set api = oecApi
Dim i As Integer
For i = 1 To UBound(aryCommodities())
Dim Name As String
Name = aryCommodities(i - 1).Contract
Dim Contract As OECAPICOM.IContract
Set Contract = api.Contracts.Item(Name)
If Contract Is Nothing Then
Set Contract = Glob.FindNearest(Name)
If Not (Contract Is Nothing) Then
'MsgBox Contract.symbol
ElseIf Len(Name) > 3 Then
Name = Left(Name, Len(Name) - 2)
Dim bc As OECAPICOM.IBaseContract
Set bc = api.BaseContracts.FindBySymbol(Name)
If Not (bc Is Nothing) Then
api.RequestContracts bc
End If
End If
End If

If Not (Contract Is Nothing) Then
api.Subscribe Contract
Set SubscribedContracts(i) = Contract
Else
Set SubscribedContracts(i) = Nothing
End If

Next

End Sub