API Support Forum
OEC API > FIX Support > Invalid tag number (Field=12004)
Author Topic: Invalid tag number (Field=12004)
(9 messages, Page 1 of 1)
Moderators: VPfau
IHammad
Posts: 5
Joined: Aug 27, 2024


Posted: Aug 29, 2024 @ 10:41 AM             Msg. 1 of 9
Hi. we are getting time out error on login request, for more details please check the next log

messages logs
20240829-12:44:10.386 : 8=FIX.4.4 9=605 35=A 34=1 49=IHammad 52=20240829-12:44:10.385 56=OEC_TEST 98=0 108=30 141=Y 553=IHammad 554=8644D413A67B95CE067E6CD97A54050EE0768B92E2CCB2F5351CC1671A1A9872672FCAE425C349D21CDEA65D25378CABB2BE6350312AE0ECF439DA5D24DF0AB8233646563BC596E473135B778BC3AD5FB55DC0FA4240EB70CDD4C746836349EC9A0DFDB38C2623EC7ED59E2EF1C54CB880B9F2E4FFABE9FDACAF9106812D0E62C67FA21976B33A4E41748416C2652E7B5E5CAE6FF66B801234A6CDE2CB4303259DD367C26F046FF90C23BA5F2AF2D1C5A05F7BA5478BB488C1055B1C68A86C23A7FD7E75F3444649320A0C53CC41C295499B26497231F393F48169F4B3F5FB6A4A83DE4ED866AF29D0DC419B27E4A4C218DE000D482BB70F4EF3F4C4B8AE6B04 10=035

Event log
20240829-12:44:10.370 : Connecting to 127.0.0.1 on port 9989
20240829-12:44:10.383 : Connection succeeded
20240829-12:44:10.385 : Session reset: ResetOnLogon
20240829-12:44:10.386 : Session reset: ResetSeqNumFlag
20240829-12:44:10.386 : Initiated logon request
20240829-12:44:20.504 : Session FIX.4.4:IHammad->OEC_TEST disconnecting: Timed out waiting for logon response

stunnel
[stonexFeed]
client = yes
accept = 127.0.0.1:9989
connect = api.gainfutures.com:9301

Ammar Saleh.
Ark Team.
CMicciche902
Posts: 367
Joined:


Posted: Aug 29, 2024 @ 10:51 AM             Msg. 2 of 9
I don't see an issue on my end. You were able to log in and then sent heartbeats. Then, you dropped from our server.
Chris M
IHammad
Posts: 5
Joined: Aug 27, 2024


Posted: Aug 30, 2024 @ 03:49 AM             Msg. 3 of 9
Where you see I'm able to connect? , yes we finished integration of the FIX and we connected before , not we are trying to connect via the Fast.

So same ip port can connect into fix and fast or we have to use different ip port or different credentials? Plz guide.

Ammar Saleh.
CMicciche902
Posts: 367
Joined:


Posted: Aug 30, 2024 @ 07:59 AM             Msg. 4 of 9
You connected from IP address: 86.108.xxx.xxx, Jordan Data Communications.

>So same ip port can connect into fix and fast or we have to use different ip port or different credentials? Plz guide.
No, per documentation FIX server port is 9400, see https://futures-media.stonex.com/gfapi/index.html?topic=html/440e4b1d-2009-4c8a-a587-ecfc5aaebd5d.htm

For FAST port is 9301. Please review the following for FAST details: https://futures-media.stonex.com/gfapi/index.html?topic=html/f2a3d6b5-eb24-4314-8b50-fa1a88b7c50d.htm
Chris M

Edited by CMicciche902 on Aug 30, 2024 07:59 AM
IHammad
Posts: 5
Joined: Aug 27, 2024


Posted: Aug 30, 2024 @ 08:13 AM             Msg. 5 of 9
if you checked the first post you will that we are trying to connect to stage env api.gainfutures.com:9301.

Event log
20240830-13:12:22.610 : Created session
20240830-13:12:24.264 : Connecting to 192.111.85.171 on port 9301
20240830-13:12:24.430 : Connection succeeded
20240830-13:12:24.440 : Session reset: ResetOnLogon
20240830-13:12:24.447 : Session reset: ResetSeqNumFlag
20240830-13:12:24.457 : Initiated logon request
20240830-13:12:34.517 : Session FIX.4.4:IHammad->OEC_TEST disconnecting: Timed out waiting for logon response


Fast log
20240830-13:12:24.456 : 8=FIX.4.4 9=605 35=A 34=1 49=IHammad 52=20240830-13:12:24.444 56=OEC_TEST 98=0 108=30 141=Y 553=IHammad 554=8644D413A67B95CE067E6CD97A54050EE0768B92E2CCB2F5351CC1671A1A9872672FCAE425C349D21CDEA65D25378CABB2BE6350312AE0ECF439DA5D24DF0AB8233646563BC596E473135B778BC3AD5FB55DC0FA4240EB70CDD4C746836349EC9A0DFDB38C2623EC7ED59E2EF1C54CB880B9F2E4FFABE9FDACAF9106812D0E62C67FA21976B33A4E41748416C2652E7B5E5CAE6FF66B801234A6CDE2CB4303259DD367C26F046FF90C23BA5F2AF2D1C5A05F7BA5478BB488C1055B1C68A86C23A7FD7E75F3444649320A0C53CC41C295499B26497231F393F48169F4B3F5FB6A4A83DE4ED866AF29D0DC419B27E4A4C218DE000D482BB70F4EF3F4C4B8AE6B04 10=024

we are getting Timed out waiting for logon response
CMicciche902
Posts: 367
Joined:


Posted: Aug 30, 2024 @ 09:16 AM             Msg. 6 of 9
Did you download the FAST Template? Review template name="Logon" id="63"

FAST Session Control Protocol 1.1
Session should be started with HELLO handshake according SCP 1.1. SenderName and VendorId fields are used just for information.

Dynamic template exchange over connection is not supported.

The latest version of a file with FAST templates can be uploaded from here: http://api.gainfutures.com/Sections/Misc/DownloadFile.aspx?ClientUpdate=0_5008_1
Chris M

Edited by CMicciche902 on Aug 30, 2024 09:18 AM
IHammad
Posts: 5
Joined: Aug 27, 2024


Posted: Sep 03, 2024 @ 07:46 AM             Msg. 7 of 9
Hi,

To access the GAIN Futures data feed, we must use FAST Session Control Protocol 1.1 ??

We can't proceed to integrate the data feed by using the FIX protocol ?
IHammad
Posts: 5
Joined: Aug 27, 2024


Posted: Sep 17, 2024 @ 09:24 AM             Msg. 8 of 9
hi

on liquidate position from Gain trader we receive the next fix message, but it seems there is a missing field with tag number 1028, where I can find this tag description ? nothing found on the next URL

https://futures-media.stonex.com/gfapi/index.html?_gl=1*1z02oz7*_gcl_au*MTAyMDIxMTc3MS4xNzIyODY3MDY3&_ga=2.77939604.1080100780.1726141740-1644543066.1722867067#

35=8 34=11 49=OEC_TEST 52=20240917-13:54:35 56=IHammad 1=API100035 6=5653.25 11=OECFIX:213461949 14=2 17=OECFIX:213461949:336 37=213461949 38=2 39=B 40=1 54=2 55=ES 59=0 60=20240917-13:54:35.029 150=B 151=0 167=FUT 200=202409 325=Y 377=N 461=FXXXXS 1028=Y 10=201

35=3 34=8 49=IHammad 52=20240917-13:54:32.805 56=OEC_TEST 45=11 58=Invalid tag number 371=1028 372=8 373=0 10=094
CMicciche902
Posts: 367
Joined:


Posted: Sep 17, 2024 @ 10:43 AM             Msg. 9 of 9
Field 1028 is an exchange-specific field. We will plan to add to our FIX documentation in the future. It is used to report whether the order was automated and did not require human intervention.
Send Y=manual or N=automated in your NewOrderSingle(D) message. We will report back to you in Execution Reports. You will need to handle this field.

Supplemental information

ATS Indicator
CME Group considers any order generated without direct human interaction automated. Whether the order is submitted by manual or automated means is indicated by the value in tag 1028-ManualOrderIndicator (Y=manual, N=automated).
Chris M