API Support Forum
User Profile

Viewing User Profile for: VLuc


About

Jul 17, 2020 01:42 PM

Nov 25, 2020 07:20 AM

Nov 25, 2020 10:34 AM



Post Statistics
VLuc has contributed to 5 posts out of 5593 total posts (0.09%) in 1371 days (0.00 posts per day).

20 most recent posts:

API Support » OrderType Nov 25, 2020 @ 07:20 AM (Total replies: 1)

Hello,

I need to pass multiple orders at the same time:
A sell/buy Stop
A StopLoss
A TakeProfit

I don't understand which ordertype I need to use for each of those orders, and if I can pass them at the same time or if I need to create three different order ?
https://gainfutures.com/GFAPI/html/T_GF_Api_Values_Orders_OrderType.htm

Thank you

Market Data » LastDateTime is old Oct 14, 2020 @ 08:22 AM (Total replies: 3)

If the ToUniversalTime call change the time, that mean it isn't in UTC, you might have a wrong initialization of your DateTime object here.

Market Data » LastDateTime is old Oct 13, 2020 @ 05:49 AM (Total replies: 3)

I'm subscribing to some priceTick and expect real time value:

client.Subscriptions.Price.Subscribe(ContractID);

And when I check the LastDateTime value in the GFClient_OnPriceTick, it is 2 hours old at minimum.
Debug.WriteLine(e.Price.LastDateTime.ToUniversalTime());

Example: we have 13/10/2020 08:22:16 when we expect 13/10/2020 10:22:16 in UTC, with local time being 13/10/2020 12:22:16 (GMT+2).

API Support » Keeping an user connected with an API Oct 13, 2020 @ 05:41 AM (Total replies: 2)

We are doing a web application, so we expect our users to login on our website to your API, and to be able to execute orders. So we need multiple users connected at the same time.

API Support » Keeping an user connected with an API Sep 29, 2020 @ 10:18 AM (Total replies: 2)

Hello,

We are wondering how to keep the user client alive with an API, and what is the best way to do it ?
With a classical authentication, I would get a token and link it to an user in the DB, while being able to use it to execute command on behalf of the user. Can I do anything similar with this API, and if not what would be the closest ?

Thank you,
Magellan