API Support Forum
User Profile

Viewing User Profile for: CRamasamy4419


About

Jun 01, 2020 07:40 AM

Jun 12, 2020 11:31 AM

Jun 12, 2020 11:44 AM



Post Statistics
CRamasamy4419 has contributed to 19 posts out of 5677 total posts (0.33%) in 1633 days (0.00 posts per day).

20 most recent posts:

API Support » Reset account Jun 12, 2020 @ 11:31 AM (Total replies: 1)

Hi there,

I'm almost done with my scripts. Can you reset the entire account with $500,000 balance? Once I have the margins etc. reset, I will be able to run one final test and submit for conformance.

Thanks.

API Support » Can't seem to reset account balance Jun 11, 2020 @ 09:26 AM (Total replies: 2)

Thanks.

API Support » Can't seem to reset account balance Jun 11, 2020 @ 07:27 AM (Total replies: 2)

I'm trying to reset the account balance, but I'm showing the following error: "Error during SIM call: Error: Account not found!". Can someone help? Thanks.

API Support » A few questions Jun 08, 2020 @ 11:32 AM (Total replies: 5)

I'm not trying to use it in the order messages, I'm trying to use it to pull a list of securities.

I've reviewed those documentations, but they don't really tell much - am I supposed to generate them, or is client supposed to send in response to something before i send the request over?

API Support » A few questions Jun 08, 2020 @ 09:54 AM (Total replies: 5)

Thanks, Chris.
What about the securityReqID?

API Support » A few questions Jun 07, 2020 @ 11:50 PM (Total replies: 5)

I'm still on the test environment and using 9300 for my FIX protocols. I have a few questions:
1. My test market order, future limit buy and future limit sell order are all getting rejected. The messages are getting sent properly. What I'm receiving is `OrderId: 1591591303 Status: Rejected Side: Sell` or `OrderId: 1591591303 Status: Rejected Side: Buy`. Is this because I'm on test environment? Or because I'm on 9300? Or both? The criteria I'm sending is ['symbol', 'maturity', 'quantity'] for market orders, ['symbol', 'maturity', 'quantity', 'price'] for limit buy/sell orders. The reason is showing "order breaks limits"
2. What are these ID fields and where can i get them from: `SecurityReqID`, `MDReqID`?

Thanks.
Edited by CRamasamy4419 on Jun 07, 2020 11:54 PM

Edit: It think I got the answer to my first question - the test environment will reject order back if that's outside of trading hours. So that's a good thing I learned and I'll be able to use it as an edge case.
Edited by CRamasamy4419 on Jun 08, 2020 07:59 AM

API Support » What is OEC Account Name? Jun 05, 2020 @ 07:21 AM (Total replies: 9)

That's good to know. Yes, I'm using the QuickFIX framework. I should be able to figure the SSL thing out.

One more thing - for MarketDataRequest, where can I find the MDReqID? To check the price for a particular symbol, is this the right template to use, or SecurityListRequest?

API Support » Simple market data lookup, buy and sell script Jun 04, 2020 @ 12:06 PM (Total replies: 0)

I'm creating a very simple script that will:
- Look up all the market data for given symbols (a list or dictionary kind of data structure will be populated with instrument name and price)
- Place a market order
- Place a stop order
- Place a limit order
I'm looking into the documentation, but want to confirm which class/functions I should be using for these. For market inquiry, I'm looking into GF.Api.Contracts.Lookup, for the orders, I'm looking into GF.Api.Orders.IOrder.

Thanks in Advance @CRamasamy4419 for all the support. I see very few documentations and/or examples that use FIX, quickfix, SSL and Python combination usage for the API.

API Support » Simple market data lookup, buy and sell script Jun 04, 2020 @ 12:06 PM (Total replies: 0)

I'm creating a very simple script that will:
- Look up all the market data for given symbols (a list or dictionary kind of data structure will be populated with instrument name and price)
- Place a market order
- Place a stop order
- Place a limit order
I'm looking into the documentation, but want to confirm which class/functions I should be using for these. For market inquiry, I'm looking into GF.Api.Contracts.Lookup, for the orders, I'm looking into GF.Api.Orders.IOrder.

Thanks in Advance @CRamasamy4419 for all the support. I see very few documentations and/or examples that use FIX, quickfix, SSL and Python combination usage for the API.

API Support » What is OEC Account Name? Jun 04, 2020 @ 11:36 AM (Total replies: 9)

No, I'm not. What is the recommended one for Gain Futures FIX api?

API Support » What is OEC Account Name? Jun 04, 2020 @ 09:22 AM (Total replies: 9)

