This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var mcxnow = require('mcxnow'); | |
| var moment = require('moment'); | |
| var util = require('../core/util'); | |
| var _ = require('lodash'); | |
| var log = require('../core/log') | |
| var Trader = function(config) { | |
| this.key = config.key; | |
| this.secret = config.secret; | |
| this.asset = config.asset; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var request = require("request") | |
| xml2js = require("xml2js"), | |
| async = require("async"); | |
| var mcxnow = function(user, pass, nonceInput) { | |
| var self = this; | |
| self.url = "https://mcxnow.com/"; | |
| self.user = user; | |
| self.pass = pass; | |
| self.nonce = nonceInput; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // sent advice over to the IRC channel | |
| Actor.prototype.emitAdvice = function() { | |
| var stuff | |
| if(this.advice == 'long') { | |
| stuff = c.green('Go long; buy.'); | |
| } else if(this.advice == 'short') { | |
| stuff = c.red('Go short; sell.'); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Bter = require('bter'); | |
| var moment = require('moment'); | |
| var util = require('../core/util'); | |
| var _ = require('lodash'); | |
| var log = require('../core/log') | |
| var Trader = function(config) { | |
| this.key = config.key; | |
| this.secret = config.secret; |