Add Altmarkets.io Exchange to markets

This commit is contained in:
joeuhren
2020-11-20 11:13:13 -07:00
parent 7f5a52e458
commit 0f050c6475
5 changed files with 229 additions and 1 deletions
+7 -1
View File
@@ -15,7 +15,8 @@ var mongoose = require('mongoose')
, yobit = require('./markets/yobit')
, stex = require('./markets/stex')
, crex = require('./markets/crex')
, coindesk = require('./apis/coindesk');
, coindesk = require('./apis/coindesk')
, altmarkets = require('./markets/altmarkets');
function find_address(hash, caseSensitive, cb) {
if (caseSensitive) {
@@ -208,6 +209,11 @@ function save_tx(txid, cb) {
function get_market_data(market, cb) {
switch(market) {
case 'altmarkets':
altmarkets.get_data(settings.markets.coin, settings.markets.exchange, function(err, obj){
return cb(err, obj);
});
break;
case 'bittrex':
bittrex.get_data(settings.markets.coin, settings.markets.exchange, function(err, obj){
return cb(err, obj);