From 200526da8adcc584b4af60d40272c58fc7ca89e3 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 21 Mar 2018 17:28:26 -0400 Subject: [PATCH] Query QT at most 3 quotes/sec to avoid rate limits --- piker/brokers/questrade.py | 1 + 1 file changed, 1 insertion(+) diff --git a/piker/brokers/questrade.py b/piker/brokers/questrade.py index 034ecd24..312b2fa9 100644 --- a/piker/brokers/questrade.py +++ b/piker/brokers/questrade.py @@ -21,6 +21,7 @@ log = get_logger('questrade') _refresh_token_ep = 'https://login.questrade.com/oauth2/' _version = 'v1' +_rate_limit = 3 # queries/sec class QuestradeError(Exception):