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
Redis
Forever
npm install forever
Instalacion y ejecucion:
You need to have installed and already set:
Installation and execution:
Bitcoin Venezuela API shows the current price of Bitcoin in these currencies: USD, EUR, VEF, ARS
Exchange rates:
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