51bitquant / binance_grid_trader

Binance_grid_trader is a grid strategy bot trading with Binance Spot and Binance Futures Exchange. you can use it to trade any pair in Binance Exchange. Binance_grid_trader是一个币安网格策略软件, 目前支持币安现货,USDT合约和币币合约。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter failure: PRICE_FILTER

cleitondm opened this issue · comments

error

bid_price: 17984.08, ask_price: 17984.09
buy orders: []

sell orders: []
{'code': -1013, 'msg': 'Filter failure: PRICE_FILTER'} 400
{'code': -1013, 'msg': 'Filter failure: PRICE_FILTER'} 400
{'code': -1013, 'msg': 'Filter failure: PRICE_FILTER'} 400
{'code': -1013, 'msg': 'Filter failure: PRICE_FILTER'} 400
{'code': -1013, 'msg': 'Filter failure: PRICE_FILTER'} 400
{'code': -1013, 'msg': 'Filter failure: PRICE_FILTER'} 400
{'code': -1013, 'msg': 'Filter failure: PRICE_FILTER'} 400
{'code': -1013, 'msg': 'Filter failure: PRICE_FILTER'} 400
{'code': -1013, 'msg': 'Filter failure: PRICE_FILTER'} 400
{'code': -1013, 'msg': 'Filter failure: PRICE_FILTER'} 400

config

"platform": "binance_future",
"symbol": "BTCUSDT",
"api_key": "....",
"secret": "...",
"gap_percent": 0.020,
"quantity": 20,
"min_price": 0.001,
"min_qty": 0.01,
"max_orders": 10
}

it's obvious that your config was not correct. In Binance Exchange, the min_price for symbol BTCUSDT is 0.01, you can check it in website or app.

i am having the same issue
bid_price: 512.48, ask_price: 512.49, 时间: 2020-11-20 19:03:10.552159
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
没有买单,根据盘口下买单: None, 时间: 2020-11-20 19:03:12.014032
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
没有卖单,根据盘口下卖单:None , 时间: 2020-11-20 19:03:13.547160

"plataforma": "binance_future",
"símbolo": "BTCUSDT",
"api_key": "....",
"segredo": "...",
"gap_percent": 0,020,
"quantidade": 20,
" min_price ": 0,01,
" min_qty ": 0,01,
" max_orders ": 10
}

error =(

found the solution change this "quantity": 20, to a smaller one

i am having the same issue
bid_price: 512.48, ask_price: 512.49, 时间: 2020-11-20 19:03:10.552159
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
没有买单,根据盘口下买单: None, 时间: 2020-11-20 19:03:12.014032
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
请求没有成功: 400, 继续尝试请求
没有卖单,根据盘口下卖单:None , 时间: 2020-11-20 19:03:13.547160

你的请求发生了400的错误,检查下你的网络,需要翻墙。记得设置全局。
it's obvious that you encounter the bad connection by firewall.

found the solution change this "quantity": 20, to a smaller one

the config file details:

  1. platform, trading platform, place 'binance_spot' or 'binance_future', default is binance_spot, if you want to trade future, replace it with 'binance_future'

  2. symbol: BTCUSDT, BNBUSDT etc.

  3. api_key : api key, get it from binance website

  4. api_secret: api secret, get it from binance website

  5. gap_percent: price gap for each order, or profit

  6. quantity : trading quantity

  7. min_price: price filter, for BTCUSDT is 0.01, for BNBUSDT is 0.0001, check it from binance market depth

  8. min_qty: the minimum trading volume , for spot market the min volume is 10USDT equivalent order , for future, the BTCUSDT is 0.001 btc.

  9. max_orders: number of order for one side(sell or buy)

I see that you have made good changes.
more when using the futures market it always returns the message
The request was unsuccessful: 400, Keep trying to request

Error current
{'code': -4061, 'msg': "Order's position side does not match user's setting."}

Just don't know how to fix see

https://dev.binance.vision/t/enable-hedge-mode-on-futures-api/59

Error current
{'code': -4061, 'msg': "Order's position side does not match user's setting."}

Just don't know how to fix see

https://dev.binance.vision/t/enable-hedge-mode-on-futures-api/59

The code for the future not support the dual position, only support the net position. You can set your position to net position or you can modify the binance_future.py for dual position. Remember to download the latest code.

Erro atual
{'code': -4061, 'msg': "O lado da posição do pedido não corresponde à configuração do usuário."}
Só não sei como consertar, veja
https://dev.binance.vision/t/enable-hedge-mode-on-futures-api/59

O código para o futuro não suporta a posição dupla, apenas suporta a posição líquida. Você pode definir sua posição para posição líquida ou pode modificar o binance_future.py para posição dupla. Lembre-se de baixar o código mais recente.

I'm just running your codigonofofmodifications。
need to change something in binace?

Solution 👍

def change_positionSide(self):
path = "/fapi/v1/positionSide/dual"
params = {"dualSidePosition": "False", "timestamp": self._timestamp()}

    return self.request(RequestMethod.POST, path=path, requery_dict=params, verify=True)

Solution 👍

def change_positionSide(self):
    path = "/fapi/v1/positionSide/dual"
    params = {"dualSidePosition": "False", "timestamp": self._timestamp()}

    return self.request(RequestMethod.POST, path=path, requery_dict=params, verify=True)

yes, that is the same as in the website, you can close the dual position through website or api.