Where do I put other login/session parameters?

7 messages Options
Embed this post
Permalink
Neal Hill

Where do I put other login/session parameters?

Reply Threaded More More options
Print post
Permalink
Hi,

I'm trying to connect to a provider and they require additional  
connection info.  Where do I put it?  In the OMS.XML file, it mentions  
SENDERCOMPID, TARGETCOMPID, etc. and the comment line suggests an  
actual sequence these must be specified.

But my provider additionally requires:
SenderSubId: foobar
Account: sim-foobar
Password: thepassword
HeartBeat Interval: 60s

Where are THESE specified? In which files and under which tags?

Thanks,

Neal Hill
SRH Technology
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
toli

Re: Where do I put other login/session parameters?

Reply Threaded More More options
Print post
Permalink
Hi Neal,

Apologies - we are in the process of updating the documentation to
reflect the recent 0.5.0 release.
Let me assume that you are running 0.5.0

Here are the files you need to change:

In C:\program files\marketcetera\ors\conf you need to open
ors_user.properties - this is where you specify the FIX destination
properties. This file overrides the defaults that are specified in
ors_default.properties

quickfix.senderCompId=<your sender-comp id>
quickfix.targetCompId=<target comp id>
quickfix.destination=<fix host destination>
quickfix.port=<port>

The hearbeat interval is specified in the conf/quickfixj.xml file -
look for something that looks like this and modify 30 to 60 (line 30)
<entry key="HeartBtInt" value="30"/>

For Account, if you want it to be automatically inserted into every
outgoing message, you'll need to use the message modifier framework.
see http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/OMSInstallation#DefaultFIXFieldsOptional
for more details. If you want it in all messages, then it's as simple
as having this:

<bean id="defaultMessageModifier"
class="org.marketcetera.quickfix.DefaultMessageModifier">
<property name="msgFields">
        <map>
                <entry key="1" value="<your account name>"/>
        </map>
</property>
</bean>

If you need that in Logon only message, for example, then you specify
message type (Logon is A) in the key:
                <entry key="1(A)" value="<your account name>"/>

Similar with password. I'm assuming that you need both Account and
Password (field 554) in Logon, then you'd have this:
<bean id="defaultMessageModifier"
class="org.marketcetera.quickfix.DefaultMessageModifier">
<property name="msgFields">
        <map>
                <entry key="1(A)" value="<your account name>"/>
                <entry key="554(A)" value="<your password>"/>
        </map>
</property>
</bean>

Hope this helps. Let me know if you have any other questions.


On Wed, Jun 25, 2008 at 1:17 PM, Neal Hill <[hidden email]> wrote:

> Hi,
>
> I'm trying to connect to a provider and they require additional
> connection info.  Where do I put it?  In the OMS.XML file, it mentions
> SENDERCOMPID, TARGETCOMPID, etc. and the comment line suggests an
> actual sequence these must be specified.
>
> But my provider additionally requires:
> SenderSubId: foobar
> Account: sim-foobar
> Password: thepassword
> HeartBeat Interval: 60s
>
> Where are THESE specified? In which files and under which tags?
>
> Thanks,
>
> Neal Hill
> SRH Technology
> _______________________________________________
> Marketcetera Developers mailing list
> Marketcetera Documentation: http://trac.marketcetera.org
> To unsubscribe, go to
> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
>



--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
Neal Hill

Re: Where do I put other login/session parameters?

Reply Threaded More More options
Print post
Permalink
Thanks. I'll try this out and deploy this.
-----Original Message-----
From: "Toli Kuznets" <[hidden email]>

Date: Wed, 25 Jun 2008 13:45:39
To:"Neal Hill" <[hidden email]>
Cc:[hidden email]
Subject: Re: [m-etc-dev] Where do I put other login/session parameters?


Hi Neal,

Apologies - we are in the process of updating the documentation to
reflect the recent 0.5.0 release.
Let me assume that you are running 0.5.0

Here are the files you need to change:

In C:\program files\marketcetera\ors\conf you need to open
ors_user.properties - this is where you specify the FIX destination
properties. This file overrides the defaults that are specified in
ors_default.properties

quickfix.senderCompId=<your sender-comp id>
quickfix.targetCompId=<target comp id>
quickfix.destination=<fix host destination>
quickfix.port=<port>

The hearbeat interval is specified in the conf/quickfixj.xml file -
look for something that looks like this and modify 30 to 60 (line 30)
<entry key="HeartBtInt" value="30"/>

For Account, if you want it to be automatically inserted into every
outgoing message, you'll need to use the message modifier framework.
see http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/OMSInstallation#DefaultFIXFieldsOptional
for more details. If you want it in all messages, then it's as simple
as having this:

<bean id="defaultMessageModifier"
class="org.marketcetera.quickfix.DefaultMessageModifier">
<property name="msgFields">
        <map>
                <entry key="1" value="<your account name>"/>
        </map>
</property>
</bean>

If you need that in Logon only message, for example, then you specify
message type (Logon is A) in the key:
                <entry key="1(A)" value="<your account name>"/>

Similar with password. I'm assuming that you need both Account and
Password (field 554) in Logon, then you'd have this:
<bean id="defaultMessageModifier"
class="org.marketcetera.quickfix.DefaultMessageModifier">
<property name="msgFields">
        <map>
                <entry key="1(A)" value="<your account name>"/>
                <entry key="554(A)" value="<your password>"/>
        </map>
</property>
</bean>

Hope this helps. Let me know if you have any other questions.


On Wed, Jun 25, 2008 at 1:17 PM, Neal Hill <[hidden email]> wrote:

> Hi,
>
> I'm trying to connect to a provider and they require additional
> connection info.  Where do I put it?  In the OMS.XML file, it mentions
> SENDERCOMPID, TARGETCOMPID, etc. and the comment line suggests an
> actual sequence these must be specified.
>
> But my provider additionally requires:
> SenderSubId: foobar
> Account: sim-foobar
> Password: thepassword
> HeartBeat Interval: 60s
>
> Where are THESE specified? In which files and under which tags?
>
> Thanks,
>
> Neal Hill
> SRH Technology
> _______________________________________________
> Marketcetera Developers mailing list
> Marketcetera Documentation: http://trac.marketcetera.org
> To unsubscribe, go to
> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
>



--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
Neal Hill

Re: Where do I put other login/session parameters?

Reply Threaded More More options
Print post
Permalink
In reply to this post by toli
Actually, I'm running 0.4.2... are there differences to resolve this?
 
Thanks,
Neal

On Wed, Jun 25, 2008 at 4:45 PM, Toli Kuznets <[hidden email]> wrote:
Hi Neal,

Apologies - we are in the process of updating the documentation to
reflect the recent 0.5.0 release.
Let me assume that you are running 0.5.0

Here are the files you need to change:

In C:\program files\marketcetera\ors\conf you need to open
ors_user.properties - this is where you specify the FIX destination
properties. This file overrides the defaults that are specified in
ors_default.properties

quickfix.senderCompId=<your sender-comp id>
quickfix.targetCompId=<target comp id>
quickfix.destination=<fix host destination>
quickfix.port=<port>

The hearbeat interval is specified in the conf/quickfixj.xml file -
look for something that looks like this and modify 30 to 60 (line 30)
<entry key="HeartBtInt" value="30"/>

For Account, if you want it to be automatically inserted into every
outgoing message, you'll need to use the message modifier framework.
see http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/OMSInstallation#DefaultFIXFieldsOptional
for more details. If you want it in all messages, then it's as simple
as having this:

<bean id="defaultMessageModifier"
class="org.marketcetera.quickfix.DefaultMessageModifier">
<property name="msgFields">
       <map>
               <entry key="1" value="<your account name>"/>
       </map>
</property>
</bean>

If you need that in Logon only message, for example, then you specify
message type (Logon is A) in the key:
               <entry key="1(A)" value="<your account name>"/>

Similar with password. I'm assuming that you need both Account and
Password (field 554) in Logon, then you'd have this:
<bean id="defaultMessageModifier"
class="org.marketcetera.quickfix.DefaultMessageModifier">
<property name="msgFields">
       <map>
               <entry key="1(A)" value="<your account name>"/>
               <entry key="554(A)" value="<your password>"/>
       </map>
</property>
</bean>

