Git Product home page Git Product logo

kraken-automated-crypto-trading's Introduction

This program uses Kraken API and Moving average convergence/divergence to determine which cryptos to sell and buy

You'll need Kraken API keys


For Running in Jupyter Notebook: Create a cell above containing

!pip install krakenex

------------------------------------------------------------------------------

For running as an exe (windows):
do not add !pip install krakenex
create a folder, install python into it
save code as .py in the folder you just created

Win+R
cmd
cd path\to\your\project\folder
python -m venv myenv
myenv\Scripts\activate
pip install krakenex pandas
pip install pyinstaller
pyinstaller --onefile your_script_name.py

go to folder\dist where youll find the .exe

.exe can run without supporting files
------------------------------------------------------------------------------

If you want to change which currency pairs are used, in jupyter notebook, run the following code. It will output all valid currency pairs, and the minimum amount of each pair that can be traded in one transaction. You can use this to alter the code to trade only the currency pairs you want to trade

Cell 1
!pip install krakenex
Cell 2
import krakenex

def fetch_minimum_order_sizes():
    api = krakenex.API()
    response = api.query_public('AssetPairs')
    
    if response.get('error'):
        print("Error fetching asset pair information:", response['error'])
        return

    min_order_sizes = {}
    for pair_name, pair_info in response['result'].items():
        # Extracting the pair's minimum order size
        min_order_sizes[pair_name] = pair_info['ordermin']

    return min_order_sizes

min_order_sizes = fetch_minimum_order_sizes()
if min_order_sizes:
    for pair, min_size in min_order_sizes.items():
        print(f"{pair}: Minimum order size = {min_size}")


kraken-automated-crypto-trading's People

Contributors

potatoe19 avatar

Watchers

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