API Support Forum
User Profile

Viewing User Profile for: VPfau


About

Oct 26, 2011 10:41 AM

Nov 20, 2020 02:40 PM

Nov 20, 2020 02:52 PM

http://www.openecry.com




Post Statistics
VPfau has contributed to 129 posts out of 4944 total posts (2.61%) in 3317 days (0.00 posts per day).

20 most recent posts:

API Support » New to the API, need some guidance Nov 20, 2020 @ 02:40 PM (Total replies: 4)

I don't see any issue to do automated trading thru the API. The only thing - you need to specify automated trades.
I'll ask our customer service answer the rest of questions

Thanks
Vitaliy Pfau


API Support » New to the API, need some guidance Nov 20, 2020 @ 08:36 AM (Total replies: 4)

Hello JAstrahan,

We do not support python. I would recommend to contact the library's authors

Thank you
Vitaliy Pfau


API Support » Error: -2146233079 Descr: Price server not connected Nov 03, 2020 @ 07:34 AM (Total replies: 3)

Anthony,

No, it was forcible closed by the client side. That's how server reports disconnect in your case.
Without source code it's hard to say what is wrong

Please provide a source code of example that replicates the issue.

Thank you
Vitaliy Pfau


API Support » Error: -2146233079 Descr: Price server not connected Nov 02, 2020 @ 09:39 AM (Total replies: 3)

Hello Anthony,

I see your last connect was successful at 09:22:16.797 CT
All previous attempts were forcibly closed by remote host. Do you experience the same with our example?
Vitaliy Pfau


API Support » GF API Reconnect Nov 02, 2020 @ 08:53 AM (Total replies: 1)

Hello Jay,

With GFAPI it is application's responsibility to implement reconnect behavior. See reconnecter example in our documentation: (Useful Code Snippets\Reconnecter) https://gainfutures.com/GFAPI/html/da57e5d9-0be9-4b5c-a8c8-5e39e11b5c98.htm
Vitaliy Pfau


FIX Support » ERROR 0 (BROKER) Oct 29, 2020 @ 03:43 PM (Total replies: 1)

Hello,

please provide the FIX message with rejection and where you connect to

Thank you
Vitaliy Pfau


API Support » ContractLoadRequest Returns in Reverse Order? Oct 29, 2020 @ 10:48 AM (Total replies: 3)

>Is there a way to see all of the contract months for a base contract using the symbol lookup?
yes, the SymbolLookupRequest ctor signature is

public SymbolLookupRequest(
int resultCount,
TextSearch symbol,
TextSearch description,
TextSearch baseSymbol,
ISymbolLookupExpression expression)


if you use SymbolLookupRequestBuilder you can use WithBaseSymbol function
Vitaliy Pfau


API Support » ContractLoadRequest Returns in Reverse Order? Oct 26, 2020 @ 08:12 AM (Total replies: 3)

Hello,

ContractLoadApi meant that you need all data you requested. You can order the result on a client side.

>I'm wondering if there is a way to force it to return the most recent contracts first?
No, we don't have this function.

>For example if I were to do just request an amount of 1, it would not return the most recent contract.
Please use symbol lookup for this. Contract load is for bulk loading.
Else you can specify more details in load request such way that your result fits into limits
Vitaliy Pfau


FIX Support » FIX Connection Oct 01, 2020 @ 09:03 AM (Total replies: 4)

Hello MConcas,

Your application is not eligible to this connection. Please use UUID assigned to your application or, if you do not have it, contact our customer service.

Thank you
Vitaliy Pfau


API Support » List of Options Sep 21, 2020 @ 12:59 PM (Total replies: 1)

Hello DRyaboshapka,

Please take a look new snipped available here https://bitbucket.org/GainFuturesDev/workspace/snippets/aLnd95
Notice that this is a loading request which will load all available options for a future contract. If you know symbol of your option you will need symbol lookup like this:
client.Contracts.Lookup.BySymbol("OEW1V20 P4400") and catch response in client.Contracts.Lookup.SymbolLookupReceived event
Vitaliy Pfau


