## 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](https://github.com/ccxt/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).
=======
History
=======
0.1.0 (2017-11-07)
------------------
* First release on PyPI.
Metadata
Release files for libcryptomarket 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| libcryptomarket-1.0.0.tar.gz | 19.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| libcryptomarket-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 30.2 kB
Release files / libcryptomarket-1.0.0.tar.gz
| Download URL | libcryptomarket-1.0.0.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc3bb20ab240cd121694ef60add0490b0693a6986f39828338e3f7678bf9a18e
|
|
BLAKE2b-256 checksum How to use checksums |
03437388c87bcc5f670373a42aeffa9786bff982f5018e9e6dd1d0146837362c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / libcryptomarket-1.0.0-py2.py3-none-any.whl
| Download URL | libcryptomarket-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2e2f5127a1769d1992fb9b663f45f214a6fa8c5cdd6490f6e190d8340b3ea884
|
|
BLAKE2b-256 checksum How to use checksums |
936f1e206bbba8424334a4e6b707632c6ed819a3b9f4c56efd545f68309e4130
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for libcryptomarket 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.