Jump to content
  • 0

Position REJECTED, Reason : REJECT_SPREADBET_ORDER_ON_CFD_ACCOUNT


Eragonnm

Question

Hello,

I am trying to use IG API with the python Github (ig-markets-api-python-library). I can connect my DEMO session and have market information but I haven't been able to open a position. This is the code sent to open a position :

 

resp = ig_service.create_open_position(
        currency_code='USD',
        direction='BUY',
        epic='CS.D.LTCUSD.CFD.IP',
        order_type='MARKET',
        expiry='DFB',
        force_open='false',
        guaranteed_stop='false',
        size=10, 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
 
And this is the respond of IG API :
 
{'affectedDeals': [],
'date': '2021-07-11T19:13:11.505',
'dealId': 'DIAAAAFY3HKNWAP',
'dealReference': 'FY5RRQQHA8TYM9',
'dealStatus': 'REJECTED',
'direction': 'BUY',
'epic': 'CS.D.LTCUSD.CFD.IP',
'expiry': None,
'guaranteedStop': False,
'level': None,
'limitDistance': None, 'limitLevel':
None, 'profit': None,
'profitCurrency': None,
'reason': 'REJECT_SPREADBET_ORDER_ON_CFD_ACCOUNT',
'size': None,
'status': None,
'stopDistance': None,
'stopLevel': None,
'trailingStop': False}

I do not understand the reason : 'REJECT_SPREADBET_ORDER_ON_CFD_ACCOUNT',

Would anyone help me on this? Is there any issue related to my account?

Thank you

  • Like 1
Link to comment

4 answers to this question

Recommended Posts

  • 0

Got the same issue. What did you use instead of 'DFB'?

 

currency_code = "GBP"
direction = "BUY"
epic = "IX.D.FTSE.CFD.IP"
expiry = "DFB"
guaranteed_stop = False
# entering price
level = 7402.0
# Pound per point size
size = 1
time_in_force = "GOOD_TILL_CANCELLED"
# limit orders are now called STOP
order_type = "STOP"
limit_distance = None
stop_distance = level*0.99

 

----------------------------

'direction': 'BUY',
 'epic': 'IX.D.FTSE.CFD.IP',
 'expiry': None,
 'guaranteedStop': False,
 'level': None,
 'limitDistance': None,
 'limitLevel': None,
 'profit': None,
 'profitCurrency': None,
 'reason': 'REJECT_SPREADBET_ORDER_ON_CFD_ACCOUNT',
 'size': None,
 'status': None,
 'stopDistance': None,
 'stopLevel': None,
 'trailingStop': False}

 

Link to comment

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
  • General Statistics

    • Total Topics
      22,090
    • Total Posts
      92,940
    • Total Members
      42,475
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    IPS Temp Admin
    Joined 06/10/22 15:40
  • Posts

    • 🔸Hello traders, let's review the 4 hour chart for AUDUSD today. Recently price was locked inside distribution trading range and subsequently it broke down below key s/r level near 6600 and hit 6500. Following the normal distribution pattern. 🔸Short-term expecting throwback to re-test mid of the distribution range and then expecting new wave of short-selling once we trigger 6700. Bears still maintain strategic control. 🔸Recommended strategy for AUDUSD bears: wait for the short-term bounce to complete near 6700 and then re-enter on SELL SIDE. TP1 bears +200 pips TP2 bears final +400 pips at 6350. Keep in mind this is a swing trade setup so will take more time to complete. good luck! 🎁Please hit the like button and 🎁Leave a comment! RISK DISCLAIMER: Trading Futures , Forex, CFDs and Stocks involves a risk of loss. Please consider carefully if such trading is appropriate for you. Past performance is not indicative of future results. Always limit your leverage and use tight stop loss.  
    • Analog Devices Inc., Elliott Wave Technical Analysis Analog Devices Inc., (ADI:NASDAQ): Daily Chart, 31 May 23, ADI Stock Market Analysis: We reacted higher off equality of C vs. A as expected and we seem to be wanting to continue higher.   ADI Elliott Wave Count: Wave C of (2). ADI Technical Indicators: Above 200EMA. ADI Trading Strategy: Looking for further upside into wave 1 to resume upside, we will have additional confirmation once we break the top of wave B. TradingLounge Analyst: Alessio Barretta Source : Tradinglounge.com get trial here!       Analog Devices Inc., ADI: 1-hour Chart, 31 May 23, Analog Devices Inc., Elliott Wave Technical Analysis ADI Stock Market Analysis: Looking for a potential five wave move off the lows, e are now expecting a three wave move into wave (ii) to then look for potential longs. ADI Elliott Wave count:  Wave  (i) of {i}. ADI Technical Indicators: 20EMA as support.   ADI Trading Strategy: Looking for a three wave move pullback in wave (ii) before resuming higher.
    • Elliott Wave Analysis TradingLounge Daily Chart, 31 May 23,   Bitcoin/U.S.dollar(BTCUSD) BTCUSD Elliott Wave Technical Analysis Function: Reactionary(Counter Trend) Mode: Corrective Structure: Zigzag Position: Wave(C) Direction Next higher Degrees: wave ((2)) of Motive Details: Wave ((2)) is likely to end at the level of 25874.30. A five-wave rise will confirm this idea. Wave Cancel invalid level: 25874.30 Bitcoin/U.S. dollar (BTCUSD)Trading Strategy: Bitcoin has recovered well from the 25874.30 level and can still hold above the MA200 line, leading us to expect Wave 2 to end at 25874.30, the price is returning to an upward trend, and a five-wave rise will support this idea. Bitcoin/U.S.dollar(BTCUSD)Technical Indicators: The price is above the MA200 indicating an Uptrend MACD and RSI are bullish momentum. TradingLounge Analyst: Kittiampon Somboonsod, CEWA Source : Tradinglounge.com get trial here!       Elliott Wave Analysis TradingLounge 4H Chart, 31 May 23,   Bitcoin/U.S.dollar(BTCUSD) BTCUSD Elliott Wave Technical Analysis Function: Follow Trend Mode: Motive Structure: Impulse Position: Wave 5 Direction Next higher Degrees: wave (C) of Zigzag Details: Wave (C) is likely to end at the level of 25874.30. A five-wave rise will confirm this idea. Wave Cancel invalid level: 25874.30 Bitcoin/U.S. dollar (BTCUSD)Trading Strategy: Bitcoin has recovered well from the 25874.30 level and can still hold above the MA200 line, leading us to expect Wave 2 to end at 25874.30, the price is returning to an upward trend, and a five-wave rise will support this idea. Bitcoin/U.S.dollar(BTCUSD)Technical Indicators: The price is above the MA200 indicating an Uptrend MACD and RSI are bullish momentum.
×
×
  • Create New...