Jump to content
Sign in to follow this  
BDod

ListOpenPositions

Recommended Posts

Please if someone can answer this.

I am trying to call the ListOpenPositions GET end point. 

https://ciapi.cityindex.com/TradingAPI/openpositions?TradingAccountId=909090909&Session=2c060874-3280-4677-baf2-90aa4b42d50f&UserName=XXXXXXX

The following returns 404 Not Found. Very frustrating. The documentation does not provide a concrete example. Can anyone help?

Thank you,

Brett

I have found the error:

https://ciapi.cityindex.com/TradingAPI/order/openpositions?TradingAccountId=909090909&Session=2c060874-3280-4677-baf2-90aa4b42d50f&UserName=XXXXXXX

Please consider this closed.

 

 

 

Edited by BDod
Found error

Share this post


Link to post

Hi Brett,

To simplify things and make it easier, I have moved the authentication information into the header of my request. Additionally, if the TradingAccountId is not supplied, by default the system will use the ClientAccountID so I have not specified it explicitly. You should be able to retrieve your open positions in this way as shown in the example below.

Kind Regards, PM

image.png

 

 

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  
×