From 5a1adf2accbb0746bf0f3df01792c55a0de20291 Mon Sep 17 00:00:00 2001 From: 1122455801 Date: Mon, 17 Jun 2019 15:45:49 +0800 Subject: [PATCH] Update binance_gateway.py --- vnpy/gateway/binance/binance_gateway.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vnpy/gateway/binance/binance_gateway.py b/vnpy/gateway/binance/binance_gateway.py index b3454d71..f5b96718 100644 --- a/vnpy/gateway/binance/binance_gateway.py +++ b/vnpy/gateway/binance/binance_gateway.py @@ -437,14 +437,14 @@ class BinanceRestApi(RestClient): quote_currency = d["quoteAsset"] name = f"{base_currency.upper()}/{quote_currency.upper()}" - pricetick = 0 - min_volume = 0 + pricetick = 1 + min_volume = 1 for f in d["filters"]: if f["filterType"] == "PRICE_FILTER": - pricetick = f["tickSize"] + pricetick = float(f["tickSize"]) elif f["filterType"] == "LOT_SIZE": - min_volume = f["stepSize"] + min_volume = float(f["stepSize"]) contract = ContractData( symbol=d["symbol"],