Skip to main content

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

  1. Run a service
python app.py

or

docker-compose up 
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccxt_microservice-1.2.5.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

ccxt_microservice-1.2.5-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page