1.0.4 • Published 1 year ago

yobit-exchange-api v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

yobit-exchange-api

This is a very simple api client that helps interact with the yobit cryptocurrency exchange api.

Installation

npm install yobit-exchange-api --save

Usage

var Yobit = require('yobit-exchange-api');
var VersionTwo = require('yobit-exchange-api/lib/version_two');
var Trade = require('yobit-exchange-api/lib/trade');

var keys = {key: '', secret: ''}
var yobit = new Yobit(keys)
var version2 = new VersionTwo(keys);
var trade = new Trade(keys);

trade.getInfo(function(err, data) {
  console.log(data);
})

version2.ticker('ltc_btc', function(err, data) {
  console.log(data);
})

version2.depth('ltc_btc', function(err, data) {
  console.log(data);
})

version2.trades('ltc_btc', function(err, data) {
  console.log(data);
})

yobit.fee(['ETH-BTC'], function(err, data) {
  console.log(data);
})

yobit.ticker(['ETH-BTC'], function(err, data) {
  console.log(data);
})

yobit.depth(['ETH-BTC'], function(err, data) {
  console.log(data);
})

yobit.trades(['ETH-BTC'], function(err, data) {
  console.log(data);
})

yobit.info(function(err, data) {
  console.log(data);
})

Contributing

If you'd like to contribute a feature or bugfix: Thanks! To make sure your fix/feature has a high chance of being included, please read the following guidelines:

  1. Post a pull request.
  2. Make sure there are tests! We will not accept any patch that is not tested. It's a rare time when explicit tests aren't needed. If you have questions about writing tests for paperclip, please open a GitHub issue.

And once there are some contributors, then I would like to thank all of the contributors!

License

It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.

Copyright

© 2018 Scott Ballantyne. See LICENSE for details.

1.0.4

1 year ago

1.0.2

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago