3
1
I have been looking for some help building a platform using node that works with the MtGox api. It seems easy to make request, but I am confused about how to pass a parameter.
Right now my code starts off like below. I can hit the server and get basic market data but I don't know how to do anything else....
request = require('request');
APIResponder = require('../libraries/apiresponder');
exports.market_data = function(req, res, next){
request('https://mtgox.com/api/1/BTCUSD/ticker', function (err, response, body) {
console.log(response);
console.log(body);
APIResponder.respond(res, response);
});
};