Jump to content
Sign in to follow this  
Guest andreif

How to detect appropriate trading account for the market?

Recommended Posts

Guest andreif

I have a MarketId and need to place a trade. The Trade() method requires trading account id (there are 2 ones, for CFD and spread betting markets). How i can detect which trading account I need to use?

Share this post


Link to post

Could somebody answer the initial question?

For example watch-list may contain markets of different types (CFD, Spread, Binary). If User wants to trade on chosen market then application has to know type of this market (Product type) to choose correct trading account to perform right CIAPI calls.

It seems that additional field ProductType has to be added to MarketInformationDTO and this field will be used for selecting correct trading account. I don’t see another solution now…

This CIAPI improvements is critical because it blocks other functionality.

Share this post


Link to post

You should make a call to the ClientAndTradingAccount information service (/UserAccount/ClientAndTradingAccount). This will give you the list of trading accounts available to you, as well as their type (‘cfd’ or ‘spread bettting’).

Share this post


Link to post
Guest andreif

You should make a call to the ClientAndTradingAccount information service (/UserAccount/ClientAndTradingAccount). This will give you the list of trading accounts available to you, as well as their type (‘cfd’ or ‘spread bettting’).

Yes. However, how I can detect which of these accounts is appropriate for the given market id? Do I need to call GetMarketInformation to figure out?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×