A muti pairs martingle trading bot for Binance exchange.

Overview

multi_pairs_martingle_bot English Documentation

A muti pairs martingle trading bot for Binance exchange.

Configuration

 {
  "platform": "binance_future",
  "api_key": "xxxx",
  "api_secret": "xxxxx",
  "max_pairs": 4,
  "pump_pct": 0.026,
  "pump_pct_4h": 0.045,
  "initial_trade_value": 200,
  "trade_value_multiplier": 1.5,
  "increase_pos_when_drop_down": 0.05,
  "exit_profit_pct": 0.01,
  "profit_pull_back_pct": 0.01,
  "trading_fee": 0.0004,
  "max_increase_pos_count": 5,
  "turnover_threshold": 100000,
  "blocked_lists": [
    "BTCUSDT",
    "ADAUSDT"
  ],
  "allowed_lists": [],
  "proxy_host": "",
  "proxy_port": 0
}


  1. platform: binance_future for Binance Future Exchange, binance_spot for Binance Spot Exchange

  2. api_key: api key from Binance exchange api key

  3. api_secret: api secret from Binance exchange.

  4. max_pairs: the max number of pair you want to trade.

  5. pump_pct: the price will jump pct in one hour.

  6. initial_trade_value: the first order you want to trade.

  7. increase_pos_when_drop_down: after entering a position, you want to increase your position when the price go down some percentage.

  8. exit_profit_pct: exit your position when you get profit.

  9. profit_pull_back_pct: pull back

  10. trading_fee: trading fee rate.

  11. max_increase_pos_count: how many times you want to increase your positions

  12. turnover_threshold: the pair's trading value should be over this value, the default value is 100,000 USDT.

  13. blocked_lists: if you don't want to trade the symbols/pairs, put it here likes ['XMLUSDT', 'XRPUSDT'],

  14. allowed_lists: if you only want to trade some specific pairs, put it here, like : ['BTCUSDT', 'ETHUSDT', 'ADAUSDT', 'BNBUSDT']

  15. proxy_host: proxy host ip location like '132.148.123.22'

  16. proxy_port: proxy port like : 8888, 9999 ect.

how-to use

  1. just config your config.json file, past your api key and secret from Binance, and modify your settings in config.json file.
  2. run the main.py file, or you can use shell script by sh start.sh

contact me

Wechat: bitquant51

强势币多交易对马丁策略机器人

多个交易对的马丁格尔策略。可以在币安上交易现货或者合约。

###配置文件

 {
  "platform": "binance_future",
  "api_key": "xxxx",
  "api_secret": "xxxxx",
  "max_pairs": 4,
  "pump_pct": 0.03,
  "initial_trade_value": 500,
  "trade_value_multiplier": 1.3,
  "increase_pos_when_drop_down": 0.05,
  "exit_profit_pct": 0.01,
  "profit_pull_back_pct": 0.01,
  "trading_fee": 0.0004,
  "max_increase_pos_count": 5,
  "proxy_host": "",
  "proxy_port": 0
}

配置文件的参数说明。

  1. platform: 可选的值有两个,分别是binance_future和binance_spot, 如果你想交易现货,就填写binance_spot, 合约就写binance_future

  2. api_key: 币安交易所的api key

  3. api_secret: 币安交易所的api secret

  4. max_pairs: 交易对的最大数量,如果你想同时持仓10个交易对,那么这里就写10.

  5. pump_pct: 小时线暴涨百分之多少后入场, 当然你可以修改源码,修改你的入场逻辑。这个策略的思路是挑选小时暴涨的币,然后用马丁格尔的策略去交易。

  6. initial_trade_value: 每个交易对的初始交易金额

  7. increase_pos_when_drop_down: 回调多少后加仓。

  8. exit_profit_pct: 出场点位

  9. profit_pull_back_pct: 最高值回调多少后,且有利润的时候才出场.

  10. trading_fee: 交易的资金费率。

  11. max_increase_pos_count: 最大的加仓次数.

  12. turnover_threshold: 这个是过滤值,就是要求一小时的最低成交量不能低于多少,默认是值 100,000 USDT.

  13. blocked_lists: 这个是禁止交易的交易对,如果你想过滤某写不想交易的山寨币,你可以把他们放在这个列表上如: ['XMLUSDT', 'XRPUSDT'],

  14. allowed_lists: 如果你只想交易某一些交易对,那么放这里: ['BTCUSDT', 'ETHUSDT', 'ADAUSDT', 'BNBUSDT']

  15. proxy_host: 代理主机ip地址: 如'132.148.123.22'

  16. proxy_port: 代理主机的端口号如: 8888, 9999 ect.

