-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameter "SenderSubID" missing during login #69
Comments
please see jspf-md-demo project you need to install a custom msg factory
you will need to add new property here which constructs a header object based on json properties
|
it is a bug in sense the base class should send this field but its missing and this is only way to override at the moment - i will patch at some point soon such that the default implementtion will take care of it |
Ok, but ILogon don't include SenderSubID property.
|
It doesn't seem to work, here is the complete code. jspurefix_msg-fact.ts
jspurefix.ts
jspurefix-test-initiator.json
I think i will be wait the patch. |
the field does not go in the logon message - it should be in the header public header(msgType: string, seqNum: number, time: Date, overrideData?: Partial<IStandardHeader>): ILooseObject {
const description = this.description
const bodyLength: number = Math.max(4, description.BodyLengthChars ?? 7)
const placeHolder = Math.pow(10, bodyLength - 1) + 1
const o: IStandardHeader = {
BeginString: description.BeginString,
BodyLength: placeHolder,
MsgType: msgType,
SenderCompID: description.SenderCompId,
MsgSeqNum: seqNum,
SendingTime: time,
TargetCompID: description.TargetCompID,
TargetSubID: description.TargetSubID,
...overrideData
}
return this.mutate(o, 'StandardHeader')
} |
Thanks, it works, the FIX message is correct.
No response from the server, but that must be another issue. |
I am trying to login to cTrader broker and "SenderSubID" parametter is needed.
I'm using a ctrader custom dictionary and adding this parameter on the json file, but it's not being sent.
And no response from the server.
json file :
Application code :
Logon fix message :
8=FIX4.4|9=0000105|35=A|49=demo.aaa.123456|56=cServer|34=1|52=20230827-16:38:22.081|98=0|108=30|141=Y|553=123456|554=azerty|10=176|
No SenderSubID parameter, identifier is 50
How add it in login message ?
The text was updated successfully, but these errors were encountered: