Comments (12)
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.
from binance_grid_trader.
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
from binance_grid_trader.
"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 =(
from binance_grid_trader.
found the solution change this "quantity": 20, to a smaller one
from binance_grid_trader.
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.
from binance_grid_trader.
found the solution change this "quantity": 20, to a smaller one
the config file details:
-
platform, trading platform, place 'binance_spot' or 'binance_future', default is binance_spot, if you want to trade future, replace it with 'binance_future'
-
symbol: BTCUSDT, BNBUSDT etc.
-
api_key : api key, get it from binance website
-
api_secret: api secret, get it from binance website
-
gap_percent: price gap for each order, or profit
-
quantity : trading quantity
-
min_price: price filter, for BTCUSDT is 0.01, for BNBUSDT is 0.0001, check it from binance market depth
-
min_qty: the minimum trading volume , for spot market the min volume is 10USDT equivalent order , for future, the BTCUSDT is 0.001 btc.
-
max_orders: number of order for one side(sell or buy)
from binance_grid_trader.
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
from binance_grid_trader.
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
from binance_grid_trader.
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.
from binance_grid_trader.
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/59O 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?
from binance_grid_trader.
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)
from binance_grid_trader.
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.
from binance_grid_trader.
Related Issues (20)
- biniance future HOT 3
- Backtesting and profit trailing support HOT 1
- Invalid API key HOT 3
- Error 400 on binance_future HOT 2
- Need to update language HOT 3
- Missing gatewayModule HOT 2
- Illegal characters found in parameter 'price' HOT 3
- Error Code -2011 Unknown Order Sent HOT 6
- poloniex HOT 1
- Nice work HOT 19
- api format error (run from main_spot_script.py) HOT 1
- hedge mode support
- spot_grid_strategy.py HOT 1
- INFO: Order Failed,Code: 400, Msg:{"code":-4014,"msg":"Price not increased by tick size."}
- Subscribe Market Data Failed,Symbol Not Found...
- Need more webhook feature to create and close strategy via https request
- Size of spread on buy and sell HOT 1
- Other Exchanges
- Unresolved attribute reference 'get_contract' for class MainEngine
- 这个有止损功能就好了 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binance_grid_trader.