Coder Social home page Coder Social logo

juanparker1 / crypto-arbitrage-bot- Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bellyfat/crypto-arbitrage-bot-

0.0 0.0 0.0 19 KB

A crypto Arbitrage Bot that pulls API from Binance, Kraken, Kucoin, Huobi, Bitfinex, Ftx and Okex to compare and evaluate arbitrage opportunities

Python 100.00%

crypto-arbitrage-bot-'s Introduction

Crypto-Arbitrage-Bot-

A crypto Arbitrage Bot that pulls API from Binance, Bitfinex Kraken, Kucoin, Huobi, Ftx and Okex to compare and evaluate arbitrage opportunities

api_bot.py

api_bot.py contains all the function that will request bid and ask prices from all the different exchanges, from Binance, Bitfinex Kraken, Kucoin, Huobi, Ftx and Okex.

The api for Kraken is a little slow so I would leave it out for the rest of the project.

Arbitrage_bot.py

The arbitrage bot has two functions, compare and execution.

Important parameter in this module is, threshold, whichis the minimum % you would like to consider for the purpose of the bot. It is in percentage points and adjust the figure as you would like to. There is also the variable, upper, which allows you to limit the max premium that you are willing to consider. The default is set at 30% and is there to remove many illquid pairs trading at ridiculous premium.

Compare will compare the bid and ask price of every symbol on each exchange and store the result in a dictionary, with the symbol pairing,premium and action needed.

Execution.py

Execution allows you to customise for which exchange you would like to compare against. The default setting is all 6 exchanges, (Binance, Kucoin,Huobi,Ftx,Okex, Bitfinex). User can adjust the number of exchanges by editing the values in list.

market_depth.py

Market_depth will run through every pairing with arbitrage opportunities and find the corresponding bid and ask quantity on each exchange. This allows for user to check on the available lidqudity for arbitrage opportunities.

binance_bot.py

User will have to add in their own public API and private API keys into the program.

Binance Bot is a simple trading bot that will market buy and sell based on the result from Market_depth, if the action needed is to buy or sell any symbol from Binance. The format can be extended to other exchanges using similar logic.

crypto-arbitrage-bot-'s People

Contributors

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