Skip to content

A bot that search for abitrage opportunities on popular centralized exchanges and returns the best deal

License

Notifications You must be signed in to change notification settings

SafeSwap1/cex-arbitrage-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arbitrage Opportunity Analyzer

The Arbitrage Opportunity Analyzer is a Python script that identifies potential arbitrage opportunities among different cryptocurrency exchanges. It uses the order book data from various exchanges, calculates the maximum buy quantities and sell amounts, and analyzes the differences to find the most profitable opportunities.

Getting Started

Prerequisites

This script requires Python 3.6+ and the following packages:

  • requests
  • aiohttp
  • asyncio

Install the required packages using pip:

pip install requests aiohttp

Usage

  1. Import the ArbitrageAnalyzer class and the Books class from their respective files:
from arbitrage_analyzer import ArbitrageAnalyzer
from orderbook import Books
  1. Instantiate the ArbitrageAnalyzer class with the token symbol (e.g., 'BTC'):
analyzer = ArbitrageAnalyzer('BTC')
  1. Run the analyzer to find arbitrage opportunities:
analyzer.run()

Code Structure

orderbook.py: Contains the Books class, which fetches order book data from various exchanges and processes it. arbitrage_analyzer.py: Contains the ArbitrageAnalyzer class, which analyzes the order book data to find arbitrage opportunities. functions.py: Contains helper functions for data processing. project_exceptions.py: Contains custom exceptions for the project.

Contributing

To contribute to this project, please submit a pull request with your proposed changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Create a new file named `README.md` in your project directory and paste the content above into the file. This will serve as the main documentation for your project.

About

A bot that search for abitrage opportunities on popular centralized exchanges and returns the best deal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages