Jump to content
  • 0

AMEND deal error ATTACHED_ORDER_LEVEL_ERROR


Question

Hi Site Admin, i got the below error in DEMO environment but got rectified automatically in 20 seconds....just wanted to understand the reason why this is happening as i am facing this issue very frequently. Thanks

 

{'date': '2024-07-18T07:55:09.579', 'status': None, 'reason': 'ATTACHED_ORDER_LEVEL_ERROR', 'dealStatus': 'REJECTED', 'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': None, 'dealReference': '5LWU9RBTGP2TZEB', 'dealId': 'DIAAAAQAXUUN5AV', 'affectedDeals': [], 'level': None, 'size': None, 'direction': 'SELL', 'stopLevel': None, 'limitLevel': None, 'stopDistance': None, 'limitDistance': None, 'guaranteedStop': False, 'trailingStop': False, 'profit': None, 'profitCurrency': None}

 

{'date': '2024-07-18T07:55:31.558', 'status': 'AMENDED', 'reason': 'SUCCESS', 'dealStatus': 'ACCEPTED', 'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': '-', 'dealReference': 'P2VLVAB2JD6TZEB', 'dealId': 'DIAAAAQAXTM3KA6', 'affectedDeals': [{'dealId': 'DIAAAAQAXTM3KA6', 'status': 'AMENDED'}], 'level': 156.163, 'size': 20.0, 'direction': 'SELL', 'stopLevel': 156.763, 'limitLevel': 156.148, 'stopDistance': None, 'limitDistance': None, 'guaranteedStop': True, 'trailingStop': False, 'profit': None, 'profitCurrency': None}

Link to comment

4 answers to this question

Recommended Posts

  • 0
2 hours ago, Lovely_Trader_1 said:

Hi Site Admin, i got the below error in DEMO environment but got rectified automatically in 20 seconds....just wanted to understand the reason why this is happening as i am facing this issue very frequently. Thanks

 

{'date': '2024-07-18T07:55:09.579', 'status': None, 'reason': 'ATTACHED_ORDER_LEVEL_ERROR', 'dealStatus': 'REJECTED', 'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': None, 'dealReference': '5LWU9RBTGP2TZEB', 'dealId': 'DIAAAAQAXUUN5AV', 'affectedDeals': [], 'level': None, 'size': None, 'direction': 'SELL', 'stopLevel': None, 'limitLevel': None, 'stopDistance': None, 'limitDistance': None, 'guaranteedStop': False, 'trailingStop': False, 'profit': None, 'profitCurrency': None}

 

{'date': '2024-07-18T07:55:31.558', 'status': 'AMENDED', 'reason': 'SUCCESS', 'dealStatus': 'ACCEPTED', 'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': '-', 'dealReference': 'P2VLVAB2JD6TZEB', 'dealId': 'DIAAAAQAXTM3KA6', 'affectedDeals': [{'dealId': 'DIAAAAQAXTM3KA6', 'status': 'AMENDED'}], 'level': 156.163, 'size': 20.0, 'direction': 'SELL', 'stopLevel': 156.763, 'limitLevel': 156.148, 'stopDistance': None, 'limitDistance': None, 'guaranteedStop': True, 'trailingStop': False, 'profit': None, 'profitCurrency': None}

Dear @Lovely_Trader_1,

Thank you for your post. 

Please note that there are specified limits and stop distances for each market.

If your limit is closer than the minimum distance required from the market, your order will get rejected and you will receive the first error above.

Thanks,

KoketsoIG

Please rate us on Trustpilot: IG Trustpilot 

Link to comment
  • 0
4 hours ago, KoketsoIG said:

Dear @Lovely_Trader_1,

Thank you for your post. 

Please note that there are specified limits and stop distances for each market.

If your limit is closer than the minimum distance required from the market, your order will get rejected and you will receive the first error above.

Thanks,

KoketsoIG

@KoketsoIG noted, but if you could explain to me exactly what are those limits , where i can see the limits (available at epic level?) with the sample deal data that i have given in my earlier post , it will be really helpful for me to understand better and i can try to handle this scenario in my code properly to avoid getting such error... i am really looking forward for this as i am getting this error quite frequently ...

( given below is the epic level data that i got as well , but there are no much changes in these parameters during the rejection or success)

