mathisonian / benjamin Goto Github PK
View Code? Open in Web Editor NEWbitcoin trading bot and analytics platform
bitcoin trading bot and analytics platform
I'm using the latest version of the library, with node 0.10.17 . With this code, it downloads the latest trades, and then does nothing. What am I doing wrong? This is a really great idea for a library, and I'd like to help it succeed:
var Benjamin = require("benjamin");
var options = {
client:{
api_key:"BLAH",
api_secret:"SEEKRIT"
}
};
var benjamin = new Benjamin(options);
var strategy = {
name:"Max-strategy",
initialize:function(){
console.log("Init!");
},
tick:function(Trades,currentSuggestion,callback){
console.log("Here!");
callback(0);
},
shouldExit:function(){
return false;
}
};
benjamin.use(strategy);
var start = Math.floor(Date.now()/1000)-31*24*60*60;
var end = Math.floor(Date.now()/1000);
benjamin.simulate({
start: start, // UNIX-timestamps
end: end,
interval:15
});
I'm looking forword to the bot could support LakeBTC which is one of major exchanges in the world, and it's available web socket spi, does it add support it? thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.