Glidera - buy/sell
This commit is contained in:
parent
4ed39a22d4
commit
e266ded1d1
10 changed files with 309 additions and 32 deletions
13
src/js/controllers/buyGlidera.js
Normal file
13
src/js/controllers/buyGlidera.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('buyGlideraController',
|
||||
function() {
|
||||
|
||||
this.getBuyPrice = function(token, price) {
|
||||
var self = this;
|
||||
glideraService.buyPrice(token, price, function(error, sellPrice) {
|
||||
self.sellPrice = sellPrice;
|
||||
});
|
||||
};
|
||||
|
||||
});
|
||||
13
src/js/controllers/glidera.js
Normal file
13
src/js/controllers/glidera.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('glideraController',
|
||||
function(glideraService) {
|
||||
|
||||
this.init = function(token) {
|
||||
var self = this;
|
||||
glideraService.getTransactions(token, function(error, txs) {
|
||||
self.txs = txs;
|
||||
});
|
||||
};
|
||||
|
||||
});
|
||||
14
src/js/controllers/sellGlidera.js
Normal file
14
src/js/controllers/sellGlidera.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('sellGlideraController',
|
||||
function(glideraService) {
|
||||
|
||||
this.getSellPrice = function(token, price) {
|
||||
var self = this;
|
||||
glideraService.sellPrice(token, price, function(error, sellPrice) {
|
||||
self.sellPrice = sellPrice;
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue