API Support Forum
User Profile

Viewing User Profile for: XGong81


About

Apr 24, 2013 10:25 AM

Sep 13, 2020 02:46 PM

Sep 13, 2020 02:46 PM



Post Statistics
XGong81 has contributed to 6 posts out of 5593 total posts (0.11%) in 4018 days (0.00 posts per day).

20 most recent posts:

API Support » How do I get the account number in GFAPI? Sep 13, 2020 @ 02:46 PM (Total replies: 1)

In the old OEC api the Account class has a Name field which is the account number, like "E12345". In the new GFAPI the IAccount only has an AccountID field which is the number portion of the account number, like "12345". So is there a way to get the account number? Thanks in advance.

xg
Xingyu Gong


API Support » No errors reported on risk violation Jul 20, 2020 @ 04:06 PM (Total replies: 5)

Hi Evgeny,

Initially I was trying to catch the error from GFClient.Logging.ErrorOccured but it does not gets raised (Test and Production server) and then I tried Messaging.

Xingyu
Xingyu Gong


API Support » No errors reported on risk violation Jul 17, 2020 @ 04:40 PM (Total replies: 5)

In the OEC api, I will get an error message from the OECClient.OnError handler. I thought GFApi will be similar.
Xingyu Gong


API Support » No errors reported on risk violation Jul 15, 2020 @ 03:28 AM (Total replies: 5)

Hi, when I am placing an order which exceed buying power I am not getting any risk violation errors or notifications. I am using the new GFAPI and here is some code snippet:

gfClient.Logging.ErrorOccurred += this.ErrorOccured;
gfClient.Messaging.Notifications.NotificationMessageReceived += NotificationMessageReceived;

private void ErrorOccured(object sender, GF.Api.Utils.ErrorEventArgs e)
{
//Not getting called
string sErrorMessage = e.Exception.Message;
}
private void NotificationMessageReceived(IGFClient client, GF.Api.Messaging.Notifications.NotificationMessageEventArgs e)
{
//Not getting called
string sMessage = e.NotificationMessage.Message;
}

The API version is as follows:
GF.Api.dll 4.0.3.21
GF.Api.Impl.dll 4.0.3.33
GF.Api.Values.dll 4.0.3.10
GF.Common.dll 4.0.3.3

Thanks in advance,

xg
Xingyu Gong


API Support » Unable to resolve symbol Feb 28, 2019 @ 11:15 AM (Total replies: 2)

I guess I should use the word lookup instead of resolve. When I try to lookup a symbol, the contract list returns 0 contracts for the developer server.

xg
Xingyu Gong


API Support » Unable to resolve symbol Feb 28, 2019 @ 10:24 AM (Total replies: 2)

Hi, I am unable to resolve symbol to a contract with the developer(test) account while the production account still works. Does anyone know what is going on? Thanks.

xg
Xingyu Gong