Add Ticker storage functionality for Exchanges (HTTP REST only)

This commit is contained in:
Adrian Gallagher
2017-02-20 10:38:04 +11:00
parent 3de08b76e4
commit e7148f174b
28 changed files with 456 additions and 326 deletions

View File

@@ -4,7 +4,7 @@
<label>Exchange: {{exchange.exchangeName}}
</div>
<div class="row">
<label>Currency: </label>{{currency.CryptoCurrency}}
<label>Currency: </label>{{currency.CurrencyPair}}
</div>
<div class="row">
<label>Lowest Ask: </label><label>{{currency.Ask}}</label>

View File

@@ -15,7 +15,7 @@ angular.module('myApp.buy',[]).component('buy', {
});
$scope.GetLatestDataFromExchangeCurrency = function () {
$http.get('/GetLatestDataFromExchangeCurrency?exhange=' + $scope.exchange.exchangeName + '&currency='+ $scope.currency.CryptoCurrency).success(function (data) {
$http.get('/GetLatestDataFromExchangeCurrency?exhange=' + $scope.exchange.exchangeName + '&currency='+ $scope.currency.CurrencyPair).success(function (data) {
$scope.currency.Last = data.Last;
$scope.currency.Volume = data.Volume;
$scope.currency.Ask = data.Ask;

View File

@@ -18,7 +18,7 @@
<th>Volume</th>
</tr>
<tr ng-repeat="value in exchange.exchangeValues">
<td><a href="" ng-click="reloadDashboardWithExchangeCurrency(exchange,value)">{{value.CryptoCurrency}}</a></td>
<td><a href="" ng-click="reloadDashboardWithExchangeCurrency(exchange,value)">{{value.CurrencyPair}}</a></td>
<td>{{value.Last | number: 2}}</td>
<td>{{value.Volume | number: 2}}</td>
</tr>

View File

@@ -4,7 +4,7 @@
<label>Exchange: {{exchange.exchangeName}}
</div>
<div class="row">
<label>Currency: </label>{{currency.CryptoCurrency}}
<label>Currency: </label>{{currency.CurrencyPair}}
</div>
<div class="row">
<label>Bid: </label><label>{{currency.Bid}}</label>

View File

@@ -15,7 +15,7 @@ angular.module('myApp.sell',[]).component('sell', {
});
$scope.GetLatestDataFromExchangeCurrency = function () {
$http.get('/GetLatestDataFromExchangeCurrency?exhange=' + $scope.exchange.exchangeName + '&currency='+ $scope.currency.CryptoCurrency).success(function (data) {
$http.get('/GetLatestDataFromExchangeCurrency?exhange=' + $scope.exchange.exchangeName + '&currency='+ $scope.currency.CurrencyPair).success(function (data) {
$scope.currency.Last = data.Last;
$scope.currency.Volume = data.Volume;
$scope.currency.Bid = data.Bid;

View File

@@ -2,7 +2,7 @@
<div ng-show="loaded">
<div class="col-md-11">
<h2>{{exchange.exchangeName}} Exchange</h2>
<h4>{{currency.CryptoCurrency}}</h4>
<h4>{{currency.CurrencyPair}}</h4>
</div>
<div class="col-md-8">
<div class="col-md-12">