If it is the first time to use the program, you can just run it directly. If you have been using it for a while, when downloading the new version of the program, you can directly place the old database file in the
db
directory and then run the program.
dingding, slack
I am not responsible for anything done with this bot.
You use it at your own risk.
There are no warranties or guarantees expressed or implied.
You assume all responsibility and liability.
- Futures Trade
- Futures Trade Order
- New Coin Rush
- Coin Notice
- Market Listen
- Funding Rate
- System Config
- Independent configuration for each coin
- custom strategy
- Order history (revenue is estimated based on orders placed, without a Binance query interface, and may differ slightly from actual revenue)
- app.conf
# Remember not to use single quotes, only double quotes or no quotes, comments need to be on a separate line
appname = binance_futures
# zh, en
language = en
log = 1
debug = 0
[binance]
api_key = ""
api_secret = ""
# Local proxy (if not needed to be changed to "")
proxy_url = "http://127.0.0.1:7890"
[web]
# web port
port = 3333
# index path
index = zmkm
# jwt key
secret_key = 12321
# username
username = admin
# password
password = admin
# expires hours
expires = 24
# restart command
commend_start = pm2 restart binance_futures
# stop command
commend_stop = pm2 stop binance_futures
# log command
commend_log = pm2 log binance_futures
[notification]
# dingding, slack
channel = dingding
[dingding]
# token
dingding_token = ""
# trigger keywords
dingding_word = "报警"
[slack]
slack_token = ""
slack_channel_id = ""
[external]
# external links
links = [{"url": "url1", "title": "title1"}]
- The network must be located outside the mainland (as the Binance interface cannot be accessed normally in mainland China). The proxy configuration for Binance API has been added (websocket has no proxy configuration due to component usage issues, and is only used to update the latest contract currency prices in the background). If there are available proxies, they can also be used normally -Apply for api_key address: [Binance API Management Page]( https://www.binance.com/cn/usercenter/settings/api-management )
- If your account already has contract positions, please be sure to exclude coins that you do not want to use this program for automatic trading on index page. Otherwise, all positions will be automatically closed according to the trading strategy rules by default
- !!! Please note that after modifying the app.cnf configuration, the program must be restarted, otherwise the configuration will not take effect!!! -Please ensure that your account has sufficient USDT, otherwise placing an order will result in an error
- Do not exceed 20 notifications within 1 minute of DingTalk push, otherwise the IP address will be blocked for a period of time and the push will not be successful -Adjusting too many parameters (such as using multiple combinations of functions under the same IP) may cause the Binance API request frequency to exceed the limit and disable the IP for a period of time
in https://github.com/sorry510/go_binance_futures/releases page download or use
golang
compile
cp conf/app.conf.example conf/app.conf
!!!Please note that after modifying the
app.conf
configuration, the program must be restarted, otherwise the configuration will not take effect!!!
./go_binance_futures
access address: http://ip:host/zmkm/index.html# The IP is the deployment server IP, and the port is the web. port in app.cnf The login account password is the
web.username
andweb.password
in theapp.conf
file
Refer to the 'futuress/rate' folder
description of the futures-trade list button (optional, used for restarting after modifying the configuration)
will run
web.commend_start
will run
web.commend_stop
open all futures coin
close all futures coin
coin | trade_type | coin_type | usdt | step_size | enable |
---|---|---|---|---|---|
ABCUSDT | buy | spot | 10 | 0.1(if you don't know, please fill in 0) | open |
ps:Binance has a minimum transaction limit, and if the quantity is too small (such as 5 USDT), it cannot be conducted
coin | trade_type | coin_type | step_size | amount | enable |
---|---|---|---|---|---|
ABCUSDT | sell | spot | 0.1(if you don't know, please fill in 0) | 80(Quantity of mining income) | open |
coin | trade_type | coin_type | margin_type | usdt | leverage | step_size | enable |
---|---|---|---|---|---|---|---|
ABCUSDT | buy_long | futures | ISOLATED or CROSSED | 10 | 3 | 0.1(if you don't know, please fill in 0) | open |
coin | trade_type | coin_type | margin_type | usdt | leverage | step_size | enable |
---|---|---|---|---|---|---|---|
ABCUSDT | buy_short | futures | ISOLATED or CROSSED | 10 | 3 | 0.1(if you don't know, please fill in 0) | open |
install golang
futures/strategy/line/technology.go
cp ./conf/app.conf.example app.conf
Remember to add
GOPAT/bin
to the environment variablePATH
, otherwise thebee
command cannot be used globally Usego env GOPATH
to view theGOPATH
path
go install github.com/beego/bee/v2@latest
go mod tidy
bee run
bee pack -be GOOS=windows