Giter Site home page Giter Site logo

51bitquant / binance_grid_trader Goto Github PK

View Code? Open in Web Editor NEW
722.0 27.0 252.0 1007 KB

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合约和币币合约。

License: MIT License

Python 100.00%
grid-strategy okex okex-api binance binance-api binance-exchange grid trading-strategies algo-trading algorithms

binance_grid_trader's People

Contributors

49bitquant avatar 51bitquant avatar ricardospinoza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

binance_grid_trader's Issues

Error Code -2011 Unknown Order Sent

Hello I used the same config as the sample:

{
"platform": "binance_spot",
"symbol": "ETHUSDT",
"gap_percent": 0.005,
"quantity": 0.001,
"max_orders": 1,
"proxy_host": "",
"proxy_port": 0
}

To test functionality, but I get message saying {'code': -2011, 'msg': 'Unknown order sent.'} 400.

Nice work

But COINM not connecting.. is it work?

2022-05-29 03:01:26,242 INFO: dotusd_perpetual: Could Not Find The Symbol:dotusd_perpetual.BINANCE, Please Connect the Api First.

im tried to connect a lot of times

Backtesting and profit trailing support

Hi
Just discovered this piece of software. I was wondering if it is possible to do backtesting before deploying the bot and if it supports profit trailing.

Size of spread on buy and sell

Can u make strategy which dynamicly resize orders-spread if candle resizing.

so. if candles at the moment goes bigger - makes spread bigger etc

什么时候会买入?

bid_price: 0.058734, ask_price: 0.058919
buy orders: []

sell orders: []
{'code': -1013, 'msg': 'Invalid quantity.'} 400
{'code': -1013, 'msg': 'Invalid quantity.'} 400
{'code': -1013, 'msg': 'Invalid quantity.'} 400
{'code': -1013, 'msg': 'Invalid quantity.'} 400
{'code': -1013, 'msg': 'Invalid quantity.'} 400
{'code': -1013, 'msg': 'Invalid quantity.'} 400
{'code': -1013, 'msg': 'Invalid quantity.'} 400
{'code': -1013, 'msg': 'Invalid quantity.'} 400
{'code': -1013, 'msg': 'Invalid quantity.'} 400
{'code': -1013, 'msg': 'Invalid quantity.'} 400
bid_price: 0.058918, ask_price: 0.058997

Other Exchanges

Hi,
Can this be edited to run on other exchanges? i.e. Kucoin etc. Thanks

poloniex

can you add poloniex exchange?

Missing gatewayModule

no gatewayModule error when trying to use the binance grid stuff. I couldn't find it anywhere either
image
grid

spot_grid_strategy.py

Hi Great Work,
I have two questions about.

36 # the strategy will stop when the price break the upper/bottom price, if you set the close_position when stop True,
37 # it will automatically close your position.

Where can I find this config setting close_position ?
Is it true that the upper limit will be ignored and future buy's will be submitted ?

Kind Regards.

Closed because...
Learned Python and made the changes myself in the code.

Error 400 on binance_future

没有买单,根据盘口下买单: None, 时间: 2021-05-25 05:40:20.990356
请求没有成功: 400, 继续尝试请求

Subscribe Market Data Failed,Symbol Not Found...

Hi, this error occured after init:
futures_02: Subscribe Market Data Failed,Symbol Not Found btcbusd.BINANCE
spot_sucesso: Subscribe Market Data Failed,Symbol Not Found BTCBUSD.BINANCE

how to resolved?

new functions: 增加功能

New functions:

  1. add the proxy host and port, 增加了代理主机和端口

if you want to use it locally and encounter connection timeout, you can config the proxy host and port at config.json, the default value is None.
如果你想再本地电脑运行,经常遇到连接错误或者网络请求错误,你可以在config.json文件配置上你的代理主机和端口, 默认是没有配置的。

Filter failure: PRICE_FILTER

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
}

Invalid API key

I have created a testing account on Binance and I am getting this message

error {'code': -2015, 'msg': 'Invalid API-key, IP, or permissions for action.'} 401.
Does it mean that the programme can only be used with 'real' account or has Binance change their requirements? Anyone tested it recently.

Thanks in advance

error

{
"platform": "binance_spot",
"symbol": "XLMETH",
"api_key": "",
"api_secret": "",
"gap_percent": 0.01,
"quantity": 1,
"min_price": 0.01,
"min_qty": 0.01,
"max_orders": 1,
"proxy_host": "",
"proxy_port": 0
}

{'code': -1013, 'msg': 'Invalid price.'} 400
{'code': -1013, 'msg': 'Invalid price.'} 400
{'code': -1013, 'msg': 'Invalid price.'} 400
{'code': -1013, 'msg': 'Invalid price.'} 400
{'code': -1013, 'msg': 'Invalid price.'} 400
{'code': -1013, 'msg': 'Invalid price.'} 400
{'code': -1013, 'msg': 'Invalid price.'} 400
{'code': -1013, 'msg': 'Invalid price.'} 400
{'code': -1013, 'msg': 'Invalid price.'} 400
{'code': -1013, 'msg': 'Invalid price.'} 400

I always get lost in values

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.