Code Monkey home page Code Monkey logo

ccxt-kraken's Introduction

ccxt-ohlcv-fetcher

fetches historical OHLCV values from most crypto exchanges using ccxt library. saves candles to a database (postgres/Mysql/Mariadb). by default resumes from last candle fetched.

there is a similar script at https://github.com/planet-winter/ccxt-ohlcv-fetcher witch saves the candles in seperate sqlite files per pair.

setup

install virtualenv and python with your OS method

git clone https://github.com/planet-winter/ccxt-ohlcv-fetcher
cd ccxt-ohlcv-fetcher

virtualenv --python=python3.7 virtualenv
source virtualenv/bin/activate

pip install -r requirements.txt

install OS sqlite3

dnf install sqlite

run

display help

./ccxt-ohlcv-fetch.py

get 1 min candles of XRP/USD data from bitfinex

./ccxt-ohlcv-fetch.py -s 'XRP/USD' -e bitfinex -t 1m --debug

convert to freqtrade json

install dependencies into virtualenv

source virtualenv/bin/activate
pip install pandas

run conversion. creates folders per exchange and json files per pair and timeframe

./ccxt-kraken2json.py

in-place gzip all json files example. use your exchange name for exchange

gzip exchange/*.json

ccxt-kraken's People

Contributors

planet-winter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

alveraboquet

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.