Giter Site home page Giter Site logo

cryptoketlyn's Introduction

CryptoKetlyn

This is a simple Python cryptocurrency trading bot that tries to exploit arbitrage opportunities between two crpytocurrencies.

  1. Install the Python package ccxt. This should be as simple as typing the following command into your console:
pip install ccxt
  1. Create an account at a supported exchange as listed here. This bot uses a binance account. You have to create an API key as well. Find a guide how to do this for binance here. Then insert the created API key and the secret into the script. Search for the following code snippet:
xchange = ccxt.binance({
    'apiKey': 'YOUR API KEY HERE',
    'secret': 'YOUR SECRET HERE',
})
  1. Define the variables symbol_base and symbol_target to specify the base and target cryptocurrency. The bot will then play ping pong between these two currencies trying to buy the target currency at the lower spectrum of the spread and sell it at the higher spectrum of the spread.

  2. Adapt the trading algorithm of the bot to your needs (e.g. parameters, cryptocurrencies, etc.). The given implementation is only an example algorithm. Of course, we do not guarantee any performance of this bot. USE THE BOT AT YOUR OWN RISK and start with a small amount in your account for testing.

  3. Only then, run the script.

Hope you have fun!

cryptoketlyn's People

Contributors

mayercn avatar

Stargazers

 avatar  avatar Dmitrii Smirnov avatar daxon avatar  avatar Loïc avatar  avatar  avatar  avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

cryptoketlyn's Issues

Cancellation of outstanding orders

Unfilled orders with this implementation will remain on the order book until filled. It might make sense to cancel outstanding orders at the end of every 10-second query period. One could also match the amount of a new buy to e.g. what was sold in the previous period to ensure that no unintentional re-balancing occurs (or, wait until the total amount is taken).

Nice idea of a strategy.

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.