All Projects → hengxuZ → Binance Quantization

hengxuZ / Binance Quantization

Licence: mit
虚拟货币(BTC、ETH)炒币量化系统项目。币安交易所-量化交易-网格策略实践。火币、OKEX热门交易所未来都支持。最简单收益最靠谱的项目,包教包会。

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Binance Quantization

Optimal Buy Cbpro
Scheduled buying of BTC, ETH, and LTC from Coinbase Pro, optimally!
Stars: ✭ 288 (+125%)
Mutual labels:  ethereum, btc
Qtbitcointrader
Secure multi crypto exchange trading client
Stars: ✭ 520 (+306.25%)
Mutual labels:  ethereum, btc
Cryptolist
Curated collection of blockchain & cryptocurrency resources.
Stars: ✭ 3,501 (+2635.16%)
Mutual labels:  ethereum, btc
Ccxt Rest
Open Source Unified REST API of 100+ Crypto Exchange Sites (18k+ docker pulls) - https://ccxt-rest.io/
Stars: ✭ 210 (+64.06%)
Mutual labels:  ethereum, btc
Arbitrader
A market neutral cryptocurrency trading bot.
Stars: ✭ 66 (-48.44%)
Mutual labels:  ethereum, btc
Coinbin.org
₿ A Human–Friendly API Service for Crypto Currency Information.
Stars: ✭ 253 (+97.66%)
Mutual labels:  ethereum, btc
Ccxt
A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
Stars: ✭ 22,501 (+17478.91%)
Mutual labels:  ethereum, btc
Bot18
Bot18 is a high-frequency cryptocurrency trading bot developed by Zenbot creator @carlos8f
Stars: ✭ 157 (+22.66%)
Mutual labels:  ethereum, btc
Openapi
DragonEx OpenAPI
Stars: ✭ 54 (-57.81%)
Mutual labels:  ethereum, btc
Donate
Cryptocurrency donation daemon
Stars: ✭ 34 (-73.44%)
Mutual labels:  ethereum, btc
Unstoppable Wallet Ios
A secure and decentralized Bitcoin and other cryptocurrency wallet for iPhone. Supports Bitcoin, Ethereum, EOS, Binance Chain, Bitcoin Cash, DASH, ...
Stars: ✭ 180 (+40.63%)
Mutual labels:  ethereum, btc
Cryptotrader
This is an experimental trading bot framework written in PHP. It may contain bugs and should not be trusted with much money
Stars: ✭ 108 (-15.62%)
Mutual labels:  ethereum, btc
Cbpro Trader
Automated cryptocurrency trading on Coinbase Pro (formerly gdax-trader)
Stars: ✭ 171 (+33.59%)
Mutual labels:  ethereum, btc
Coinpricebar
💰 Cryptocurrency prices on MacBook Touch Bar
Stars: ✭ 290 (+126.56%)
Mutual labels:  ethereum, btc
Unstoppable Wallet Android
A secure and decentralized Bitcoin and other cryptocurrency wallet for Android phones. Supports Bitcoin, Ethereum, EOS, Binance Chain, Bitcoin Cash, DASH, ...
Stars: ✭ 165 (+28.91%)
Mutual labels:  ethereum, btc
Awesome Coins
₿ A guide (for humans!) to cryto-currencies and their algos.
Stars: ✭ 3,469 (+2610.16%)
Mutual labels:  ethereum, btc
My Token
📈Track token prices of your favorite exchanges in terminal!
Stars: ✭ 141 (+10.16%)
Mutual labels:  ethereum, btc
Telegram Kraken Bot
Python bot to trade on Kraken via Telegram
Stars: ✭ 156 (+21.88%)
Mutual labels:  ethereum, btc
Btcpool Abandoned
backend of pool.btc.com
Stars: ✭ 541 (+322.66%)
Mutual labels:  ethereum, btc
Crypto vba
An Excel/VBA project to communicate with various cryptocurrency exchanges APIs
Stars: ✭ 103 (-19.53%)
Mutual labels:  ethereum, btc

数字货币量化交易-网格策略


介绍

这是一款单方向(多)现货网格交易策略的量化项目。 并且支持防踏空,行情上涨。网格价也自动提升。

其中只使用到了交易所的3个api接口。

  1. 获取某个交易对的当前价格
  2. 限价挂买单 (不用市价,防止滑点)
  3. 限价挂卖单

优势:🎉

  1. 简单易上手
  2. 安全(不用将api_secret告诉他人)

为什么选择币安交易所

最开始我使用的是火币网的api接口来做量化交易,久而久之,我发现交易的手续费看起来很少,但是一个月下来也是一笔不小的数目。所以我得赶忙找一个手续费低的大平台交易所,所以我选择了币安

火币手续费 Maker 0.2% Taker 0.2%

币安手续费 Maker 0.1% Taker 0.1% (加上BNB家持手续费低至0.075%)

如何启动

  1. 修改app目录下的authorization文件
api_key='你的key'
api_secret='你的secret'

dingding_token = '申请钉钉群助手的token'   # 强烈建议您使用 (若不会申请,请加我个人微信)

如果你还没有币安账号:注册页面(通过链接注册,交易返现20%)免翻墙地址

申请api_key地址: 币安API管理页面

  1. 修改data/data.json配置文件 根据
{
    "runBet": {
        "next_buy_price": 350,      <- 下次开仓价   (你下一仓位买入价)
      
        "grid_sell_price": 375      <- 当前止盈价  (你的当前仓位卖出价)
        "step":0                    <- 当前仓位  (0:仓位为空)
    },
    "config": {
        "profit_ratio": 5,         <- 止盈比率      (卖出价调整比率。如:设置为5,当前买入价为100,那么下次卖出价为105)
        "double_throw_ratio": 5,   <- 补仓比率      (买入价调整比率。如:设置为5,当前买入价为100,那么下次买入价为95)
        "cointype": "ETHUSDT",     <- 交易对        (你要进行交易的交易对,请参考币安现货。如:BTC 填入 BTC/USDT)
        "quantity": [1,2,3]        <- 交易数量       (第一手买入1,第二手买入2...超过第三手以后的仓位均按照最后一位数量(3)买入)
        
    }
}

  1. 安装依赖包 ''' pip install requests pip install time '''
  2. 运行主文件
# python eth-run.py 这是带有钉钉通知的主文件(推荐使用钉钉模式启动👍)

注意事项(一定要看)

  • 由于交易所的api在大陆无法访问(如果没有条件,可以使用api.binance.cc)
    • 您需要选择修改binanceAPI.py文件
# 修改为cc域名
class BinanceAPI(object):
    BASE_URL = "https://www.binance.cc/api/v1"
    FUTURE_URL = "https://fapi.binance.cc"
    BASE_URL_V3 = "https://api.binance.cc/api/v3"
    PUBLIC_URL = "https://www.binance.cc/exchange/public/product"
  • 如果您使用的交易所为币安,那么请保证账户里有足够的bnb
    • 手续费足够低
    • 确保购买的币种完整(如果没有bnb,比如购买1个eth,其中你只会得到0.999。其中0.001作为手续费支付了)
  • 第一版本现货账户保证有足够的U
  • 第二版本现货、合约账户保证有足够的U

钉钉预警

如果您想使用钉钉通知,那么你需要创建一个钉钉群,然后加入自定义机器人。最后将机器人的token粘贴到authorization文件中的dingding_token 关键词输入:报警

钉钉通知交易截图

钉钉交易信息

60日实战收益

收益图

私人微信:欢迎志同道合的朋友一同探讨,一起进步。

交流群 wechat-QRcode 币圈快讯爬取群 wx号:findpanpan 麻烦备注来自github

钉钉设置教程

钉钉设置教程

重大喜讯第二版本它来了!!真正的网格套利!!

🎉第二版本🎉 (现货做多 期货做空)

点击➡ 查看项目地址 由于现在行情属于多头行情,如果使用第二版本会出现空方向被套,利润回吐的情况,所以暂时不公开了(实盘上因为使用了第二版,收益回撤了2w)。

群友开源项目 →项目地址

免责申明

本项目不构成投资建议,投资者应独立决策并自行承担风险 币圈有风险,入圈须谨慎。

🚫风险提示:防范以“虚拟货币”“区块链”名义进行非法集资的风险。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].