Skip to content

ajunge/buda-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buda-promise

npm install buda-promise

A promise-based Node.js wrapper for the Buda REST API. Refer to their docs for full parameter details.

var Buda = require('buda-promise');

// Public API — no credentials needed
var buda = new Buda();
buda.ticker('btc-clp').then(function(ticks) {
  console.log(ticks);
});

// Private API — requires API key and secret
var buda = new Buda('your-api-key', 'your-api-secret');
buda.balance('clp').then(function(balance) {
  console.log(balance);
});

// Custom timeout (default: 5000ms)
var buda = new Buda('your-api-key', 'your-api-secret', { timeout: 10000 });

Supported Markets

BTC-CLP, BTC-COP, BTC-PEN, BTC-USDC, ETH-CLP, ETH-COP, ETH-PEN, ETH-BTC, BCH-CLP, BCH-COP, BCH-PEN, BCH-BTC, LTC-CLP, LTC-COP, LTC-PEN, LTC-BTC, USDC-CLP, USDC-COP, USDC-PEN, USDT-CLP, USDT-COP, USDT-PEN, USDT-USDC, SOL-CLP, SOL-COP, SOL-PEN

Public API

Method API docs
buda.markets() Mercados
buda.market(market) Mercados
buda.ticker(market) Ticker
buda.tickers() Todos los Tickers
buda.order_book(market) Libro de ordenes
buda.volume(market) Volumen transado
buda.trades(market, timestamp, limit) Trades
buda.fees(currency, type) Costos de abonos/retiros
buda.get_quotation(market, type, amount, limit) Cotizaciones

Private API

Account

Method API docs
buda.me() Informacion personal
buda.balance(currency) Balances

Orders

Method API docs
buda.order_pages(market, per, page, state) Obtener mis ordenes
buda.new_order(market, type, price_type, limit, amount, client_id) Nueva orden
buda.single_order(order_id) Detalle de orden
buda.order_by_client_id(client_id) Detalle de orden por Client ID
buda.cancel_order(order_id) Cancelar orden
buda.cancel_order_by_client_id(client_id) Cancelar orden por Client ID
buda.cancel_orders(market, type) Cancelar todas mis ordenes
buda.batch_orders(diff) Lote de ordenes

Deposits & Withdrawals

Method API docs
buda.deposits(currency, per, page, state) Mis abonos/retiros
buda.withdrawals(currency, per, page, state) Mis abonos/retiros
buda.new_fiat_deposit(currency, amount, simulate) Nuevo abono fiat
buda.new_fiat_withdrawal(currency, amount, simulate) Nuevo retiro fiat
buda.new_crypto_withdrawal(currency, amount, target_address, simulate) Nuevo retiro cripto
buda.new_crypto_address(currency) Nuevo abono cripto
buda.get_address(currency, address_id) Nuevo abono cripto

Lightning Network

Method API docs
buda.lightning_withdrawal(amount, invoice, simulate) Nuevo retiro lightning
buda.lightning_network_invoices(amount, currency, memo, expiry_seconds) Nuevo abono lightning

Cross Border Payments

Method API docs
buda.quote_remittance(params) Cotizar remesa
buda.accept_remittance(remittance_id) Aceptar cotizacion
buda.remittance(remittance_id) Consultar remesa
buda.remittances(per, page) Mis remesas
buda.remittance_recipients(per, page) Destinatarios de remesas
buda.remittance_recipient(recipient_id) Destinatario especifico

Related

  • buda-cli — command line interface for buda.com built on top of this package

License

MIT

About

A basic API wrapper for the Buda REST API

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors