Valido para produccion o desarrollo
git clone https://github.com/btcven/api
cd api
docker-compose up -d
Con tu navegador vas a poder acceder a la API a través del puerto 3000
Debe tener instalado y configurado:
-
Nodejs
-
Aquí una pequeña guía para la instalación y configuración para Digital Ocean Ubuntu: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04
-
Redis
-
Aquí una pequeña guía para la instalación y configuración para Digital Ocean Ubuntu: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04
-
Forever
-
ejecute el comando
npm install forever
Instalacion y ejecucion:
- Open Port 3000
- Cree o ubiquese en la carpeta donde alojara el codigo fuente
- Clone repo -> git clone https://github.com/btcven/api.git
- Ubiquese en la capeta -> "api"
- Ejecute el comando -> "npm install"
- Set la variable de entorno CMC_API_KEY para tener acceso a los price de coinmarketcap-api
- Ejecute el comando -> "forever start main.js" y "forever stop main.js" para detener
- Done -> Solicite la https://addresserver:3000/coin desde cualquier navegador
You need to have installed and already set:
- Nodejs
- Redis
- Forever _run the command "npm install forever"
Installation and execution:
- Open Port 3000
- Create or go to the directory where you will run the source code from
- Clone repo -> git clone https://github.com/btcven/api.git
- Go to the directory -> "api"
- Run the command -> "npm install"
- Run the command -> "forever start main.js" and "forever stop main.js" to stop it
- Done -> You can visit https://addresserver:3000/coin from any browser
Bitcoin Venezuela API shows the current price of Bitcoin in these currencies: USD, EUR, VEF, ARS
Exchange rates:
- EUR per USD
- VEF per USD
- ARS per USD
- XVE per USD
- XVE per EUR
- XAR per USD
Current LocalBitcoins' coupons price: USD, VEF (deprecated)
You can use the data of this API making requests to https://api.bitcoinvenezuela.com
It could also be embedded as an iframe with this options:
-
Show as HTML: https://api.bitcoinvenezuela.com?html=yes [<c=yes] [&msc=yes] [&rates=yes] [&coupons=yes] -
Show Litecoin prices: <c=yes -
Show Mastercoin prices: &msc=yes -
Show exchange rates: &rates=yes -
Show LocalBitcoins' coupons price: &coupons=yes
https://api.bitcoinvenezuela.com/?html=no¤cy= _currency_ &amount= _amount_ [&to= _currency_ ]
?html=no *
¤cy= *: BTC, USD, EUR, VEF, ARS. Gives the amount of bitcoins for this currency.
&amount= *: amount of the given currency.
&to= : set this field to calculate BTC, LTC or MSC to this currency. If not set the default currency used is VEF.
* required
Show the recorded prices for Bitcoin and Litecoin in USD, EUR, VEF and ARS.
https://api.bitcoinvenezuela.com/historical/[?coin=_coin_][?pair=_pair_]
Historical data can be filtered by coin: BTC, LTC, MSC
Or to a specific pair of currencies: BTCUSD, BTCEUR, BTCVEF, BTCARS, LTCUSD, LTCEUR, LTCVEF, LTCARS, LTCBTC, MSCUSD, MSCEUR, MSCVEF, MSCARS, MSCBTC
Data taken from DolarToday.com can be accessed here
https://api.bitcoinvenezuela.com/DolarToday.php?json=yes
1VenCBSjJWDi6PDgEDppZzXsNWHiwitzT