An open API service indexing awesome lists of open source software.

https://github.com/pariazar/niceprice

API and telegram bot for retrieving price of digital currencies and metals
https://github.com/pariazar/niceprice

Last synced: 8 months ago
JSON representation

API and telegram bot for retrieving price of digital currencies and metals

Awesome Lists containing this project

README

          

# NicePrice
![alt text](https://github.com/hamedpa/NicePrice/raw/master/cover/cryptocurrency_plain_7%20(1).jpg)

API and telegram bot for retrieving price of digital currencies and metals

Features

1- access data in json format

2- don't need any token (free)

Download



download project with below commad



git clone https://github.com/hamedpa/NicePrice

Requirements

install requirements with below commad



npm i && pip install -r requirements.txt

Usage

first step : you should run below commad for running API

nodemon index.js

that's it API is ready

for get all prices of digital currencies you need to send request to below address

http://localhost:3000/digital_currencies

output (JSON format) look like this

"digital_currencies":[
{
"asset":"BTC",
"price":"$11,421.00",
"market cap":"$211.47B",
"total exchange volume":"$19.04B",
"returns 24h":"0.41%",
"total supply":"18.52M",
"category":"Currency",
"value proposition":"Digital gold"
},

if you looking for specific digital currency information then you will need to enter asset like bellow address



http://localhost:3000/digital_currencies/ETH

and the result like this

{
"digital_currencies":{
"asset":"ETH",
"price":"$382.76",
"market cap":"$43.25B",
"total exchange volume":"$9.58B",
"returns 24h":"0%",
"total supply":"113.00M",
"category":"Software platform",
"value proposition":"Global computer"
}
}

Telegram BOT

for running telegram bot first make ready telegram bot token from fatherbot in telegram application

then you should run telegram_bot1.py in telegram_bot directory/folder with blow command



python telegram_bot1.py