Giter Club home page Giter Club logo

binan's Introduction

币安趋势跟踪量化交易系统

该项目是一个自动化交易系统,采用海龟交易法作为交易策略,通过连接币安API实现对加密货币的自动交易。本系统的交易周期为24小时,属于长期持有型策略。

简介

海龟交易法是一种基于趋势跟踪的交易策略,常用于股票和期货市场。在加密货币市场中同样适用,其核心**是追随市场趋势进行交易,同时控制风险和资金管理。本系统通过使用海龟交易法来进行加密货币的交易,旨在获得稳定的收益率。

功能

该系统主要包括以下功能:

  • 连接币安API,获取市场数据和进行交易
  • 实现海龟交易法的交易策略
  • 自动执行交易,无需人工干预
  • 控制风险和资金管理,确保交易的稳定性和可行性

使用

环境依赖

  • Node.js 14及以上版本
  • 相关Node.js库:axios、crypto、binance-futures-connector等

配置文件

在运行系统之前,请先配置相关参数,包括API密钥、交易品种、交易周期等。你可以在 .env 文件中进行配置。 请在根目录创建.env 文件

示例代码

API_KEY="your-api-key-here"
API_SECRET="your-api-secret-here"
# 你的代理地址
API_SOCKS='socks://127.0.0.1:7890'
# 是否开启代理 1开启 0关闭
API_SOCKS_OPEN='0'
# 是否在本地环境,如果是本地调试则使用3000端口,其他使用80端口 development 为本地环境 其他为生产环境
NODE_ENV='development'

安装

要运行这个项目,你需要先安装所需的npm软件包。请按照以下步骤进行安装:

  1. 确保你已经安装了Node.js和npm。你可以从官方网站下载并安装:https://nodejs.org

  2. 打开终端或命令提示符,并导航到项目的根目录。

  3. 运行以下命令来安装所有依赖项:

  npm install

运行

运行 app.js 文件即可启动程序,本系统会自动连接币安API并执行交易。你也可以将系统部署在服务器上,实现24小时不间断的交易。

  node app.js

风险提示

加密货币市场具有高度风险性,请在投资前审慎考虑个人风险承受能力和投资经验。本系统仅提供一种自动化交易策略,并不能保证投资收益或避免损失,所有投资操作均由投资者自行决定并承担相应风险。

binan's People

Contributors

shiki2014 avatar dependabot[bot] avatar

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.