Jump to content

APIGraham

Community Member
  • Posts

    3
  • Joined

  • Last visited

Everything posted by APIGraham

  1. This has been something that has bene frustrating me for ages now but have found a way around it so posting in case others have the same issue. When I open a trade in live in MT4 the profit and loss doesnt update for more than a few seconds. (Its fine in dev, not in live). And I found out its due to displayed currency. If you have this issue, right click on your terminal trade tab, go to profit, and change to term currency, rather than deposit currency. As part of my EA's, I automate checking of profit and this did not update in the EA until I did this as well but if you do have a USD account, of course this changes it to be GBP so need to factor for the conversion as requried
  2. Hi, I am using the API to download historical chart data and I am finding the latest data is not matching that shown in the normal IG web interface. Attached is a picture of the EUR/USD 15 min timeframe. Using 10.15 on the 27th April 2022 as an example, some prices match (open price [ask]) but the others do not (and not even close). Can you please let me know how to resolve this inaccuracy? Earlier prices, e.g. 2 days ago, seem more accurate Thanks
  3. Hi all, I have a very similar issue to what is presented in this topic however the resolution is not working for me in any way. In the same manner I am using the trading_ig github repository for connectivity. I am using a spread bet (demo) account, not a CFD account. With the command: resp = ig_service.create_open_position( currency_code='USD', direction='BUY', epic='UA.D.AAPL.CASH.IP', order_type='MARKET', expiry='DFB', size=10, force_open='False', guaranteed_stop='False', level=None, limit_distance=None, limit_level=None, quote_id=None, stop_level=None, stop_distance=None, trailing_stop=None, trailing_stop_increment=None) resp I get the following response. {'affectedDeals': [], 'date': '2022-02-23T11:39:14.102', 'dealId': 'DIAAAAHR2HZCAAR', 'dealReference': 'TTTXL7BVZNYTYN7', 'dealStatus': 'REJECTED', 'direction': 'BUY', 'epic': 'UA.D.AAPL.CASH.IP', 'expiry': None, 'guaranteedStop': False, 'level': None, 'limitDistance': None, 'limitLevel': None, 'profit': None, 'profitCurrency': None, 'reason': 'UNKNOWN', 'size': None, 'status': None, 'stopDistance': None, 'stopLevel': None, 'trailingStop': False} I can see the size goes to "none" in the response which I find odd and also get an unknown rejected reason. As per the other post I have also tried a limit order and that gave the exact same error (with a limit value at both 15000 and 17000 for the current apple price). Any advice would be appreciated to support on this issue. Thanks
×
×
  • Create New...
us