thanks so much in advance.

 

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

 Munch({'instrument': Munch({'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': '-', 'name': 'USD/JPY Mini', 'forceOpenAllowed': True, 'stopsLimitsAllowed': True, 'lotSize': 100.0, 'unit': 'CONTRACTS', 'type': 'CURRENCIES', 'controlledRiskAllowed': True, 'streamingPricesAvailable': True, 'marketId': 'USDJPY', 'currencies': [Munch({'code': 'Y.', 'name': 'JPY', 'symbol': '¥', 'baseExchangeRate': 116.49474, 'exchangeRate': 0.007, 'isDefault': False})], 'marginDepositBands': [Munch({'min': 0, 'max': 634, 'margin': 5}), Munch({'min': 634, 'max': 3171, 'margin': 5}), Munch({'min': 3171, 'max': 5074, 'margin': 5}), Munch({'min': 5074, 'max': None, 'margin': 15})], 'margin': 5.0, 'slippageFactor': Munch({'unit': 'pct', 'value': 30.0}), 'openingHours': None, 'expiryDetails': None, 'rolloverDetails': None, 'newsCode': 'JPY=', 'chartCode': 'USDJPY', 'country': None, 'valueOfOnePip': '100.00', 'onePipMeans': '0.01 JPY/USD', 'contractSize': '10000', 'specialInfo': ['DEFAULT KNOCK OUT LEVEL DISTANCE', 'MIN KNOCK OUT LEVEL DISTANCE', 'MAX KNOCK OUT LEVEL DISTANCE']}), 'dealingRules': Munch({'minStepDistance': Munch({'unit': 'POINTS', 'value': 5.0}), 'minDealSize': Munch({'unit': 'POINTS', 'value': 1.0}), 'minControlledRiskStopDistance': Munch({'unit': 'POINTS', 'value': 5.0}), 'minNormalStopOrLimitDistance': Munch({'unit': 'POINTS', 'value': 2.0}), 'maxStopOrLimitDistance': Munch({'unit': 'PERCENTAGE', 'value': 75.0}), 'controlledRiskSpacing': Munch({'unit': 'POINTS', 'value': 10.0}), 'marketOrderPreference': 'AVAILABLE_DEFAULT_OFF'}), 'snapshot': Munch({'marketStatus': 'TRADEABLE', 'netChange': -0.052, 'percentageChange': -0.03, 'updateTime': '08:55:09', 'delayTime': 0, 'bid': 156.133, 'offer': 156.143, 'high': 156.584, 'low': 155.358, 'binaryOdds': None, 'decimalPlacesFactor': 3, 'scalingFactor': 100, 'controlledRiskExtraSpread': 0.8})})

     

{'date': '2024-07-18T07:55:09.579', 'status': None, 'reason': 'ATTACHED_ORDER_LEVEL_ERROR', 'dealStatus': 'REJECTED', 'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': None, 'dealReference': '5LWU9RBTGP2TZEB', 'dealId': 'DIAAAAQAXUUN5AV', 'affectedDeals': [], 'level': None, 'size': None, 'direction': 'SELL', 'stopLevel': None, 'limitLevel': None, 'stopDistance': None, 'limitDistance': None, 'guaranteedStop': False, 'trailingStop': False, 'profit': None, 'profitCurrency': None}
----------------------------------------------------------------------------------------------------------------------- 

Munch({'instrument': Munch({'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': '-', 'name': 'USD/JPY Mini', 'forceOpenAllowed': True, 'stopsLimitsAllowed': True, 'lotSize': 100.0, 'unit': 'CONTRACTS', 'type': 'CURRENCIES', 'controlledRiskAllowed': True, 'streamingPricesAvailable': True, 'marketId': 'USDJPY', 'currencies': [Munch({'code': 'Y.', 'name': 'JPY', 'symbol': '¥', 'baseExchangeRate': 116.500885, 'exchangeRate': 0.007, 'isDefault': False})], 'marginDepositBands': [Munch({'min': 0, 'max': 634, 'margin': 5}), Munch({'min': 634, 'max': 3171, 'margin': 5}), Munch({'min': 3171, 'max': 5074, 'margin': 5}), Munch({'min': 5074, 'max': None, 'margin': 15})], 'margin': 5.0, 'slippageFactor': Munch({'unit': 'pct', 'value': 30.0}), 'openingHours': None, 'expiryDetails': None, 'rolloverDetails': None, 'newsCode': 'JPY=', 'chartCode': 'USDJPY', 'country': None, 'valueOfOnePip': '100.00', 'onePipMeans': '0.01 JPY/USD', 'contractSize': '10000', 'specialInfo': ['DEFAULT KNOCK OUT LEVEL DISTANCE', 'MIN KNOCK OUT LEVEL DISTANCE', 'MAX KNOCK OUT LEVEL DISTANCE']}), 'dealingRules': Munch({'minStepDistance': Munch({'unit': 'POINTS', 'value': 5.0}), 'minDealSize': Munch({'unit': 'POINTS', 'value': 1.0}), 'minControlledRiskStopDistance': Munch({'unit': 'POINTS', 'value': 5.0}), 'minNormalStopOrLimitDistance': Munch({'unit': 'POINTS', 'value': 2.0}), 'maxStopOrLimitDistance': Munch({'unit': 'PERCENTAGE', 'value': 75.0}), 'controlledRiskSpacing': Munch({'unit': 'POINTS', 'value': 10.0}), 'marketOrderPreference': 'AVAILABLE_DEFAULT_OFF'}), 'snapshot': Munch({'marketStatus': 'TRADEABLE', 'netChange': -0.041, 'percentageChange': -0.03, 'updateTime': '08:55:31', 'delayTime': 0, 'bid': 156.144, 'offer': 156.154, 'high': 156.584, 'low': 155.358, 'binaryOdds': None, 'decimalPlacesFactor': 3, 'scalingFactor': 100, 'controlledRiskExtraSpread': 0.8})})

    

