Skip to content

Update #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 60 additions & 57 deletions .versions
Original file line number Diff line number Diff line change
@@ -1,57 +1,60 @@
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
iron:[email protected]
[email protected]_2
[email protected]
[email protected]
[email protected]
local-test:mjr:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
mjr:[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]_1
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
nevtep:[email protected]
[email protected]_1
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
5 changes: 0 additions & 5 deletions bitfinex-api-tests.js

This file was deleted.

13 changes: 12 additions & 1 deletion bitfinex-api.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
crypto = Npm.require('crypto')

Bitfinex = function () {
var _this = this;
// Collections used to manage Bitfinex updating data
Expand Down Expand Up @@ -258,7 +260,7 @@ Bitfinex = function () {
params['until'] = until;
}
if (limit){
params['until'] = until;
params['limit'] = limit;
}
if (wallet && ["trading", "exchange", "deposit"].indexOf(wallet) != -1){
params['wallet'] = wallet;
Expand Down Expand Up @@ -363,6 +365,15 @@ Bitfinex = function () {
var result = _this.makeAuthenticatedRequest(endpoint, {});
return result.data;
};
this.makeWithdrawal = function(type, wallet, amount, params) {
var endpoint = '/withdrawal';
params.withdraw_type = type;
params.walletselected = wallet;
params.amount = amount;
var result = _this.makeAuthenticatedRequest(endpoint, params);
return result.data;
}

};
bitfinex = new Bitfinex();
console.log('You now have an instance of the bitfinex API object available');
14 changes: 0 additions & 14 deletions client/authenticate.html

This file was deleted.

30 changes: 0 additions & 30 deletions client/authenticate.js

This file was deleted.

Empty file removed client/dashboard.js
Empty file.
2 changes: 0 additions & 2 deletions client/router.js

This file was deleted.

17 changes: 5 additions & 12 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@
Package.describe({
name: 'mjr:bitfinex-api',
version: '0.0.1',
name: 'nevtep:bitfinex-api',
version: '0.0.3',
// Brief, one-line summary of the package.
summary: 'A simple wrapper that allows one to interact with bitfinex',
summary: 'A simple wrapper that allows one to interact with bitfinex, without dependency of iron router',
// URL to the Git repository containing the source code for this package.
git: 'https://github.com/joshuarossi/bitfinex_api.git',
git: 'https://github.com/nevtep/bitfinex_api.git',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: 'README.md'
});

Package.onUse(function(api) {
api.use(['http', 'mongo', 'livedata', 'meteor'], ['server']);
api.use(['templating', 'iron:[email protected]', 'meteor-platform']);
api.use(['meteor-platform']);
api.versionsFrom('1.1.0.2');
api.addFiles(['bitfinex-api.js', 'server/methods.js'], 'server');
api.addFiles(['client/authenticate.html', 'client/authenticate.js','client/router.js'], 'client');
api.export(['bitfinex', 'Bitfinex'], 'server');
});

Package.onTest(function(api) {
api.use('tinytest');
api.use('mjr:bitfinex-api');
api.addFiles('bitfinex-api-tests.js');
});