{{Quickfixn}} [EXTERNAL] Re: username and password in logon message

Kunal CHANGELA kunal.changela at us.bnpparibas.com
Wed Nov 8 08:06:47 PST 2017


Not sure if this is the best practice but you could try and use GetString and pass the TagId (35)...

Thanks,

Kunal Changela
Credit Risk and PnL Development
Group Email: DL CRD IT NY (x841 4876, Intl: x721 4876) 

787 7th Avenue, New York, NY 10019
Tel: +1 212 841 2640
Mobile: +1 917 216 8852
kunal.changela at us.bnpparibas.com 



  Do not print this document unless it is necessary, consider the environment

-----Original Message-----
From: Quickfixn [mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of ?????
Sent: Wednesday, November 08, 2017 10:41 AM
To: Mailing list for QuickFIX/n
Subject: [EXTERNAL] Re: {{Quickfixn}} username and password in logon message

Hello!
Yes, thank you very much, I found it by myself already.
But what the best practice to check for the message type?
I did not find anything better than just checking that message contains characters "35 = A". Because in C #, the method MsgType of the Message class is hidden for some reason.

> 8 нояб. 2017 г., в 20:03, Hermes Radison <Hermes.Radison at oati.net> написал(а):
> 
> 
> Hello,
> 
> In your application class, inside ToAdmin, check for the message type logon then set the UserName and Password fields.
> You can use set field on the message, or cast it to a logon message then set the field directly.
> 
> Thank you,
> 
> -----Original Message-----
> From: Quickfixn [mailto:quickfixn-bounces at lists.quickfixn.com] On 
> Behalf Of quickfixn-request at lists.quickfixn.com
> Sent: Wednesday, November 08, 2017 12:46 AM
> To: quickfixn at lists.quickfixn.com
> Subject: Quickfixn Digest, Vol 73, Issue 6
> 
> {External email message: This email is from an external source. Please 
> exercise caution prior to opening attachments, clicking on links, or 
> providing any sensitive information.}
> 
> Send Quickfixn mailing list submissions to
> 	quickfixn at lists.quickfixn.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
> or, via email, send a message with subject or body 'help' to
> 	quickfixn-request at lists.quickfixn.com
> 
> You can reach the person managing the list at
> 	quickfixn-owner at lists.quickfixn.com
> 
> When replying, please edit your Subject line so it is more specific than "Re: Contents of Quickfixn digest..."
> 
> 
> Today's Topics:
> 
>   1.  Fwd: username and password in logon message (????? ???????)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 08 Nov 2017 09:45:32 +0300
> From: ????? ??????? <aidynchik_84 at mail.ru>
> To: quickfixn at lists.quickfixn.com
> Subject: {{Quickfixn}} Fwd: username and password in logon message
> Message-ID: <1510123532.985590326 at f54.i.mail.ru>
> Content-Type: text/plain; charset="utf-8"
> 
> 
> Hello!
> Please help me! =)
> I am trying to work with Kase.kz by FIX-protocol. My app is written on C#.
> Kase.kz requires these fields
> 34 MsgSeqNum SeqNum
> 49 SenderCompID String
> 52 SendingTime UTCTimestamp
> 56 TargetCompID String
> 108 HeartBtInt int
> 98 EncryptMethod int
> 141 ResetSeqNumFlag=Y boolean
> 553 Username String
> 554 Password String
> 1137 DefaultApplVerID
> I've downloaded an example TradeClient, configured it, but in the logon message there are no these fields - Username and Password.
> How to include them into the message? I attached my result.
> Here is my "tradeclient.cfg"
> 
> [DEFAULT]
> ConnectionType=initiator
> ReconnectInterval=1000
> FileStorePath=store
> FileLogPath=log
> StartTime=00:00:00
> EndTime=00:00:00
> UseDataDictionary=Y
> DataDictionary=../../../../spec/fix/FIX44.xml
> AppDataDictionary=../../../../spec/fix/FIX50.xml
> DefaultApplVerID=FIX.5.0
> TargetCompID=KASE
> SocketConnectHost=212.19.144.39
> SocketConnectPort=9880
> SocketUseSSL=N
> LogoutTimeout=5
> ResetOnLogon=Y
> ResetOnDisconnect=Y
> Password=******
> 
> [SESSION]
> BeginString=FIXT.1.1
> SenderCompID=001d01
> HeartBtInt=30
> 
> 
> ----------------------------------------------------------------------
> 
> 
> -------------- next part -------------- An HTML attachment was 
> scrubbed...
> URL: 
> <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachme
> nts/20171108/b2873f08/attachment.html>
> -------------- next part -------------- A non-text attachment was 
> scrubbed...
> Name: Screenshot_1.png
> Type: image/png
> Size: 20285 bytes
> Desc: not available
> URL: 
> <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachme
> nts/20171108/b2873f08/attachment.png>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
> 
> 
> ------------------------------
> 
> End of Quickfixn Digest, Vol 73, Issue 6
> ****************************************
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com

_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com

This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. Please note that certain functions and services for BNP Paribas may be performed by BNP Paribas RCC, Inc.


Unless otherwise provided above, this message was sent by BNP Paribas, or one of its affiliates in Canada, having an office at 1981 McGill College Avenue, Montreal, QC, H3A 2W8, Canada. To the extent this message is being sent from or to Canada, you may unsubscribe from receiving commercial electronic messages by using this link: www.bnpparibas.ca/en/unsubscribe/ <http://www.bnpparibas.ca/en/unsubscribe/>. See www.bnpparibas.ca <http://www.bnpparibas.ca> for more information on BNP Paribas, in Canada.


More information about the Quickfixn mailing list