I also see the following event message:
20200604-14:14:31.000000000 : Connecting to api.gainfutures.com on port 9400 (Source :0)
20200604-14:14:31.000000000 : Initiated logon request
20200604-14:14:31.000000000 : Socket Error: Connection reset by peer.
20200604-14:14:31.000000000 : Disconnecting


Here's my message log:
20200604-14:14:31.000000000 : 8=FIX.4.49=13835=A34=149=CRamasamy441952=20200604-14:14:31.00056=OEC_TEST554=12003=98=0108=30141=Y10=114


API Support » What is OEC Account Name? Jun 03, 2020 @ 07:46 PM (Total replies: 9)

Thanks, I got the account number and I used it. However, it seems to still not work. My script is going through 9300 correctly, but 9400 is not seem to be working. I'm using FIX protoocl. Below is my configuration settings:

[DEFAULT]
ConnectionType=initiator
LogonTimeout=10
ReconnectInterval=5
FileLogPath=./Logs/
FileStorePath=./Sessions
StartTime=00:00:00
EndTime=00:00:00
UseDataDictionary=N
DataDictionary=fix/FIX44.xml
ValidateFieldsOutOfOrder=N
ValidateUserDefinedFields=N
CheckLatency=N
PossResend=Y
ResetOnLogout=Y
ResetOnLogon=Y
ResetOnDisconnect=Y
ResetOnError=Y
MaxLatency=5
Account=[account number]
Username=[UUID]
SenderCompID=CRamasamy4419
Password=[account password]

[SESSION]
BeginString=FIX.4.4
TargetCompID=OEC_TEST
HeartBtInt=30
EncryptMethod=0
SocketConnectHost=api.gainfutures.com
SocketConnectPort=9400


And here's the log message I'm receiving:
06/03/2020 06:32:11 PM Waiting to logon ...
06/03/2020 06:32:13 PM Waiting to logon ...
06/03/2020 06:32:13 PM Sending Admin message to server. Session: FIX.4.4:CRamasamy4419->OEC_TEST. Message: 8=FIX.4.49=13835=A34=149=CRamasamy441952=20200604-00:32:13.76656=OEC_TEST554=[apipassword]12003=[UUID]98=0108=30141=Y10=128
06/03/2020 06:32:13 PM onLogout received from server. Session: FIX.4.4:CRamasamy4419->OEC_TEST

Edited by CRamasamy4419 on Jun 03, 2020 09:21 PM
Edited by CRamasamy4419 on Jun 03, 2020 11:54 PM
Edited by CRamasamy4419 on Jun 04, 2020 08:28 AM

API Support » What is OEC Account Name? Jun 03, 2020 @ 02:11 PM (Total replies: 9)

After I log into my account, and go to real time simulation, I see account number when I try to reset account balance. Is that what Account= is?

API Support » What is OEC Account Name? Jun 03, 2020 @ 01:45 PM (Total replies: 9)

I'm using FIX protocol to create my script. Here's part of my config file:
Account=CRamasamy4419
Username=[UUID]
SenderCompID=CRamasamy4419
Password=[user password]

For Account, I'm not sure what to use. Using just the username is not working. This config works okay for 9300, given that it doesn't take in any login info. But it's not working with 9400. Can anyone help?

API Support » Can I use COM Jun 02, 2020 @ 09:44 AM (Total replies: 1)

I'm hoping to use COM with a Python script - is it supported? Is there any documentation for that? Thanks.

API Support » Using Python for API app development Jun 01, 2020 @ 02:25 PM (Total replies: 4)

This is awesome! Thanks.

API Support » Using Python for API app development Jun 01, 2020 @ 01:45 PM (Total replies: 4)

Yeah. What I meant was that if I used the API without the library provided by Alexy, will I be able to develop on a LInux platform?

API Support » Using Python for API app development Jun 01, 2020 @ 01:28 PM (Total replies: 4)

Is anyone using the API with Python for script development? I wanted to make sure that I can do that using Python.

I've seen the awesome library Alexy made that is available here: https://github.com/th3sys/transfixed . But I'm not sure if it's still usable since the last update there is 3 years ago, and not sure if it supports the newer version(s) of the API.

I'm also guessing if I can use Python, I'll still need the .NET framework as it's an API requirement?

FIX Support » Python FIX API Jun 01, 2020 @ 01:12 PM (Total replies: 8)

Hi Alexy,

This is fantastic and exactly what I need. Is the repo up to date and works properly? I see the last update was made 3 years ago on github - so want to make sure before using.

Also, can I develop using a Linux system? Or does it have to be a windows system for .NET support etc.?

Thanks again!