Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xeno14/ccxt-microservice
ccxt
https://github.com/xeno14/ccxt-microservice
Last synced: 26 days ago
JSON representation
ccxt
- Host: GitHub
- URL: https://github.com/xeno14/ccxt-microservice
- Owner: xeno14
- License: mit
- Created: 2017-12-31T09:41:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-01T12:45:33.000Z (about 6 years ago)
- Last Synced: 2024-08-03T13:02:14.470Z (4 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 13
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-ccxt - ccxt-microservice - Unified REST API on #python (API)
README
ccxt-microservice
=================Micro service to call cryptocurrency exchanges API using [ccxt](https://github.com/ccxt/ccxt).
# Usage
1. Run a service
```
python app.py
```
or
```
docker-compose up
```2. Send a request
Send post json to /*exchange*/*method*. Default port is 5000.
# Example
In ccxt, fetch ticker of Bittrex for ETH/BTc is:
```python
import ccxtb = 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
```