如何使用

  1. 把代码下载下来,然后编辑config.json文件,它会读取你这个配置文件,记得填写你的交易所的api key 和 secret, 然后保存该配置文件,配置文件选项的说明如上面描述。
  2. 直接运行main.py文件或者通过shell脚本运行, 执行 sh start.sh 就可以运行。

联系我

如果关于代码任何有问题,可以提交issues, 或者联系我微信: bitquant51

You might also like...
Trading bot - A Trading bot With Python
Trading bot - A Trading bot With Python

Trading_bot Trading bot intended for 1) Tracking current prices of tokens 2) Set

Trading through Binance's API using Python & sqlite

pycrypt Automate trading crypto using Python to pull data from Binance's API and analyse trends. May or may not consistently lose money but oh well it

Utilizing the freqtrade high-frequency cryptocurrency trading framework to build and optimize trading strategies. The bot runs nonstop on a Rasberry Pi.
Utilizing the freqtrade high-frequency cryptocurrency trading framework to build and optimize trading strategies. The bot runs nonstop on a Rasberry Pi.

Freqtrade Strategy Repository Please test all scripts and dry run them before using them in live mode Contact me on discord if you have any questions!

This program is an automated trading bot that uses TDAmeritrades Thinkorswim trading platform's scanners and alerts system.
This program is an automated trading bot that uses TDAmeritrades Thinkorswim trading platform's scanners and alerts system.

Python Trading Bot w/ Thinkorswim Description This program is an automated trading bot that uses TDAmeritrades Thinkorswim trading platform's scanners

Intelligent Trading Bot: Automatically generating signals and trading based on machine learning and feature engineering

Intelligent Trading Bot: Automatically generating signals and trading based on machine learning and feature engineering

A Telegram bot for remotely managing Binance Trade Bot
A Telegram bot for remotely managing Binance Trade Bot

Binance Trade Bot Manager Telegram A Telegram bot for remotely managing Binance Trade Bot. If you have feature requests please open an issue on this r

Crypto-trading-simulator - Cryptocurrency trading simulator using Python, Streamlit
Crypto-trading-simulator - Cryptocurrency trading simulator using Python, Streamlit

Crypto Trading Simulator Run streamlit run main.py Dependency Python 3 streamli

Bot for automated buying boxes on Binance

V 1.0 Bot for automated buying boxes on Binance В settings.py выставляем свои COOKIE и свой CSRFTOKEN В settings.py для headers выставляем свои параме

A new coin listing alert bot using Python, Flask, MongoDB, Telegram API and Binance API
A new coin listing alert bot using Python, Flask, MongoDB, Telegram API and Binance API

Bzzmans New Coin Listing Detection Bot Architecture About Project Work in progress. This bot basically gets new coin listings from Binance using Binan

Comments
  • PytzUsageWarning

    PytzUsageWarning

    how can i fix this error

    {'id': 1, 'signals': [{'pct': 0.005517104676324491, 'pct_4h': 0.018028263232711783, 'symbol': 'ETHUSDT', 'hour_turnover': 49728662.897455, 'signal': 0}], 'time': datetime.datetime(2022, 6, 24, 16, 34, 55, 17887)}

    PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html if obj.zone == 'local':

    PytzUsageWarning: The normalize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html return self.timezone.normalize(dateval + difference), fieldnum

    opened by kuratkull 0
Releases(V0.9.0)
Owner
51bitquant
51bitquant
A Collection Manager for the objkt.com Minting Factory

Objkt Collection Manager A Collection Manager for the objkt.com Minting Factory. This contract can create a collection on objkt.com and mint into it.

Asbjorn Enge 5 Nov 22, 2022
Neko is An Anime themed advance Telegram group management bot.

NekoRobot A modular telegram Python bot running on python3 with an sqlalchemy, mongodb database. ╒═══「 Status 」 Maintained Support Group Included Free

Lovely Boy 22 Jan 05, 2023
提供火币网交易接口API最简封装,提供现货买入、卖出、huobi币安查询账户余额等接口,数字货币,虚拟货币,BTC量化交易框架,自动交易,轻量便携,不用安装,即开即用

