Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetAtmStrategyMarketPositon method error: ATM strategy ID does not exist

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    GetAtmStrategyMarketPositon method error: ATM strategy ID does not exist

    I created a strategy and it works it well but I get GetAtmStrategyMarketPositon method error: ATM strategy ID does not exist once in a while.

    Do I put a try catch to get rid of this error?

    If this error happens my strategy still runs but it will not continue set up my pending orders

    #2
    Hello ballboy11,

    Thanks for your post.

    How you would like to deal with the error would be subjective to your strategy and how it is written. Some questions that may be relevant while you take debugging steps:
    • What circumstances lead the strategy to report that this ID did not exist?
    • Was this ID different than the ID used to generate the Atm strategy?

    Adding prints for the AtmStrategyID's that you create, use and reference can help you track down what ID is being sent to the method which fires the error.

    When I test our bundled SampleAtmStrategy, I don't encounter such errors. I'd recommend referencing this strategy for a working example that may provide further direction. Specifically, please note how this strategy uses "atmStrategyId" and "isAtmStrategyCreated."

    This code is openly available. I would also advise testing this strategy along side your strategy and then to model this strategy's behavior in your own works before changing the implementation.

    Please let us know if you have any additional questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X