API Support » CONNECTION PROBLEM Sep 21, 2020 @ 08:25 AM (Total replies: 1)

Hello MConcas,

We have maintenance periods when there is no trading time.
Accepting connections and system stability are not guaranteed at such periods
Vitaliy Pfau


API Support » CONTRACT PROBLEM Sep 18, 2020 @ 07:47 AM (Total replies: 1)

MConcas,

By default we load only contracts which required by client side ei for which you have order or position. In all other cases you need lookup contract before use it.

See the file https://bitbucket.org/GainFuturesDev/basicexample/src/master/GF.BasicExample/Processors/ContractsProcessor.cs from our basic example repository
https://bitbucket.org/GainFuturesDev/basicexample/src/master/
Vitaliy Pfau


API Support » Not Able to Build GF api 4.0.3.5 Mar 30, 2020 @ 08:23 AM (Total replies: 4)

Class TicksReceivedEventArgs is in GF.API assembly.
Documentation for this class: https://gainfutures.com/GFAPI/html/T_GF_Api_Subscriptions_Ticks_TicksReceivedEventArgs.htm

Please take a look basic and advanced examples and their packages/references.
https://bitbucket.org/GainFuturesDev/advancedexample/src/master/
https://bitbucket.org/GainFuturesDev/basicexample/src/master/
Vitaliy Pfau


API Support » Not Able to Build GF api 4.0.3.5 Mar 27, 2020 @ 08:44 AM (Total replies: 4)

Hello Kapil,

what build issue is?
Vitaliy Pfau


API Support » What is AccountId in OrderDraft Mar 27, 2020 @ 08:43 AM (Total replies: 1)

Hello Kapil,

you can find account information thru `IAccountsApi IGFClient.Accounts`
See https://gainfutures.com/GFAPI/html/T_GF_Api_Accounts_IAccountsApi.htm
Vitaliy Pfau


API Support » SendLinkedOrders Multiple Order Support Mar 25, 2020 @ 02:23 PM (Total replies: 3)

Dave,

it is the SendOSOOrders function:
IReadOnlyList SendOSOOrders(OrderDraft main, OrderDraft other, OrderDraft oco, OSOGroupingMethod groupingMethod);

you send 'main' OSO order and two OCO on it. As soon as 'main' order get filled 'other' and 'oco' increase qty. As 'oco' or 'other' get filled another leg get cancelled.
Vitaliy Pfau


API Support » SendLinkedOrders Multiple Order Support Mar 25, 2020 @ 01:55 PM (Total replies: 3)

Hello Dave,

So far you can use only IOrdersAPI.SendOSOOrders function which send OSO with OCO pair. More than that, if you send multiple orders thru 3.5 OECAPI SendLinkedOrders function, only 2 OCO will be accepted. Other orders will be ignored.
Vitaliy Pfau


API Support » GAIN API COM interface bugs Mar 04, 2020 @ 10:17 AM (Total replies: 4)

Hello Scott,

One of our developers is working on this topic right now. We will update you as soon as we get any result.
Thank you for you patience.
Vitaliy Pfau


API Support » GF API equivalent of OEC.client.RequestTicks Feb 18, 2020 @ 03:32 PM (Total replies: 1)

Hello TLau,

Please check out IGFClient.Subscriptions.Ticks.Subscribe(ContractID contractID, Duration duration)
you can specify date range in the duration parameter
Vitaliy Pfau


API Support » Request Daily Historical Data Jan 31, 2020 @ 02:11 PM (Total replies: 1)

Hello Mauro Frasson,

>Which one should I consider?
BarsReceived raised for all bars coming to your client. DayBarsReceived raised only for day bars. In 3.5 client DayBarsReceived use to be OnHistoryReceived event.

> Is my solution the best way to request daily historical data?
yes, it is.
Vitaliy Pfau