Awesome
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