Jump to content


  • Content count

  • Joined

  • Last visited

  1. IN the mean time, since about 1 hour the Cash value on my webtrading plattform is: 11045,76 Euro but the answer from GET https ClientAccountMargin is: 11028,02 Euro. And one more very interesting thing: If I close all orders and all trades on my EUR/USD market and having no orders or trades on other markets, (it means, I have no positions or orders anywhere) the "Cash" value from GET https ClientAccountMargin is changing after every GET request, (which I make in about every second). Why? THX !
  2. It is fine, but if I get from live price stream the bid and offer prices and sending my trade request with them, it can be, that in the mean time, this values will be changed, so my trade request will be not placed and I get an error return message. For this is real better to set the trade with bidprice = last tick price * 10 offerprice = last tick price * 10 ? Which way is the best to set bidprice and offerprice if I accept any current price ? THX!
  3. Hi, I have placed more trades (Forex CFD UK plattform EUR/USD market) and reading in every second by GET https ClientAccountMargin: GET https://ciapi.cityindex.com/TradingAPI/margin/ClientAccountMargin The value "Cash" is on my Web Trading plattform is 11038,70 EUR and it is stable, not changing, during all trades are waiting to be executed, but the return value from GET is: 11054.40 and is continously changing, during the open trades are waiting to be executed. It seems, that the "Cash" value on the GET answer is moving according the current EUR/USD price, but is should not. It must be constant, like on the web plattform, but it is not. Why? What shall I do to have the same non changing "Cash" answer value, getting by https GET as showed on the top of the web plattform ? THX !
  4. Hi, Please describe me, what is the meaning of bidprice and offerprice in the POST: https://ciapi.cityindex.com/TradingAPI/order/newtradeorder What shall I setup for them, if I want to place immediatelly a buy trade order at actual price ? I mean, if I want to set a buy trade position at current price, which price shall I define for bidprice and offerprice ? It seems to work, if bidprice = last tick price * 10 offerprice = last tick price * 10 But I do not believe, that this is the right setting. THX !
  5. Hi, I am setting on UK CFD plattform a buy and a sell trade positions by https POST https://ciapi.cityindex.com/TradingAPI/order/newtradeorder after each other for 1000 PCS EUR/USD at the begining of my program and the web plattform shows, that the margin of the buy position in 0,00 ! The margin of the sell trade is every time not 0, showing the right marge value. If I place later other buy trades, it works. The margin of the new trades will be not 0,00, but the right value. It means, my https POST must be OK. Sometimes, if I place a new buy trade, the margin of the first trade with 0,00 margin, become the right value, or also if I close the sell trade. It means, somehow the system does not show the margin, only later if I place or close other trades. But this is no every time, sometimes the first trade remains 0,00. I attached a screenshot about it. It is german language, but you can find, what it means. What does it cause ? THX !
  6. Hi, Is it possible to initialise a lightstreamer stream to get current info about, which positions are open at a market, I placed open positions (trades) ? I mean, the same info, which can be get by a GET http call of: https://ciapi.cityindex.com/TradingAPI/order/openpositions I would need about 2 times in a second an info about my open positions, to be able to detect, if one or more are executed. Or how can I get easyest way actual information about, if an open position was executed ? Is it possible to get a message if a position was executed, instead, asking every second by http GET ? THX !
  7. Hi, If I place a trade with an order ID with stop loss and take profit prices on UK CFD market, after reaching one of the triggers and terminating the Order ID, how can I get information about on which price and by which trigger (S/L or T/P) was terminated ? I mean, if stop loss or take profit price was reached, the ID disappear from my positions list and I want to know, on which price and by which trigger was it terminated. THX !
  8. Hi, On the web plattform of Forex CDF UK trading, if I place an order or a trade on the right side of the display appears a colored bar with the info about my order or trade. It appears for some seconds and scrolling down and disappears slowly. But if I place many orders at the same times, these are disturbing, because the whole right part of the display is full of them and it takes longer time, till all are disappeared. How can I setup it, that no info bar appear, if I place an order or trade? THX for helping!
  9. Placing Multiple Order

    Thx, but which values are these? (Quantity * (TrailingStopConversionFactor || 1) * fxConversion) / QuantityConversionFactor In return answer: ApiMarketInformationDTO http://docs.labs.gaincapital.com/#Data Types/ApiMarketInformationDTO.htm I have found: "QuantityConversionFactor" but did not found return value as "fxConversion" and "TrailingStopConversionFactor". And waht does "|| 1" mean ? "OR" by 1 ? Please write me the right formula from return values of ApiMarketInformationDTO to calculate PIP value. By the way: In this example: http://docs.labs.gaincapital.com/#HTTP Services/GetMarketInformation.htm%3FTocPath%3DCIAPI%20Reference|HTTP%20Services|Market|_____2 GBP/USD ID will be written in the description text as: 401166448 but in the example below will be written: GET https://ciapi.cityindex.com/TradingAPI/market/401166447/information Theses are not the same market ID number. I guess, this is a failure. I do not know which ID is really the GBP/USD, but please correct the bad ID.
  10. Placing Multiple Order

    Hi, I am an UK trader, trading with CFD-s. Please tell me, how can I calculate PIP value of a market. THX !
  11. Placing Multiple Order

    One more question: How can I get information by POST or GET about * my trading resource * net capital * cash of my account * of non realised P/L THX !
  12. Placing Multiple Order

    Hello, How can I calculate or get the information about, how much value has got one PIP in a market trade ? If I login by web surface to forex.com, before placing a trade I will be informed about it and also about required marge on the bottom of window. But the function POST https://ciapi.cityindex.com/TradingAPI/order/simulate/newtradeorder informs me only about margin, but not about PI value of minimum quantity. How can I get PIP value ?
  13. Hello, I am sorry, but what you write is not very clear. I sent to the server as GET message: https://push.cityindex.com/lightstreamer/create_session.txt ?LS_protocol=TLCP-2.1.0 HTTP/1.1&LS_cid=mgQkwtwdysogQz2BJ4Ji%20kOj2Bg&LS_adapter_set=STREAMINGALL&LS_data_adapter=PRICES.PRICE.154297&LS_user=USERNAME&LS_password=SESSION USERNAME and SESSION are valid values from my account. I get from server back only this answer: Lightstreamer up What does it mean ? OK, that LS_adapter_set=STREAMINGALL, but which LS_ value must be equal to i.e. PRICES.PRICE.154297 if I want to get real time tick prices of GBP/USD ? Could you create for me a complete valid request string to start a stream of data please ? THX !
  14. Hi, Is it possible to place in one Post Request more than one order ? According this description: http://docs.labs.gaincapital.com/#How Do I/Trades Orders.htm%3FTocPath%3DHow%20Do%20I...%3F|_____4 is possible to place one order and the server answers with OrderId, but how is it possible to place more orders in one Post Request ? THX !
  15. Problem (3) is: On GainCapital site: http://docs.labs.gaincapital.com/#Getting Started/CIAPI Arky.htm%3FTocPath%3DGetting%20Started|_____1 or http://docs.labs.gaincapital.com/#Streaming Data/Prices.htm%3FTocPath%3DCIAPI%20Reference|Streaming%20Data|_____5 there is no information about, which part of the message is "target" and what is "channel". I could figure it out, that "target" comes to "LS_adapter_set" -> &LS_adapter_set=STREAMINGALL but what part is "channel" ??? Every Forum answer from you, sends to Lightstream site, but I can find there only general informations, because lightstreamer was made for many usage, not only for GainCapital, it means, on the lightstreamer site is no information about, which field will be used by Gain Capital for what and how GainCapital is using Lightstreamer. Unfortunatelly there are no demo or examples on Gain Capital site about streaming of data. For "REST API" there are many examples, what to POST if I want to place an order or a trade, but nothing, how to initialise and use a streaming. Please help! Regards.