Merge pull request #1842 from 1122455801/binance_mod_0617

[Mod] binance_gateway
This commit is contained in:
vn.py 2019-06-18 23:35:57 +08:00 committed by GitHub
commit 287448c611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"],