Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

HELP! "A rate limit for too many order request has been hit"

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

    HELP! "A rate limit for too many order request has been hit"

    Hi,

    Would be grateful for some practical workaround advice please.

    Today is the first day I have encountered the error message "A rate limit for too many order requests has been hit"

    I have an account with Ninjatrader brokerage. I also have multiple accounts with various prop firms including Apex, Tradeify, Purdia, etc.

    NT8 is running on a separate computer for each individual prior firm, linked together by Replikanto, and connected to the Internet via the same broadband connection.

    Today I opened a MES trade (on the master account) copied to the prop accounts, the trade opened without issue. However when I attempted to move an ATM take profit level (on the master account) I was presented with the error message "A rate limit for too many order requests has been hit" on all the prop accounts. I have never seen this before when trading.

    I had to manually flatten the position in the various prop accounts (not ideal).

    Is there any real world advice/tips to help minimise/prevent this error from appearing?

    For example, on the prop accounts I have closed down unnecessary charts/DOMs in case that makes a difference? I imagine logging in 60 mins before I intend to place a trade may help? Would connecting the individual laptops to the Internet via separate mobile phone WIFI/tethered connections help? Or am I barking up the wrong tree?

    Excuse my ignorance in such matters!

    Any advice gratefully received.​

    #2
    Hello quantyse_ntforum,

    Thank you for the message.

    The API limits being triggered can be caused by the following:
    • The maximum number of contracts per order is 100.
    • In a 60-minute timeframe, users can only initiate up to 5000 unique actions.
      • Placing, modifying, and canceling orders are each separate actions.
    • When trading with groups, every trade on each account is seen as a separate action.
      • Placing an order on 20 accounts will be counted as 20 distinct actions.
      • Once you've reached this limit, no actions can be taken.
    • This is tracked by IP Address and Username.
      • So, using multiple devices wouldn't allow you to circumvent the limit.

    When users have multiple accounts being grouped or copy traded, it is easier for a user to hit this limit.
    • If a user has an ATM Strategy with a Trailing Stop, this is a more common reason users hit this limit. Especially when the action is being replicated across multiple accounts.

    Unfortunately, there is no way to change or modify the Rate Limit for a single user as this is defined on an Organizational level.
    • The user would have to change their trading behavior to avoid hitting the limit moving forward.
    • These are defined at a specific value to ensure system stability and security and will not be changed.

    If you hit the "API Request Limit" message, please reach out to Support[AT]NinjaTrader[DOT]com and we can help you reset it.
    • CRITICAL — If your inquiry involves live orders, please always reach out to your broker or evaluation provider immediately to confirm and manage your live orders and positions.
      • Then, once you've managed the account with your Broker/Evaluation Provider, reach out to the NinjaTrader Support Team directly for further help.

    Please let us know if we may provide any further assistance.​​
    Last edited by NinjaTrader_Clayton; 03-10-2025, 12:12 PM. Reason: Removed line that was causing confusion.

    Comment


      #3
      Hi Clayton

      Thanks for the response. So I understand which rule I contravened, I need to ask some additional questions please.

      Q1. You say "The maximum number of contracts per order is 100". For the avoidance of doubt, does this mean per execution?

      For example, imagine I scale into a long MES position using 2x tranches. Each tranche comprises 90x MES contracts (across all my personal/prop accounts). At the end of building a position I am long 180 MES contracts (across all my personal/prop accounts). Given each of the two executions totalled only 90x MES, am I correct in thinking I have not contravened the rule "The maximum number of contracts per order is 100".

      Q2. Or do you mean the maximum number of contracts that can be open at any one time is 100? This seems unlikely as equates to only 10x ES?

      Thanks.

      Comment


        #4
        Hello quantyse_ntforum,

        Thank you for the update.

        To Clarify:
        • The maximum number of contracts per order is 100. If you trade in groups, the total number of contracts across all accounts cannot exceed 100 for the order.
          • After further investigation, it appears the 2nd half of the sentence is misleading and not relevant.
        It would be be best to just see the first bullet point as:
        • "The maximum number of contracts per order is 100.​"
          • I've made the change on the post above to avoid other users from reading it and being confused.
            • This is essentially repeating the Max Position limit that an instrument could have on 1 account.
            • Realistically, the actual position limit is different for each contract and could be much lower.

        So, if you placed a group trade on 20 accounts with 6 contracts each, that would result in 120 contracts across all accounts.
        • That wouldn't trigger the API Limit.
        • However, once you start using that many contracts at once, it is really easy to hit that 5,000 request limit fast.
          • 120 Contracts x 10 order modifications is already 1,200 actions
        If you keep hitting the limit, then you could reduce the number of accounts you are trading simultaneously to reduce your chances of hitting the limit, or modify your trading setup to move the orders less.

        Please let us know if we may provide any further assistance.

        Comment


          #5
          Hi Clayton

          Thanks for clarifying, most likely I'm contravening the 5,000 request limit.

          I will need to adjust my trading style accordingly (not ideal), any chance in the future the 5,000 limit could be increased?

          Comment


            #6
            Hello quantyse_ntforum,

            Thank you for the message.

            You are welcome to submit a feature request to increase the API Limit at the link below:
            Whether or not this is implemented is up to the IT, Development, and Security teams.


            Please let us know if we may provide any further assistance.

            Comment


              #7
              Hi Clayton

              You said "In a 60-minute timeframe, users can only initiate up to 5000 unique actions".

              Does the counter automatically reset by itself?

              Comment


                #8
                Hello quantyse_ntforum,

                Thank you for the message.

                I am double-checking on how the timer of the API Reset Interval works and will respond tomorrow once the rest of the team is back in and I can get some further insight.


                Thank you for your question and patience as I find a concrete answer!

                Comment


                  #9
                  Hello Quantyse_ntforum,

                  Thank you for your patience.

                  It's a rolling 60 minutes, so if the request limits are triggered, the limit will generally be removed an hour after being hit.

                  When you see a "Too Many Requests" message appear when you attempt to log into the Tradovate platform, see a blank workspace, cannot place / modify an order, or exit a position, please call the Tradovate support line immediately: 312-283-3100
                  • Let us know of this issue and provide your username so can reset the request limits for your user.
                  • Or, send us this information and what is happening in an email to Support[AT]NinjaTrader[DOT]com

                  A Request is a ping to our server, which can involve anything from logging into the Tradovate platform, opening modules, and placing / modifying orders.
                  We have limits in place to protect us and our servers from receiving too many requests in a short period of time.

                  Otherwise, if the Limit is Triggered, your Request Limit will reset itself after a sixty-minute cool-down period.

                  Please let us know if we may provide any further assistance.​

                  Comment


                    #10
                    Originally posted by quantyse_ntforum View Post
                    Hi,

                    Would be grateful for some practical workaround advice please.

                    Today is the first day I have encountered the error message "A rate limit for too many order requests has been hit"

                    I have an account with Ninjatrader brokerage. I also have multiple accounts with various prop firms including Apex, Tradeify, Purdia, etc.

                    NT8 is running on a separate computer for each individual prior firm, linked together by Replikanto, and connected to the Internet via the same broadband connection.

                    Today I opened a MES trade (on the master account) copied to the prop accounts, the trade opened without issue. However when I attempted to move an ATM take profit level (on the master account) I was presented with the error message "A rate limit for too many order requests has been hit" on all the prop accounts. I have never seen this before when trading.

                    I had to manually flatten the position in the various prop accounts (not ideal).

                    Is there any real world advice/tips to help minimise/prevent this error from appearing?

                    For example, on the prop accounts I have closed down unnecessary charts/DOMs in case that makes a difference? I imagine logging in 60 mins before I intend to place a trade may help? Would connecting the individual laptops to the Internet via separate mobile phone WIFI/tethered connections help? Or am I barking up the wrong tree?

                    Excuse my ignorance in such matters!

                    Any advice gratefully received.​
                    I've got the same thing with multiple Tradovate accounts from Apex, Tradeify, My Funded Futures, etc. I found the problem is the rate limit is based on the IP address, it's your IP that is being rate limited. So even though you are using separate computers, they all share the same internet and it's your IP that is being rate limited so it doesn't matter if you're using different computers or the same computer.

                    What I did to solve this problem is I got additional vps from ninjamobiletrader, each with their own residential unique ip address. Then I split up all my Tradovate prop accounts across the multiple ninjamobiletraders and can be connected to all them at the same time in multiple remote desktop windows which I arrange across my multiple monitors. With this setup, I'm never getting hit by the rate limits anymore, and I place a single trade and their local network trade copying system trade copies it to all of my multiple prop accounts.

                    Comment


                      #11
                      Hi backtester831

                      Thanks for the fab advice.​ Any idownsides with the VPS route? e.g. Lag, speed that orders get filled, prop firms losing their data connections? Thanks.​

                      Comment


                        #12
                        Hi backtester831

                        Do you use Repliankto to copy trades between your various NT accounts? Thanks.​​

                        Comment


                          #13
                          Originally posted by quantyse_ntforum View Post
                          Hi backtester831

                          Do you use Repliankto to copy trades between your various NT accounts? Thanks.​​
                          Oh yes, I'm heavily dependent on Replikanto and have multiple vps with ninjamobiletrader. They created a local network for me, so each vps has it's own unique IP address and I use the local network copy mode in Replikanto to copy trades between all my Rithmic, Tradovate and NinjaTrader accounts on the multiple vps. It's the only way I've been able to efficiently copy trade multi prop firms and minimize reliance and payout risk on any individual prop firm.

                          The speed and order fills with NinjaMobileTrader have been fantastic because they are in Chicago, so I get way less slippage than I ever did compared to running it locally, and the data connection has been solid, never get disconnections. I always recommend NinjaMobileTrader to everyone that asks, especially if someone tried vps from cheaper companies before and had any problems like losing data connection, switching to them will fix it because it's a totally different experience.

                          Comment


                            #14
                            Hi backtester831

                            I need to switch to VPS then, as my various props keep losing their data conntection to NT.

                            Regarding your Master NT Account for Replikanto,I am guessing it is also on a VPS?

                            Comment


                              #15
                              Hello backtester831. Can I send you a message through here to discuss the option you recommended. I am also having rate limits errors.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by abelsheila, 05-14-2025, 07:38 PM
                              2 responses
                              34 views
                              0 likes
                              Last Post hglover945  
                              Started by nailz420, 05-14-2025, 09:14 AM
                              1 response
                              73 views
                              0 likes
                              Last Post NinjaTrader_ChristopherJ  
                              Started by NinjaTrader_Brett, 05-12-2025, 03:19 PM
                              0 responses
                              353 views
                              1 like
                              Last Post NinjaTrader_Brett  
                              Started by domjabs, 05-12-2025, 01:55 PM
                              2 responses
                              67 views
                              0 likes
                              Last Post domjabs
                              by domjabs
                               
                              Started by Morning Cup Of Trades, 05-12-2025, 11:50 AM
                              1 response
                              87 views
                              0 likes
                              Last Post NinjaTrader_ChristopherJ  
                              Working...
                              X