Giter VIP home page Giter VIP logo

Comments (12)

51bitquant avatar 51bitquant commented on May 18, 2024

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.

Pat2018-1 avatar Pat2018-1 commented on May 18, 2024

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.

cleitondm avatar cleitondm commented on May 18, 2024

"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.

Pat2018-1 avatar Pat2018-1 commented on May 18, 2024

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

from binance_grid_trader.

51bitquant avatar 51bitquant commented on May 18, 2024

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.

51bitquant avatar 51bitquant commented on May 18, 2024

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)

from binance_grid_trader.

cleitondm avatar cleitondm commented on May 18, 2024

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.

cleitondm avatar cleitondm commented on May 18, 2024

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.

51bitquant avatar 51bitquant commented on May 18, 2024

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.

cleitondm avatar cleitondm commented on May 18, 2024

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?

from binance_grid_trader.

cleitondm avatar cleitondm commented on May 18, 2024

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.

51bitquant avatar 51bitquant commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.