Jump to content
  • 0

API - Create Position Question


toshendra

Question

Hi

I am creating  position using IG API . I get success message and deal reference id , but on demo platform my position is not increasing?

What is happening ? Are the market orders executing on demo  or not ? 

Here is the c# code , same thing happens with API companion, So this feature only available in live account ?

   var createPositionRequest = new CreatePositionRequest()
            {
                epic = "UD.D.TQQQUS.CASH.IP",
                direction = "BUY",
                orderType = "MARKET",
                forceOpen = true,
                guaranteedStop = true,
                currencyCode = "USD",
                size = 10,
                expiry="DFB",
                stopDistance = 100
            };

            var res = await igRestApiClient.createPositionV2(createPositionRequest);

 

 

 

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
  • image.png

  • Posts

    • AR Price on the Rise?   Bullish Pattern Hints at $100 by 2024   The chart shows a potential inverted head and shoulders but faces a hurdle at $44.  Read more for the full analysis!   https://coinpedia.org/price-analysis/this-bullish-pattern-in-ar-price-teases-100-in-2024/   #AR #Cryptocurrency  
    • WIF Woes: Meme Coin Crashes 10%,  Will it bounce back or sink further? With a bullish failure to surpass the high supply resistance level of $3.35, the meme coin suffers a 10% drop in market value. With the crash, the WIF price loses the $3 mark and heads lower for the next support.  However, the 18% drop in trading volume reflects the bullish exhaustion leading to additional supply.   #WIF #Dogwifhat #Cryptocurrency   Full analysis: https://coinpedia.org/price-analysis/wif-price-crashes-10-a-retest-teases-a-jump-to-5/
    • AKT Price Alert! Triangle Pattern Warns of Downturn   AKT struggles within a bearish triangle, dropping 10% today!  Can it hold $4 support or is a deeper correction coming?   #AkashNetwork #Cryptocurrency #TechnicalAnalysis   Full analysis:https://coinpedia.org/price-analysis/akt-price-drops-10-within-triangle-delays-end-of-correction/
×
×
  • Create New...
us