Giter Club home page Giter Club logo

libcryptomarket's Introduction

libcryptomarket: Powerful cryptocurrency market analysis toolkit

Objective

  • Support API calls of top cryptocurrency exchanges

  • Support trading and analysis tools for cryptocurrency market

The project aims to answer the following two questions:

  1. How to get historical data, especially a long period, in a single query?

  2. How to send exchange API query in an elegent fashion?

Prerequisite

Python 3.5+

Installation

You can install it via pip for static version

pip install libcryptomarket

or development version

pip install git+https://github.com/libcryptomarket/libcryptomarket.git

API Usage

This library is to extend the library ccxt on more powerful functions. So the supported exchanges are same as ccxt while a few exchanges are extended with the following features. You just need to import the exchange from libcryptomarket.

Candles

from datetime import datetime
import libcryptomarket

poloniex = libcryptomarket.poloniex()
candles = libcryptomarket.fetch_candles(
    symbol="ETH/BTC",
    start_time=datetime(2018, 1, 1),
    end_time=datetime(2018, 1, 30),
    frequency="30m")

Latest candles

from datetime import datetime
import libcryptomarket

poloniex = libcryptomarket.poloniex()
candles = libcryptomarket.fetch_latest_candles(
    symbols=["ETH/BTC", "LTC/BTC"],
    frequency="30m",
    frequency_count=5)

Supported exchanges

Exchange candles latest_candles
Poloniex v v
Bitfinex v v
GDAX v v

Console Usage

Console usage is for exporting historical data.

Request candles

request-candles --exchange poloniex --symbols ETH/BTC LTC/BTC --frequency 30m --start-time 2018-01-01 --end-time 2018-01-31 --output test.csv

Contribution

The project is targeting as a core but generic toolkit to query cryptocurrency market, so we are happy if you join to contribute and make it better. Please do not hesitate to contact us (gavincyi at gmail dot com).

libcryptomarket's People

Contributors

gavincyi avatar wassname avatar

Watchers

 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.