original_docstring: 
          Check if rate limit is reached before sending out requests.
          
docstring: Check if rate limit is reached before sending out requests.
docstring_tokens: Check if rate limit is reached before sending out requests .
code: def check_rate_limit(self):
          """
          Check if rate limit is reached before sending out requests.
          """
          # Already received 429 from server
          if self.rate_limit_sleep:
              msg = f"请求过于频繁，已被BitMEX限制，请等待{self.rate_limit_sleep}秒后再试"
              self.gateway.write_log(msg)
              return False
          # Just local request limit is reached
          elif not self.rate_limit_remaining:
              msg = "请求频率太高，有触发BitMEX流控的风险，请稍候再试"
              self.gateway.write_log(msg)
              return False
          else:
              self.rate_limit_remaining -= 1
              return True
code_tokens: def check_rate_limit ( self ) : if self . rate_limit_sleep : msg = f"请求过于频繁，已被BitMEX限制，请等待{self.rate_limit_sleep}秒后再试" self . gateway . write_log ( msg ) return False elif not self . rate_limit_remaining : msg = "请求频率太高，有触发BitMEX流控的风险，请稍候再试" self . gateway . write_log ( msg ) return False else : self . rate_limit_remaining -= 1 return True
short_docstring: Check if rate limit is reached before sending out requests.
short_docstring_tokens: Check if rate limit is reached before sending out requests .
comment: """
          Check if rate limit is reached before sending out requests.
          """$SEP$# Already received 429 from server$SEP$# Just local request limit is reached