Jump to content

ikkeman

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by ikkeman

  1. When working against my demo account through the REST API with the API companion tool (and also with my own code in C# and Python) I have successfully authenticated and are able to retrieve the Access_Token, Account Details etc. When I try to create a new position with parameters as below (this example I used stock but I also tried EURUSD CFD epic) I get a success as response (no error code) and a Deal Reference. But when I look-up open positions or the details of the open position based on the Deal reference there is no open position found. Anyone with ideas on what I'm doing wrong? p.s. opening positions on this account with the IG mobile App does work so I know in theory the account allows for the creation of new positions. { "epic": "UB.D.GOOGL.CASH.IP", "expiry": "DFB", "direction": "BUY", "size": "1", "orderType": "MARKET", "timeInForce": "FILL_OR_KILL", "level": null, "guaranteedStop": "false", "stopLevel": null, "stopDistance": null, "trailingStop": null, "trailingStopIncrement": null, "forceOpen": "false", "limitLevel": null, "limitDistance": null, "quoteId": null, "currencyCode": "USD" }
×
×
  • Create New...
us