Micro service to call cryptocurrency exchanges API using [ccxt](https://github.com/ccxt/ccxt).
Project description
ccxt-microservice
Micro service to call cryptocurrency exchanges API using ccxt.
Usage
- Run a service
python app.py
or
docker-compose up
- Send a request
Send post json to /exchange/method. Default port is 5000.
Example
In ccxt, fetch ticker of Bittrex for ETH/BTc is:
import ccxt
b = ccxt.bittrex()
result = b.fetch_ticker(symbol="ETH/BTC")
Following request is equivalent to the above.
curl -H 'Content-Type:application/json' -d'{"symbol":"ETH/BTC"}' localhost:5000/bittrex/fetch_ticker
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ccxt_microservice-1.2.5.tar.gz
.
File metadata
- Download URL: ccxt_microservice-1.2.5.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e1a21c7a8d356fbdbb986f9c79a8aa4785aab391522bc1ce47902ae5aeaee27 |
|
MD5 | 596d0b20fea8886592e808606222d227 |
|
BLAKE2b-256 | 4e4556b1fda4284b4371e5883ed9c730dc213d2afcacc48fdaf13b3c279077a4 |
File details
Details for the file ccxt_microservice-1.2.5-py3-none-any.whl
.
File metadata
- Download URL: ccxt_microservice-1.2.5-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0535297c9610de23aba97ab6bd3634c1d51be3c0ad1082099afdada5bddc2d3 |
|
MD5 | 9da7a4dc3b2e099323930427906701e3 |
|
BLAKE2b-256 | 06b6067e17b68b646c697f02806fa8379640a5dfdabb8b7a1f377667825482ed |