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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for ccxt_microservice-1.2.5.tar.gz
Algorithm Hash digest
SHA256 9e1a21c7a8d356fbdbb986f9c79a8aa4785aab391522bc1ce47902ae5aeaee27
MD5 596d0b20fea8886592e808606222d227
BLAKE2b-256 4e4556b1fda4284b4371e5883ed9c730dc213d2afcacc48fdaf13b3c279077a4

See more details on using hashes here.

File details

Details for the file ccxt_microservice-1.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for ccxt_microservice-1.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b0535297c9610de23aba97ab6bd3634c1d51be3c0ad1082099afdada5bddc2d3
MD5 9da7a4dc3b2e099323930427906701e3
BLAKE2b-256 06b6067e17b68b646c697f02806fa8379640a5dfdabb8b7a1f377667825482ed

See more details on using hashes here.

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