https://github.com/pcpratheesh/crypto-currency-tracker-api
A RESTful API service that tracks the prices and convert of various cryptocurrencies using real-time data from different cryptocurrency exchanges.
https://github.com/pcpratheesh/crypto-currency-tracker-api
binance binance-api binance-exchange bitfinex cloud coinbase coinbase-api cryptocurrencies cryptocurrency cryptocurrency-exchanges docker dockercompose exchange exchange-rates golang
Last synced: 7 months ago
JSON representation
A RESTful API service that tracks the prices and convert of various cryptocurrencies using real-time data from different cryptocurrency exchanges.
- Host: GitHub
- URL: https://github.com/pcpratheesh/crypto-currency-tracker-api
- Owner: pcpratheesh
- License: mit
- Created: 2023-03-28T09:05:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-28T13:44:04.000Z (over 2 years ago)
- Last Synced: 2025-01-11T02:18:07.641Z (9 months ago)
- Topics: binance, binance-api, binance-exchange, bitfinex, cloud, coinbase, coinbase-api, cryptocurrencies, cryptocurrency, cryptocurrency-exchanges, docker, dockercompose, exchange, exchange-rates, golang
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crypto-currency-tracker-api
A RESTful API service that tracks the prices and convert of various cryptocurrencies using real-time data from different cryptocurrency exchanges.## Installation
- Clone the repository: git clone https://github.com/pcpratheesh/crypto-currency-tracker-api.git
- Navigate to the project directory: cd crypto-currency-tracker-api
- Install the dependencies: go get ./...## Usage
To use the API service, simply run the following command in the project directory:go run main.go
The API service will start listening on port 8085 by default. You can change the port by setting the PORT environment variable.
## Endpoints
The following endpoints are available:`GET /api/v1/convert/:exchange`
Retrieves the current prices of various cryptocurrencies from different exchanges.`Json Body`
```json
{
"crypto":"BTC",
"base":"USD"
}
```
## Sample API Request- With bitfinex
```sh
curl --request POST \
--url http://localhost:8085/api/v1/track/bitfinex \
--header 'Content-Type: application/json' \
--data '{
"currencies":["BTC","ETH"]
}''
```- With binance
```sh
curl --request POST \
--url http://localhost:8085/api/v1/track/binance \
--header 'Content-Type: application/json' \
--data '{
"currencies":["BTC","ETH"]
}'
```- With coinbase
```sh
curl --request POST \
--url http://localhost:8085/api/v1/track/coinbase \
--header 'Content-Type: application/json' \
--data '{
"currencies":["BTC","ETH"]
}'
```## Supported Exchanges
The following cryptocurrency exchanges are currently supported by the application:
- Coinbase
- Binance
- Bitfinex## Contributing
If you find a bug or would like to contribute to the development of the application, please submit a pull request or create an issue on the GitHub repository.
## License
This project is licensed under the MIT License - see the LICENSE.md file for details.