{'date': '2024-07-18T07:55:31.558', 'status': 'AMENDED', 'reason': 'SUCCESS', 'dealStatus': 'ACCEPTED', 'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': '-', 'dealReference': 'P2VLVAB2JD6TZEB', 'dealId': 'DIAAAAQAXTM3KA6', 'affectedDeals': [{'dealId': 'DIAAAAQAXTM3KA6', 'status': 'AMENDED'}], 'level': 156.163, 'size': 20.0, 'direction': 'SELL', 'stopLevel': 156.763, 'limitLevel': 156.148, 'stopDistance': None, 'limitDistance': None, 'guaranteedStop': True, 'trailingStop': False, 'profit': None, 'profitCurrency': None}

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

Link to comment
  • 0
15 hours ago, Lovely_Trader_1 said:

@KoketsoIG noted, but if you could explain to me exactly what are those limits , where i can see the limits (available at epic level?) with the sample deal data that i have given in my earlier post , it will be really helpful for me to understand better and i can try to handle this scenario in my code properly to avoid getting such error... i am really looking forward for this as i am getting this error quite frequently ...

( given below is the epic level data that i got as well , but there are no much changes in these parameters during the rejection or success)

thanks so much in advance.

 

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

 Munch({'instrument': Munch({'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': '-', 'name': 'USD/JPY Mini', 'forceOpenAllowed': True, 'stopsLimitsAllowed': True, 'lotSize': 100.0, 'unit': 'CONTRACTS', 'type': 'CURRENCIES', 'controlledRiskAllowed': True, 'streamingPricesAvailable': True, 'marketId': 'USDJPY', 'currencies': [Munch({'code': 'Y.', 'name': 'JPY', 'symbol': '¥', 'baseExchangeRate': 116.49474, 'exchangeRate': 0.007, 'isDefault': False})], 'marginDepositBands': [Munch({'min': 0, 'max': 634, 'margin': 5}), Munch({'min': 634, 'max': 3171, 'margin': 5}), Munch({'min': 3171, 'max': 5074, 'margin': 5}), Munch({'min': 5074, 'max': None, 'margin': 15})], 'margin': 5.0, 'slippageFactor': Munch({'unit': 'pct', 'value': 30.0}), 'openingHours': None, 'expiryDetails': None, 'rolloverDetails': None, 'newsCode': 'JPY=', 'chartCode': 'USDJPY', 'country': None, 'valueOfOnePip': '100.00', 'onePipMeans': '0.01 JPY/USD', 'contractSize': '10000', 'specialInfo': ['DEFAULT KNOCK OUT LEVEL DISTANCE', 'MIN KNOCK OUT LEVEL DISTANCE', 'MAX KNOCK OUT LEVEL DISTANCE']}), 'dealingRules': Munch({'minStepDistance': Munch({'unit': 'POINTS', 'value': 5.0}), 'minDealSize': Munch({'unit': 'POINTS', 'value': 1.0}), 'minControlledRiskStopDistance': Munch({'unit': 'POINTS', 'value': 5.0}), 'minNormalStopOrLimitDistance': Munch({'unit': 'POINTS', 'value': 2.0}), 'maxStopOrLimitDistance': Munch({'unit': 'PERCENTAGE', 'value': 75.0}), 'controlledRiskSpacing': Munch({'unit': 'POINTS', 'value': 10.0}), 'marketOrderPreference': 'AVAILABLE_DEFAULT_OFF'}), 'snapshot': Munch({'marketStatus': 'TRADEABLE', 'netChange': -0.052, 'percentageChange': -0.03, 'updateTime': '08:55:09', 'delayTime': 0, 'bid': 156.133, 'offer': 156.143, 'high': 156.584, 'low': 155.358, 'binaryOdds': None, 'decimalPlacesFactor': 3, 'scalingFactor': 100, 'controlledRiskExtraSpread': 0.8})})

     

