Trade FOREX with FXCM

  • Award-Winning Platform
  • 24/7 Customer Support
  • Trade Directly on Charts
  • Free $50K Practice Account
Register


Results 1 to 4 of 4

Thread: FIX API account questions

  1. #1
    riflexo is offline Member
    Join Date
    Mar 2008
    Posts
    6

    FIX API account questions

    Hi,

    We are a referring broker(Riflexo LTD) and have several questions regarding the usage of the FIX API.

    Questions:

    1) How can we login to the FIX demo server? We are trying to connect to the "fixdemo2.fxcorporate.com" provided in the example but a connection can not be established. We have message (Connection refused: no further information). What are the values for the SocketConnectHost and SocketConnectPort to make the connection?

    2) Can we use a FXR-type of account to connect to a demo fix server, if so what should we use for target comp, sender comp (SenderCompID)

    3)In case it's not possible to login w/ such an account, how can we get a FIX-enabled account.

    4) We are mostly interested in NOT receiving MarketDataSnapshot(s), 'W' msg. Is that possible w/ your servers demo/production. We actually opted for FIX solely for that reason. If it's possible to disable the same message on Java Trading API, please advise so. We are likely to need to abandon out current Java-Trading API implementation to solely combat the issue.

    5)In case we can't play around the MarketDataSnapshot message, we need a LAMM account in order to manage multiple accounts without bogging the traffic/bandwidth and wasting resources on those messages. Is that correct?

    And last: if we go for LAMM:

    6) Do the managed by a LAMM account clients lose their regular access (via FXCM trading station) to the trading?

    Best Regards,

  2. #2
    Join Date
    Jul 2009
    Posts
    210
    Quote Originally Posted by riflexo View Post
    Hi,

    We are a referring broker(Riflexo LTD) and have several questions regarding the usage of the FIX API.

    Questions:

    1) How can we login to the FIX demo server? We are trying to connect to the "fixdemo2.fxcorporate.com" provided in the example but a connection can not be established. We have message (Connection refused: no further information). What are the values for the SocketConnectHost and SocketConnectPort to make the connection?

    2) Can we use a FXR-type of account to connect to a demo fix server, if so what should we use for target comp, sender comp (SenderCompID)

    3)In case it's not possible to login w/ such an account, how can we get a FIX-enabled account.

    4) We are mostly interested in NOT receiving MarketDataSnapshot(s), 'W' msg. Is that possible w/ your servers demo/production. We actually opted for FIX solely for that reason. If it's possible to disable the same message on Java Trading API, please advise so. We are likely to need to abandon out current Java-Trading API implementation to solely combat the issue.

    5)In case we can't play around the MarketDataSnapshot message, we need a LAMM account in order to manage multiple accounts without bogging the traffic/bandwidth and wasting resources on those messages. Is that correct?

    And last: if we go for LAMM:

    6) Do the managed by a LAMM account clients lose their regular access (via FXCM trading station) to the trading?

    Best Regards,
    Talk to your sales rep about the credentials for your fix account. And regarding the "not receiving marketdatasnapshot", you can choose to receive marketdatasnapshots or you can choose not to receive marketdatasnapshots in FIX and Java API. If you were using the Java API why didn't you just not ask for marketdatasnapshots? or if you only need them once why don't you just ask for it once? what were you trying to do?
    FXCM Programming Services is able to leverage its experience and expertise to help clients implement their automated strategy designs on platforms such as ESignal, TradeStation, MetaTrader, among others, upon request.

  3. #3
    riflexo is offline Member
    Join Date
    Mar 2008
    Posts
    6
    Below is the code, indeed it works for disabling the feed of the currency pairs w/o active trades. However, it is not session based but rather account based, i.e. it also disables them for any completely unaware user of Trading Station... and vice versa - adding them from the Trading Station client enables them for JavaTrading API.
    I suppose there is only a single state kept per account (not session).

    The explained behavior is erratic and very undesirable.
    So, we were looking for a FIX based solution hoping it favors the (FIX) session and not the account overall.

    Code:
        MarketDataRequest mdr = new MarketDataRequest();
        mdr.setSubscriptionRequestType(SubscriptionRequestTypeFactory.UNSUBSCRIBE);
        mdr.setFXCMTimingInterval(FXCMTimingIntervalFactory.TICK);
        mdr.setMDEntryTypeSet(MarketDataRequest.MDENTRYTYPESET_ALL);
        mdr.setMDReqID("zax");
        
        g.sendMessage(mdr);
    Cheers

  4. #4
    Join Date
    Jul 2009
    Posts
    210
    Quote Originally Posted by riflexo View Post
    Below is the code, indeed it works for disabling the feed of the currency pairs w/o active trades. However, it is not session based but rather account based, i.e. it also disables them for any completely unaware user of Trading Station... and vice versa - adding them from the Trading Station client enables them for JavaTrading API.
    I suppose there is only a single state kept per account (not session).

    The explained behavior is erratic and very undesirable.
    So, we were looking for a FIX based solution hoping it favors the (FIX) session and not the account overall.

    Code:
        MarketDataRequest mdr = new MarketDataRequest();
        mdr.setSubscriptionRequestType(SubscriptionRequestTypeFactory.UNSUBSCRIBE);
        mdr.setFXCMTimingInterval(FXCMTimingIntervalFactory.TICK);
        mdr.setMDEntryTypeSet(MarketDataRequest.MDENTRYTYPESET_ALL);
        mdr.setMDReqID("zax");
        
        g.sendMessage(mdr);
    Cheers
    Oh ok. yes you are right. Subscribing for marketdatasnapshots in the Java API makes Trading Station subscribe too since the connection is account based. However, using FIX has the same effect so it is no different. If you want to trade one account using Java API or FIX and you want it to run independently of Trading Station you should create 2 accounts, one for each.
    FXCM Programming Services is able to leverage its experience and expertise to help clients implement their automated strategy designs on platforms such as ESignal, TradeStation, MetaTrader, among others, upon request.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.