Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binance: PERCENT_PRICE does not map properties #4141

Open
ts-00 opened this issue Jun 26, 2021 · 0 comments
Open

Binance: PERCENT_PRICE does not map properties #4141

ts-00 opened this issue Jun 26, 2021 · 0 comments

Comments

@ts-00
Copy link
Contributor

ts-00 commented Jun 26, 2021

When using the xchange binance api to get the asset information via BinanceExchangeInfo and look for the PERCENT_PRICE filter, I get this

{
                "filterType": "PERCENT_PRICE",
                "maxPrice": null,
                "maxQty": null,
                "minNotional": null,
                "minPrice": null,
                "minQty": null,
                "stepSize": null,
                "tickSize": null
            },

However, according to official binance docs, there are the following properties:

{
  "filterType": "PERCENT_PRICE",
  "multiplierUp": "1.3000",
  "multiplierDown": "0.7000",
  "avgPriceMins": 5
}

How can I get those properties?

The same goes also for the other filter types (for example, MAX_POSITION)..the mappings between xchange binance api and official binance rest api is not complete..for example, is misses maxNumAlgoOrders, limit,..

"filters": [
            {
                "filterType": "PRICE_FILTER",
                "maxPrice": "1000.00000000",
                "maxQty": null,
                "minNotional": null,
                "minPrice": "0.00010000",
                "minQty": null,
                "stepSize": null,
                "tickSize": "0.00010000"
            },
            {
                "filterType": "PERCENT_PRICE",
                "maxPrice": null,
                "maxQty": null,
                "minNotional": null,
                "minPrice": null,
                "minQty": null,
                "stepSize": null,
                "tickSize": null
            },
            {
                "filterType": "LOT_SIZE",
                "maxPrice": null,
                "maxQty": "92141578.00000000",
                "minNotional": null,
                "minPrice": null,
                "minQty": "1.00000000",
                "stepSize": "1.00000000",
                "tickSize": null
            },
            {
                "filterType": "MIN_NOTIONAL",
                "maxPrice": null,
                "maxQty": null,
                "minNotional": "10.00000000",
                "minPrice": null,
                "minQty": null,
                "stepSize": null,
                "tickSize": null
            },
            {
                "filterType": "ICEBERG_PARTS",
                "maxPrice": null,
                "maxQty": null,
                "minNotional": null,
                "minPrice": null,
                "minQty": null,
                "stepSize": null,
                "tickSize": null
            },
            {
                "filterType": "MARKET_LOT_SIZE",
                "maxPrice": null,
                "maxQty": "34168.41597222",
                "minNotional": null,
                "minPrice": null,
                "minQty": "0.00000000",
                "stepSize": "0.00000000",
                "tickSize": null
            },
            {
                "filterType": "MAX_NUM_ORDERS",
                "maxPrice": null,
                "maxQty": null,
                "minNotional": null,
                "minPrice": null,
                "minQty": null,
                "stepSize": null,
                "tickSize": null
            },
            {
                "filterType": "MAX_NUM_ALGO_ORDERS",
                "maxPrice": null,
                "maxQty": null,
                "minNotional": null,
                "minPrice": null,
                "minQty": null,
                "stepSize": null,
                "tickSize": null
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant