[update] 限流控制

This commit is contained in:
msincenselee 2021-08-27 11:30:34 +08:00
parent 37ae0134b0
commit aa865aa38a

View File

@ -9,6 +9,7 @@ import time
import json
from copy import copy
from datetime import datetime, timedelta
from time import sleep
from enum import Enum
from threading import Lock
from typing import Dict, List
@ -814,7 +815,7 @@ class BinancefRestApi(RestClient):
# Update start time
start_dt = bar.datetime + TIMEDELTA_MAP[req.interval]
start_time = int(datetime.timestamp(start_dt))
sleep(0.1)
return history