Skip to content

btcven/api

Repository files navigation

Bitcoin Venezuela API v2

Para usar Docker en cojunto con docker-compose.yml

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

http://localhost:3000

Cómo instalar la versión sólo BTCVES:

Debe tener instalado y configurado:

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

How to enable BTCVES-only mode:

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 (v1)

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)

Options

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 [&ltc=yes] [&msc=yes] [&rates=yes] [&coupons=yes]

  • Show Litecoin prices: &ltc=yes

  • Show Mastercoin prices: &msc=yes

  • Show exchange rates: &rates=yes

  • Show LocalBitcoins' coupons price: &coupons=yes

Calculator

https://api.bitcoinvenezuela.com/?html=no&currency= _currency_ &amount= _amount_ [&to= _currency_ ]

?html=no *

&currency= *: 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

Historical

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

DolarToday

Data taken from DolarToday.com can be accessed here

https://api.bitcoinvenezuela.com/DolarToday.php?json=yes

Donations

1VenCBSjJWDi6PDgEDppZzXsNWHiwitzT

About

Bitcoin Venezuela's BTCVES (Bitcoin-Bolívar) prices API

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published