From aa865aa38a928703ed273bcc894d61a429d2fcd9 Mon Sep 17 00:00:00 2001 From: msincenselee Date: Fri, 27 Aug 2021 11:30:34 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E9=99=90=E6=B5=81=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/gateway/binancef/binancef_gateway.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vnpy/gateway/binancef/binancef_gateway.py b/vnpy/gateway/binancef/binancef_gateway.py index f27cc724..bd7d7003 100644 --- a/vnpy/gateway/binancef/binancef_gateway.py +++ b/vnpy/gateway/binancef/binancef_gateway.py @@ -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