Giter Site home page Giter Site logo

api's Introduction

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

api's People

Contributors

ajsb85 avatar bigomby avatar bitdeli-chef avatar grunch avatar jazb avatar rdymac avatar yurians19 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api's Issues

Añadir cálculo de mercado con casas de cambio para BTCARS y BTCCLP

Es necesario añadir el cálculo de mercado con el orderbook de cada casa de cambio disponible para BTCARS y BTCCLP. Esto sustituiría el uso del DólarBlue que se saca ahora mismo de CoinDesk, que lo saca a su vez de OpenExchangeRates.

BTCARS

https://bitex.la/api-v1/rest/btc_ars/market/order_book

https://api.cryptomkt.com/v1/book?market=BTCARS&type=sell

https://localbitcoins.com/bitcoincharts/ARS/orderbook.json

BTCCLP

https://api.cryptomkt.com/v1/book?market=BTCCLP&type=sell

https://localbitcoins.com/bitcoincharts/CLP/orderbook.json

Para Buda.com hay que conseguir la URL del libro de órdenes https://api.buda.com/#libro-de-ordenes

Para Orionx.com hace falta conseguir la URL del libro de órdenes

Agregar BTC/GBP y BTC/CNY

La v2 del api coindesk ahora da el valor BTC/CNY, igualmente se deberia agregar el BTC/GBP para mostrar toda la informacion q nos brinda coindesk.

Upgrade vulnerable dependencies

Upgrade vulnerable libraries

Some libraries need to be upgraded

Library Severity Where Details
minimist moderate severity package-lock.json CVE-2020-7598
kind-of moderate severity package-lock.json CVE-2019-20149
mongoose moderate severity package-lock.json CVE-2019-17426
mixin-deep high severity package-lock.json CVE-2019-10746
set-value high severity package-lock.json CVE-2019-10747
lodash critical severity package-lock.json CVE-2019-10744
mpath low severity package-lock.json CVE-2018-16490

Related pull requests:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.