Skip to content

alpeshjamgade/microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microservice

Create a micro-service with the following endpoint:

  • GET /current/{symbol}

  • GET /current/all

How to use

run the python script api.py

Dependencies

Install all the required packages

pip install -r requirements.txt

Example

GET/current/{symbol}

{ "id": "ETH", "fullName": "Ethereum", "ask": "0.054464", "bid": "0.054463", "last": "0.054463", "open": "0.057133", "low": "0.053615", "high": "0.057559", "feeCurrency": "BTC" }

GET /currency/all

[ { "ask": "10281.92", "bid": "10281.54", "feeCurrency": "USD", "fullName": "Bitcoin", "high": "10484.94", "id": "BTC", "last": "10282.10", "low": "10196.14", "open": "10386.03" }, { "ask": "0.035456", "bid": "0.035453", "feeCurrency": "BTC", "fullName": "Ethereum", "high": "0.036060", "id": "ETH", "last": "0.035451", "low": "0.034860", "open": "0.035930" } ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages