Code Monkey home page Code Monkey logo

graviex-js's Introduction

graviex-js

A libary for graviex API written in JS

graviex-js

A libary for graviex API written in JS

Here is a full implimentation of the graviex exchange API in a nodejs NPM package.

accessKey secretKey listMarkets allMarketsTicker ticker account allDeposits deposits deposit depositAddress orders ordersAll createOrder order cancelOrder clearAllOrdersSide clearAllOrders orderBook depth trades myTrades kLine timestamp

//listMarkets
//Get all available markets
/*
listMarkets(function(res){
	if(!res.error){
		//console.log(res);
		for (var key in res) {
			if (res.hasOwnProperty(key)) {
				console.log(res[key]);
			}
			}
	}else{
		console.log(res)
	}
});
*/  

//createOrder    
//Create a Sell/Buy order    
/*    
createOrder("onzbtc", "buy", "5.0", "0.000000200", function(res){    
    if(!res.error){    
        console.log(res);    
    }else{    
       console.log("ERROR: " + res)    
    }    
});

*/

Example

Install:

npm install graviex

Example:

    //Import module
    var  graviex  =  require("./graviex.js"); 
    //Settings / Config  
    graviex.accessKey  =  "";    
    graviex.secretKey  =  ""
    
    graviex.allMarketsTicker(function(res){
        if(!res.error){        
            console.log(res)
        }else{        
            console.log(res)
        }        
    });

For a more detailed example, please see "mm.js" in the git directory.

graviex-js's People

Contributors

ethymoney avatar scottie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.