adshao / go-binance

A Go SDK for Binance API
MIT License
1.49k stars 661 forks source link

Update exchange_info_service.go #365

Closed guotie closed 2 years ago

guotie commented 2 years ago

the api return multiplierDecimal is string, but the api doc is int

codecov[bot] commented 2 years ago

Codecov Report

Merging #365 (ed4f0f1) into master (dc74890) will decrease coverage by 0.04%. The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master     #365      +/-   ##
==========================================
- Coverage   71.68%   71.63%   -0.05%     
==========================================
  Files          64       64              
  Lines        6017     6022       +5     
==========================================
+ Hits         4313     4314       +1     
- Misses       1277     1279       +2     
- Partials      427      429       +2     
Impacted Files Coverage Δ
v2/futures/exchange_info_service.go 75.55% <33.33%> (-3.27%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update dc74890...ed4f0f1. Read the comment docs.

guotie commented 2 years ago
        {
            "symbol": "ETHUSDT",
            "pair": "ETHUSDT",
            "contractType": "PERPETUAL",
            "deliveryDate": 4133404800000,
            "onboardDate": 1569398400000,
            "status": "TRADING",
            "maintMarginPercent": "2.5000",
            "requiredMarginPercent": "5.0000",
            "baseAsset": "ETH",
            "quoteAsset": "USDT",
            "marginAsset": "USDT",
            "pricePrecision": 2,
            "quantityPrecision": 3,
            "baseAssetPrecision": 8,
            "quotePrecision": 8,
            "underlyingType": "COIN",
            "underlyingSubType": [
                "Layer-1"
            ],
            "settlePlan": 0,
            "triggerProtect": "0.0500",
            "liquidationFee": "0.012500",
            "marketTakeBound": "0.05",
            "filters": [
                {
                    "minPrice": "39.86",
                    "maxPrice": "306177",
                    "filterType": "PRICE_FILTER",
                    "tickSize": "0.01"
                },
                {
                    "stepSize": "0.001",
                    "filterType": "LOT_SIZE",
                    "maxQty": "10000",
                    "minQty": "0.001"
                },
                {
                    "stepSize": "0.001",
                    "filterType": "MARKET_LOT_SIZE",
                    "maxQty": "2000",
                    "minQty": "0.001"
                },
                {
                    "limit": 200,
                    "filterType": "MAX_NUM_ORDERS"
                },
                {
                    "limit": 10,
                    "filterType": "MAX_NUM_ALGO_ORDERS"
                },
                {
                    "notional": "5",
                    "filterType": "MIN_NOTIONAL"
                },
                {
                    "multiplierDown": "0.9500",
                    "multiplierUp": "1.0500",
                    "multiplierDecimal": "4",
                    "filterType": "PERCENT_PRICE"
                }
            ],
            "orderTypes": [
                "LIMIT",
                "MARKET",
                "STOP",
                "STOP_MARKET",
                "TAKE_PROFIT",
                "TAKE_PROFIT_MARKET",
                "TRAILING_STOP_MARKET"
            ],
            "timeInForce": [
                "GTC",
                "IOC",
                "FOK",
                "GTX"
            ]
        },