Query QT at most 3 quotes/sec to avoid rate limits

kivy_mainline_and_py3.8
Tyler Goodlet 2018-03-21 17:28:26 -04:00
parent 933fe980c1
commit 200526da8a
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ log = get_logger('questrade')
_refresh_token_ep = 'https://login.questrade.com/oauth2/' _refresh_token_ep = 'https://login.questrade.com/oauth2/'
_version = 'v1' _version = 'v1'
_rate_limit = 3 # queries/sec
class QuestradeError(Exception): class QuestradeError(Exception):