火币网交易接口的最简封装(只管用,不用再关注细节) 提供火币网交易接口的python封装,提供买入、卖出、查询账户余额等接口 接口说明 order_value() 进行买入操作,参数为买入的币和买入的金额 买入返回的详情数据: {'单号': '272229546125038', '成交数量': 0.

dev 95 Sep 24, 2021
Chronocalc - Calculates the dates and times when the sun or moon is in a given position in the sky

Chronocalc I wrote this script after I was busy updating my article on chronoloc

16 Dec 13, 2022
Telegram Bot to store Posts and Documents and it can Access by Special Links.

File-sharing-Bot Telegram Bot to store Posts and Documents and it can Access by Special Links. I Guess This Will Be Usefull For Many People..... 😇 .

Code X Botz 1.2k Jan 08, 2023
Image Tooᥣs Bot I specialize for logo design Services with Amazing logo Creator Platform and more tools

Image Tooᥣs Bot I specialize for logo design Services with Amazing logo Creator Platform and more tools

Sz Team Bots <sz/>✌️ 10 Oct 21, 2022
📈 A Discord bot for displaying the download stats of a repository made with Python, the Hikari API and PostgreSQL.

📈 axyl-stats axyl-stats is a Discord bot made with Python (with the Hikari API wrapper) and PostgreSQL, used as a download counter for a GitHub repo.

Angelo-F 2 May 14, 2022
A Python bot that uses the Reddit API to send users inspiring messages.

AnonBot By Edric Antoine A Python bot that uses the Reddit API to send users inspiring messages. When a message includes 'What would Anon do?', the bo

1 Jan 05, 2022
This is a Anti Channel Ban Robots

AntiChannelBan This is a Anti Channel Ban Robots delete and ban message sent by channels Heroku Deployment 💜 Heroku is the best way to host ur Projec

BᵣₐyDₑₙ 25 Dec 10, 2021
Python bindings for BigML.io

BigML Python Bindings BigML makes machine learning easy by taking care of the details required to add data-driven decisions and predictive power to yo

BigML Inc, Machine Learning made easy 271 Dec 27, 2022
Discord bot to administer IITD Study Servers (unofficial)

IITD-Bot Discord bot to administer IITD'20 Acad Server Commands hello to check if bot is online ?help to display this message ?set kerberos to set y

Aditya Singh 47 Dec 19, 2022
Estimate the total emissions for popular CryptoArt platforms.

cryptoart-footprint Estimate the total CO2 footprint for popular CryptoArt platforms. The goal is to accurately quantify the ecological damage of Ethe

Kyle McDonald 182 Oct 12, 2022
This repository contains ready to deploy automations on AWS

aws-automation-plugins This repository contains ready to deploy automations on AWS. How-To All projects in this repository contain a deploy.sh file wh

Akesh Patil 8 Sep 20, 2022
A Python Jupyter Kernel in Slack. Just send Python code as a message.

Slack IPython bot 🤯 One Slack bot to rule them all. PyBot. Just send Python code as a message. Install pip install slack-ipython To start the bot, si

Rick Lamers 44 May 23, 2022
VC-Music , Playing music without bot.

VC-Userbot A Telegram Userbot to play or streaming Audio and Video songs / files in Telegram Voice Chats. It's made with PyTgCalls and Pyrogram Requir

RioProjectX 8 Aug 04, 2022
Calendars for various securities exchanges.

IMPORTANT NOTE This package is currently unmaintained as the sponsor, quantopian, is going through corporate changes. As such there is a fork of this

Quantopian, Inc. 545 Jan 07, 2023
Autofilterv5 With Same more Features

Autofilterv5 With Same more Features ✨ Imbd + Index +.....

Selfie SD 8 Oct 21, 2022
The gPodder podcast client.

___ _ _ ____ __ _| _ \___ __| |__| |___ _ _ |__ / / _` | _/ _ \/ _` / _` / -_) '_| |_ \ \__, |_| \___/\__,_\__,_\___|_| |_

gPodder and related projects 1.1k Jan 04, 2023
Zendesk Ticket Viewer is a lightweight commandline client for fetching and displaying tickets from a Zendesk account provided by the user

Zendesk Ticket Viewer is a lightweight commandline client for fetching and displaying tickets from a Zendesk account provided by the user.

Parthesh Soni 1 Jan 24, 2022