{'date': '2024-07-18T07:55:09.579', 'status': None, 'reason': 'ATTACHED_ORDER_LEVEL_ERROR', 'dealStatus': 'REJECTED', 'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': None, 'dealReference': '5LWU9RBTGP2TZEB', 'dealId': 'DIAAAAQAXUUN5AV', 'affectedDeals': [], 'level': None, 'size': None, 'direction': 'SELL', 'stopLevel': None, 'limitLevel': None, 'stopDistance': None, 'limitDistance': None, 'guaranteedStop': False, 'trailingStop': False, 'profit': None, 'profitCurrency': None}
----------------------------------------------------------------------------------------------------------------------- 

Munch({'instrument': Munch({'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': '-', 'name': 'USD/JPY Mini', 'forceOpenAllowed': True, 'stopsLimitsAllowed': True, 'lotSize': 100.0, 'unit': 'CONTRACTS', 'type': 'CURRENCIES', 'controlledRiskAllowed': True, 'streamingPricesAvailable': True, 'marketId': 'USDJPY', 'currencies': [Munch({'code': 'Y.', 'name': 'JPY', 'symbol': '¥', 'baseExchangeRate': 116.500885, 'exchangeRate': 0.007, 'isDefault': False})], 'marginDepositBands': [Munch({'min': 0, 'max': 634, 'margin': 5}), Munch({'min': 634, 'max': 3171, 'margin': 5}), Munch({'min': 3171, 'max': 5074, 'margin': 5}), Munch({'min': 5074, 'max': None, 'margin': 15})], 'margin': 5.0, 'slippageFactor': Munch({'unit': 'pct', 'value': 30.0}), 'openingHours': None, 'expiryDetails': None, 'rolloverDetails': None, 'newsCode': 'JPY=', 'chartCode': 'USDJPY', 'country': None, 'valueOfOnePip': '100.00', 'onePipMeans': '0.01 JPY/USD', 'contractSize': '10000', 'specialInfo': ['DEFAULT KNOCK OUT LEVEL DISTANCE', 'MIN KNOCK OUT LEVEL DISTANCE', 'MAX KNOCK OUT LEVEL DISTANCE']}), 'dealingRules': Munch({'minStepDistance': Munch({'unit': 'POINTS', 'value': 5.0}), 'minDealSize': Munch({'unit': 'POINTS', 'value': 1.0}), 'minControlledRiskStopDistance': Munch({'unit': 'POINTS', 'value': 5.0}), 'minNormalStopOrLimitDistance': Munch({'unit': 'POINTS', 'value': 2.0}), 'maxStopOrLimitDistance': Munch({'unit': 'PERCENTAGE', 'value': 75.0}), 'controlledRiskSpacing': Munch({'unit': 'POINTS', 'value': 10.0}), 'marketOrderPreference': 'AVAILABLE_DEFAULT_OFF'}), 'snapshot': Munch({'marketStatus': 'TRADEABLE', 'netChange': -0.041, 'percentageChange': -0.03, 'updateTime': '08:55:31', 'delayTime': 0, 'bid': 156.144, 'offer': 156.154, 'high': 156.584, 'low': 155.358, 'binaryOdds': None, 'decimalPlacesFactor': 3, 'scalingFactor': 100, 'controlledRiskExtraSpread': 0.8})})

    

{'date': '2024-07-18T07:55:31.558', 'status': 'AMENDED', 'reason': 'SUCCESS', 'dealStatus': 'ACCEPTED', 'epic': 'CS.D.USDJPY.CSM.IP', 'expiry': '-', 'dealReference': 'P2VLVAB2JD6TZEB', 'dealId': 'DIAAAAQAXTM3KA6', 'affectedDeals': [{'dealId': 'DIAAAAQAXTM3KA6', 'status': 'AMENDED'}], 'level': 156.163, 'size': 20.0, 'direction': 'SELL', 'stopLevel': 156.763, 'limitLevel': 156.148, 'stopDistance': None, 'limitDistance': None, 'guaranteedStop': True, 'trailingStop': False, 'profit': None, 'profitCurrency': None}

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

