diff --git a/vnpy/data/binance/binance_future_data.py b/vnpy/data/binance/binance_future_data.py index f37aa7f7..f6c7f8ef 100644 --- a/vnpy/data/binance/binance_future_data.py +++ b/vnpy/data/binance/binance_future_data.py @@ -4,6 +4,7 @@ import os import json from typing import Dict, List, Any from datetime import datetime, timedelta +from time import sleep from vnpy.api.rest.rest_client import RestClient from vnpy.trader.object import ( Interval, @@ -150,6 +151,9 @@ class BinanceFutureData(RestClient): start_dt = end + TIMEDELTA_MAP[req.interval] * req.interval_num start_time = int(datetime.timestamp(start_dt)) + # 等待0.1秒 + sleep(0.1) + return bars def get_fund_rate(self, symbol=""):