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
- Host: GitHub
- URL: https://github.com/pariazar/niceprice
- Owner: pariazar
- Created: 2020-10-13T19:16:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-18T12:16:04.000Z (over 5 years ago)
- Last Synced: 2025-02-25T06:19:09.309Z (over 1 year ago)
- Language: Python
- Size: 180 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NicePrice
.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