Coder Social home page Coder Social logo

1460293896 / arbitrage-trading-bot-mexc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from awsgcr/arbitrage-trading-bot

0.0 0.0 0.0 429 KB

This bot is designed to take advantage of arbitrage opportunities in the cryptocurrency market.

License: Apache License 2.0

Go 100.00%

arbitrage-trading-bot-mexc's Introduction

Arbitrage Trading Bot

This bot is designed to take advantage of arbitrage opportunities in the cryptocurrency market. It is designed to be run on a server and will continuously monitor the market for arbitrage opportunities. When an opportunity is found, the bot will execute trades to take advantage of the price difference.

architecture.png

Installation

  1. Clone the repository
  2. Install the required packages using go mod tidy
  3. Create a conf/secrets.conf.yml file in the ~/.coin_labor/ directory and add the following environment variables:
    • key: Your API key for the exchange
    • secret: Your API secret for the exchange

Example: create file ~/.coin_labor/conf/secrets.conf.yml abd add the following

binance:
  key: "your binance key"
  secret: "your binance secret"

mexc:
  key: "your mexc key"
  secret: "your mexc secret"
  1. Enable Alerting if needed, update token in the conf/dev.ini or conf/prod.ini file

  2. Build the bot using go run build.go coin_labor

  3. Run the bot using below commands for different environments

    • For development environment
    ./bin/linux-amd64/coin_labor
    
    • For production environment
    ./bin/linux-amd64/coin_labor -config=conf/prod.ini
    

Project Structure

  • /conf - Contains the configuration files
  • /core - Contains the basic components, settings and utilities
  • /pkg - Contains the main logic of the bot
    • /cmd - Contains the main entry point of the bot
    • /components - Contains the components for each exchange
    • /plugins - Contains the plugins for each exchange
    • /services - Monitor the market for arbitrage opportunities

Project Plan

  • Connect to different exchanges, Binance, OKX, MEXC
  • Fetch the order book from each exchanges
  • Calculate the spread between these exchanges
  • Monitor the market for arbitrage opportunities and send the data to Amazon Managed Service for Prometheus
  • execute trades on an exchange

arbitrage-trading-bot-mexc's People

Contributors

victzero 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.