Hope this helps. Let me know if you have any other questions.


On Wed, Jun 25, 2008 at 1:17 PM, Neal Hill <[hidden email]> wrote:
> Hi,
>
> I'm trying to connect to a provider and they require additional
> connection info.  Where do I put it?  In the OMS.XML file, it mentions
> SENDERCOMPID, TARGETCOMPID, etc. and the comment line suggests an
> actual sequence these must be specified.
>
> But my provider additionally requires:
> SenderSubId: foobar
> Account: sim-foobar
> Password: thepassword
> HeartBeat Interval: 60s
>
> Where are THESE specified? In which files and under which tags?
>
> Thanks,
>
> Neal Hill
> SRH Technology
> _______________________________________________
> Marketcetera Developers mailing list
> Marketcetera Documentation: http://trac.marketcetera.org
> To unsubscribe, go to
> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
>



--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.



--
nealhill@gmail
973-453-8337 eFax
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
toli

Re: Where do I put other login/session parameters?

Reply Threaded More More options
Print post
Permalink
Neal,

If you are running 0.4.2, then refer to the documentation on the site
- we are updating it when we release the new source code repo and
Linux installers at the end of this week.

Ignore what i said about ors_user.properties file - you need to modify
the conf/oms.xml file as described here:
http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/OMSInstallation#FIXConnection

The quickfixj.xml and message-modifiers.xml instructions are still the same.

I'd recommend installing 0.5.0 since it has a nicer easy-to-use
Windows installer, so that you don't have to deal with the VMWare
appliance anymore.

On Wed, Jun 25, 2008 at 4:32 PM, Neal Hill <[hidden email]> wrote:
> Actually, I'm running 0.4.2... are there differences to resolve this?
>
> Thanks,
> Neal
>


--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
Neal Hill

Re: Where do I put other login/session parameters?

Reply Threaded More More options
Print post
Permalink
OK... I *promise* to upgrade once I prove this end-to-end connectivity.
 
So, to summarize, for 0.4.2:
1) Set heartbeat in the quickfixj.xml.
 
2) In OMS.XML, I set the *only* the SENDERCOMPID, TARGETCOMPID
 
And
3) in the message-modifiers.xml  file, I can put the following in the tag <bean id="defaultMessageModifier" ...
 
<property name="msgFields">
  <map>
    <entry key="1" value="myaccount"/>
    <entry key="554" value="mypassword"/>
    <entry key="50" value="mysendersubid"/>
  </map>
</property>


On Wed, Jun 25, 2008 at 7:49 PM, Toli Kuznets <[hidden email]> wrote:
Neal,

If you are running 0.4.2, then refer to the documentation on the site
- we are updating it when we release the new source code repo and
Linux installers at the end of this week.

Ignore what i said about ors_user.properties file - you need to modify
the conf/oms.xml file as described here:
http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/OMSInstallation#FIXConnection

The quickfixj.xml and message-modifiers.xml instructions are still the same.

I'd recommend installing 0.5.0 since it has a nicer easy-to-use
Windows installer, so that you don't have to deal with the VMWare
appliance anymore.

On Wed, Jun 25, 2008 at 4:32 PM, Neal Hill <[hidden email]> wrote:
> Actually, I'm running 0.4.2... are there differences to resolve this?
>
> Thanks,
> Neal
>


--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.



--
nealhill@gmail
973-453-8337 eFax
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
toli

Re: Where do I put other login/session parameters?

Reply Threaded More More options
Print post
Permalink
Neal,

That should work. One note:

> <property name="msgFields">
>   <map>
>     <entry key="1" value="myaccount"/>
>     <entry key="554" value="mypassword"/>
>     <entry key="50" value="mysendersubid"/>
>   </map>
> </property>

will put those tags in all outgoing messages. You may want to be more
specific - I don't know if Account/Password are allowed in all
messages.

If you end up seeing rejections of messages due to some tags not being
in the dictionary, you will need to modify the FIX dictionary you are
have to include the Password field - it's not there in FIX.4.2 for
example.
See http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/UserFAQ#MybrokerdeviatesfromFIXspec.HowdoIuseacustomFIXdictionary
for more info.

let me know how this goes
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].