API Support Forum
User Profile

Viewing User Profile for: FGiordano538


About

May 09, 2022 01:28 PM

Jun 23, 2022 04:59 AM

Jun 23, 2022 04:59 AM



Post Statistics
FGiordano538 has contributed to 9 posts out of 5285 total posts (0.17%) in 56 days (0.00 posts per day).

20 most recent posts:

Market Data » ID function Jun 23, 2022 @ 04:59 AM (Total replies: 0)

there is a function that returns the contracts.id through the symbol.
without going through the SymbolLookupEventArgs event?

Market Data » multiple subscription Jun 17, 2022 @ 05:50 AM (Total replies: 6)

I solved, with "Client.Contracts.Lookup.BySymbol (Symbol)",
scrolling through a list and I request the data of the title individually and then I subscribe it.
Same thing to unsubscribe.
So I don't have the 50 limit of the "client.Contracts.Lookup.ByCriteria" command

Market Data » download a list of CME market options Jun 17, 2022 @ 05:17 AM (Total replies: 3)

with the command "client.Contracts.Lookup.ByCriteria", I can download symbols with a common base, maximum 50.
With "Client.Contracts.Lookup.BySymbol (Tit_)" I download as many as I want, but I need to know the exact symbol.
it seems to me that with the command "Client.Contracts.Load.Request (Request.Build)", I can download all the options of an underlying in groups of 1000. I tried but failed.
Place the code.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
TitoliRichiesti = gfClient.Contracts.Lookup.BySymbol("ESZ22")

End Sub

Sub gfClient_SymbolLookupReceived_(c As IGFClient, e As SymbolLookupEventArgs)
If e.RequestID = TitoliRichiesti Then
For Each contract As GF.Api.Contracts.IContract In e.Contracts
ScaricaOp_Sottostante(contract)
Next

End If

End Sub
Private Sub ScaricaOp_Sottostante(contract As GF.Api.Contracts.IContract)

If contract.HasOptions Then
Dim _loadContractExpression As New ContractLoadExpressionBuilder

_loadContractExpression.Push(New ParentContractIDCriterion(contract.ID))
_loadContractExpression.Build()

Dim Request As New ContractLoadRequestBuilder()
Request.WithSkipCount(0)
Request.WithResultCount(1000)

Request.WithExpression(_loadContractExpression.Build)
Request.Build()

_loadRequestID = gfClient.Contracts.Load.Request(Request.Build)
End If
End Sub

it returns me this error
"System.InvalidOperationException: 'Tree must have single root. Push more operators."

Advanced Order Management » Option spreads Jun 16, 2022 @ 11:48 AM (Total replies: 2)

is there an example in visual basic.net?

Market Data » download a list of CME market options Jun 16, 2022 @ 08:48 AM (Total replies: 3)

Hello, I need to download a list of CME market options, including all of them. Is there a command? And if so, is there an example in vb.net?
Thank you

Market Data » multiple subscription Jun 16, 2022 @ 07:56 AM (Total replies: 6)

Of course I expressed myself badly, I meant a request for info for various symbols.

Market Data » multiple subscription Jun 10, 2022 @ 04:27 AM (Total replies: 6)

Hi,
my example:

Dim Criterio_ = New SymbolLookupRequestBuilder
Criterio_.WithResultCount(CInt(Tb_NumeroTit.Text))
Criterio_.WithSymbol(TbTitolo.Text.Trim, TextSearchMode.AnyInclusion)
If gfClient.Exchanges.Get(Cb_Exchange.Text) IsNot Nothing Then
Criterio_ = Criterio_.WithExpression(New ExchangeIDCriterion(gfClient.Exchanges.Get(Cb_Exchange.Text).ID))
End If
Criterio_.Build()
TitoliRichiesti = gfClient.Contracts.Lookup.ByCriteria(Criterio_.Build)

with this example I subscribe to titles with the same base in the symbol or in the description.
Is there a way to subscribe + titles, simultaneously, with distinct symbols?
for example (OESM22 P4000, OESM22 P4100, OESM22 P4200)
Thank you.

Order Execution » orders placed on previous dates Jun 10, 2022 @ 02:35 AM (Total replies: 1)

Hello, is it possible through the API to download the orders executed in a time interval? If so, is there an example?
Thank you

Advanced Order Management » Option spreads Jun 09, 2022 @ 07:47 AM (Total replies: 2)

Is it possible via the API to trade Option Spreads?
I would like to trade Ratio Spreads on /ES. The CME allows 1x2, 1x3 and 2x3 ratios.
Grazie.