+
+
+
+ | {{sellOrder.price}} |
+ {{sellOrder.currencyOneAmount}} |
+ {{sellOrder.currencyTwoAmount}} |
+ {{sellOrder.sum}} |
+
+
+
+
+
\ No newline at end of file
diff --git a/web/app/components/sell-orders/sell-orders.js b/web/app/components/sell-orders/sell-orders.js
new file mode 100644
index 00000000..c2a48ca2
--- /dev/null
+++ b/web/app/components/sell-orders/sell-orders.js
@@ -0,0 +1,52 @@
+
+angular.module('myApp.sellOrders',[]).component('sellorders', {
+ templateUrl: '/components/sell-orders/sell-orders.html',
+ controller:'SellOrdersController',
+ controller: function ($scope, $http, Notification, $rootScope) {
+ $scope.currency = {};
+ $scope.exchange = {};
+
+ $rootScope.$on('CurrencyChanged', function (event, args) {
+ $scope.currency = args.Currency;
+ $scope.exchange = args.Exchange;
+ $scope.currencyOne = $scope.currency.FirstCurrency;
+ $scope.currencyTwo = $scope.currency.SecondCurrency;
+ $scope.getRecentSellOrders();
+ });
+
+ $scope.getRecentSellOrders = function() {
+ var exchData = {params : {exchangeName: '', currencyPair:''}};
+ $http.get('/GetSellOrdersForCurrencyPair' , exchData).success(function(data) {
+ $scope.sellOrders = data;
+ }).error(function() {
+ $scope.sellOrders = [
+ {price:456,currencyOneAmount:12,currencyTwoAmount:13,sum:1111},
+ {price:234,currencyOneAmount:15,currencyTwoAmount:13,sum:11231},
+ {price:12344,currencyOneAmount:232,currencyTwoAmount:13,sum:4511},
+ {price:15467,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:6717,currencyOneAmount:2452,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:34522,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ {price:17,currencyOneAmount:22,currencyTwoAmount:13,sum:11212311},
+ ];
+ });
+ }
+
+ }
+});
+
+
+
diff --git a/web/app/index.html b/web/app/index.html
index c712067a..a7aa6939 100644
--- a/web/app/index.html
+++ b/web/app/index.html
@@ -69,6 +69,7 @@
+
diff --git a/web/app/views/home/home.html b/web/app/views/home/home.html
index 86a80215..b9ff274a 100644
--- a/web/app/views/home/home.html
+++ b/web/app/views/home/home.html
@@ -1,6 +1,6 @@
-
+
{{exchange.exchangeName}} Exchange
{{currency.CurrencyPair}}
@@ -9,6 +9,9 @@
Sell orders
+
+
+
Buy orders
@@ -40,10 +43,7 @@