API Support Forum
User Profile

Viewing User Profile for: RAhlander


About

Jul 13, 2023 11:20 AM

Jun 17, 2024 11:31 AM

Jun 17, 2024 11:31 AM



Post Statistics
RAhlander has contributed to 13 posts out of 5677 total posts (0.23%) in 466 days (0.00 posts per day).

20 most recent posts:

API Support » Multiple API Connections Jun 17, 2024 @ 11:31 AM (Total replies: 2)

This is only for our use as a CTA. Meaning, we are trading multiple accounts simultaneously, but not providing this service to others outside our firm.

Thanks

API Support » Multiple API Connections Jun 17, 2024 @ 10:52 AM (Total replies: 2)

Is it possible to have simultaneous connections via the API? I'm working on a back-end quant. To have achieve 100% up-time we would need a minimum an AWS style blue/green deployment. This would then require two connections simultaneously. When I try to do this, I'm getting an error "UserAlreadyConnected".

Currently, it appears I can have a GAIN Trader and an API connection, but not two API connections.

Thanks

API Support » Transaction History via API Jun 13, 2024 @ 08:10 AM (Total replies: 2)

Is there a supported programatic way to get the trade history via the portal?

API Support » Understanding Opening or Closing during fill notification May 24, 2024 @ 06:38 PM (Total replies: 1)

Hello,

Is there a way to tell if a Fill is off-setting a current position or opening a net new position?

I'm subscribing to the event:

E.g.
IGFClient.Orders.OrderFilled += orderFilled;

Is there a way to tell with the information in OrderFilledEventArg if the fill was an offset or net new?

Thanks

API Support » Order Breaks Limits - Details May 16, 2024 @ 10:26 AM (Total replies: 6)

Update.

I am getting system messages from the Logging.NewMessageLogged when I get a "Order Breaks Limits" error. I have yet to the Logging.ErrorOccurred event to fire.

API Support » No compound for (281770848, electronic):OEW COS May 16, 2024 @ 10:24 AM (Total replies: 1)

Today for some reason, all my ES futures options setups are failing. The message I'm getting back from the API is No compound for (281770848, electronic):OEW COS. This happens with every ES option i've tried. I'm also not getting any streaming quotes. This was working yesterday.

API Support » Order Breaks Limits - Details May 14, 2024 @ 01:49 PM (Total replies: 6)

Update.

When I add:

_gfClient.Logging.SetCategories(GF.Api.Logging.LogCategory.All);

I start getting events from NewMessageLogged, but never ErrorOccurred even though I got rejected order with "Order breaks limits." I can't even get an order placed using Gain Trader, same error. I have zero positions.

API Support » Order Breaks Limits - Details May 14, 2024 @ 01:23 PM (Total replies: 6)

Thanks for the reply.

I'm already doing this as instructed in the documentation, however, I am not getting any Logging events. I'm getting Connection.Aggregate events, Client.Orders Events, etc. However, these Logging events are never fired. Are these error details not stored anywhere on the order object? Can you think of a reason my Logging events are not fired?

Here is my setup:

private readonly ILogger _logger;
private readonly GF.Api.IGFClient _gfClient = GF.Api.Impl.GFApi.CreateClient();

private readonly GFClientRunner _runner;

public GainSystemService(ILogger logger)
{
_logger = logger;
_logger.LogDebug("Creating GainSystem Object");
_runner = new GFClientRunner(_gfClient);
_gfClient.Connection.Aggregate.LoginCompleted += (client, e) => _logger.LogInformation("Connection complete");
_gfClient.Connection.Aggregate.LoginFailed += (client, e) => _logger.LogInformation($"Connection failed: {e.FailReason}");
_gfClient.Connection.Aggregate.Disconnected += (client, e) => _logger.LogInformation($"Disconnected: {e.Message}");
_gfClient.Logging.ErrorOccurred += (client, e) => _logger.LogInformation($"Error Occurred: {e.Exception.Message}");
_gfClient.Logging.NewMessageLogged += (client, e) => _logger.LogInformation($"Message Logged: {e.Message}");
}

Can you see any issues with this setup? Again, I'm getting logs from Connection.Aggregate events but not Logging events.

API Support » Order Breaks Limits - Details May 14, 2024 @ 12:49 PM (Total replies: 6)

Hello,

Using the C# API. When I submit an order, I get an "Order Breaks Limits" comment. How can I get the actual reason so I understand how to fix the order?

Thanks

API Support » Transaction History via API Apr 11, 2024 @ 01:24 PM (Total replies: 2)

I can't seem to find any support for getting transaction history (executed trades / fills) past the current session via the API. Is this supported or is it expected that this is maintained outside the system?