Dear @Lovely_Trader_1,

Thank you for your post.

Please note that our stops/limits automatically adjust based on the market/ volatility. Stops are usually indicated on the deal ticket and limits are not.

Thanks,

KoketsoIG

Please rate us on Trustpilot: IG Trustpilot 

Link to comment
  • 0
On 19/07/2024 at 15:28, KoketsoIG said:

Dear @Lovely_Trader_1,

Thank you for your post.

Please note that our stops/limits automatically adjust based on the market/ volatility. Stops are usually indicated on the deal ticket and limits are not.Thanks,

On 19/07/2024 at 15:28, KoketsoIG said:

Dear @Lovely_Trader_1,

Thank you for your post.

Please note that our stops/limits automatically adjust based on the market/ volatility. Stops are usually indicated on the deal ticket and limits are not.

Thanks,

KoketsoIG

@KoketsoIGok, i noted that you will only be providing generic replies, not examples to understand how these stops/limits are set to manage our deals in a better way...so not very helpful, but i will just leave it at this point in time, so this topic can be closed for now, thanks.

 

  • Like 1
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

    • after last weeks sell off'  a chart showing price in a possible discount & at a previous level of interest 
    • Solana ($SOL) is facing a challenging period in the market, with its price dropping to $130.56 USD. Here’s a closer look at what’s happening and what might be next for SOL. Recent Price Decline 15.17% Drop in a Month: Over the past month, Solana coin has fallen by 15.17%. This decline reflects the broader market’s pressure on the cryptocurrency. 8.5% Weekly Fall: Just this week, Solana saw an 8.5% drop, a sign that bears are firmly in control. Despite attempts to maintain a bullish outlook, the market seems to have different plans. Critical Support Levels Breakdown of $134 Support: Recently, SOL broke through the $134 support level, raising concerns that further declines could be on the way. Key Support at $122: The $122 level is now under the spotlight. This price point has been tested six times, and many whales view it as crucial. A break below this could push SOL towards $90. But if this support holds, it might set the stage for a bullish turnaround. $100 Support: While the $100 support level is still a bit distant, it’s essential to watch if the current bearish momentum continues. Revisiting this level could spell trouble for Solana. Changing Market Sentiment Shift to Bearish: The overall sentiment around Solana is slowly turning bearish. Since March, SOL has struggled to make new highs, and the current price action suggests that new lows could be coming. Potential Bullish Outcome: However, some analysts believe that if Solana manages to stay above $122 throughout 2024 and 2025, it could be incredibly bullish for the future, possibly leading to significant gains in 2025. Upcoming Breakpoint Event Historical Price Surges: There’s a potential catalyst on the horizon. Historically, Solana has seen price surges two weeks before its annual Breakpoint event. In previous years, SOL surged by 35% in 2021 and 2022, and by 60% in 2023. 2024 Event: With 16 days left until the 2024 Breakpoint event, could we see another rally? Only time will tell. The Importance of $122 Support As Solana approaches the $122 support level, all eyes are on whether it will hold. A break below could lead to further declines, while maintaining this support could bring back some bullish momentum. As always, stay informed, and remember the old adage in crypto: "buy the rumor, sell the news." Keep watching the charts as we near the 2024 Breakpoint event.  
    • One of the prominent cryptocurrency exchange, has maintained its commitment to user security through its Protection Fund. This self-insured fund, designed to safeguard user assets against potential threats such as hacks, fraud, and market volatility, has shown remarkable stability and growth. The fund has consistently maintained a value above $390 million, surpassing Bitget's initial commitment of $300 million. The exchange ability to continues to maintain a reserve ratio well above 150%, indicating a strong buffer against potential risks. The fund's value has shown correlation with Bitcoin's price movements, demonstrating its responsiveness to market conditions. Over the observed period, the fund's value peaked at $424.8 million and reached a low of $350.7 million, showcasing its ability to withstand market volatility while maintaining a substantial baseline. In February, the fund reached an all-time high valuation of over $543 million, coinciding with broader market uptrends. The Protection Fund's portfolio includes high-liquidity cryptocurrencies such as BTC, USDT, and USDC, which contributes to its stability and liquidity. This diversification strategy aims to mitigate risks associated with external market factors. Bitget's approach of self-funding and internally managing the Protection Fund allows for potentially quicker response times in critical situations, as it operates independently of external regulations and approvals. As the cryptocurrency market continues to evolve, the performance and management of such security measures will likely remain a point of interest for both users and industry observers.
×
×
  • Create New...
us