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

  • Posts

    • Source: Coingecko  Source link: https://www.coingecko.com/research/publications/2024-q1-crypto-report The cryptocurrency sector has experienced significant growth in 2024, driven by events like Lugano city's acceptance of crypto payments and the approval of the Bitcoin spot ETF. The industry's market cap reached a record high of $2.9 trillion, with $1.1 trillion added in Q1 alone. Bitcoin surged to a new peak of $73k, surpassing its previous ATH of $68k. Top centralized exchanges like Binance, Bitget, OKX, and Bybit saw substantial growth, with Bitget particularly excelling in derivative trading. Bitget's open interest exceeded OKX's and ranked closely behind Binance and Bybit. Spot trading volume surged from $29B in January to $95B in March, elevating Bitget to the top 7 spot in the spot market and maintaining the 4th position in the derivative market among major centralized exchanges. While other exchanges also witnessed significant growth, Bitget's standout performance has made it the focal point of industry attention. What are your impressions of these findings?
    • DogeDay always brings back memories of 2019 when my friends were diving into Dogecoin and joining farming activities. That's why I'm excited to explore the Bitget DogeDay giveaway event. Plus, with tomorrow's BTC halving, the excitement is doubled!
    • As a meme fan, I have been waiting patiently for the Bull trend that happened to BTC recently to get to all the alts and so we can have what we had back then in 2021 to happen again, but time the strength of the uptrend has not been able to match up with what I am expecting and I do hope that the halving will help, but looking at the hype that is usually expected from the meme community. I don't think I'll be able to wait for the trend to resume and so I am taking more steps ahead of the game, taking up all the opportunities I believe would help the price-trend of my holdings, especially for the DOGE memes and I have found this DOGEDAY event ongoing and it really made a lot of sense to me, because if we look at how the DOGE coins have performed in the past. I believe if we can have a Bitcoin day to celebrate the first cryptocurrency, then we should be able to have a DOGEDAY too looking at the success rate of the meme and the support from the community. For me, this is something special that is worth the energy, vibes and hype and worth participating it. There are different sections to the event, which include the Twitter part, where Bitget is sharing $3,00 to those participating( https://twitter.com/bitgetglobal/status/1780495739984150962Twitter Post ) and the telegram event, and I believe this will favour those that love to bet on the price of coins. They are sharing 100BGB tokens for this and the Discord event has a 90BGB token to be shared.  If we can have Bitcoin's day, then this DOGEDAY should be observed in all the DOGE communities and I will admonish meme lovers to observe events like this because it reflects the nature of memecoin and the hype around it.
×
×
  • Create New...
us