mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-01 23:16:51 +00:00
Add Ticker storage functionality for Exchanges (HTTP REST only)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -15,7 +15,7 @@ angular.module('myApp.buy',[]).component('buy', {
|
||||
});
|
||||
|
||||
$scope.GetLatestDataFromExchangeCurrency = function () {
|
||||
$http.get('/GetLatestDataFromExchangeCurrency?exhange=' + $scope.exchange.exchangeName + '¤cy='+ $scope.currency.CryptoCurrency).success(function (data) {
|
||||
$http.get('/GetLatestDataFromExchangeCurrency?exhange=' + $scope.exchange.exchangeName + '¤cy='+ $scope.currency.CurrencyPair).success(function (data) {
|
||||
$scope.currency.Last = data.Last;
|
||||
$scope.currency.Volume = data.Volume;
|
||||
$scope.currency.Ask = data.Ask;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -15,7 +15,7 @@ angular.module('myApp.sell',[]).component('sell', {
|
||||
});
|
||||
|
||||
$scope.GetLatestDataFromExchangeCurrency = function () {
|
||||
$http.get('/GetLatestDataFromExchangeCurrency?exhange=' + $scope.exchange.exchangeName + '¤cy='+ $scope.currency.CryptoCurrency).success(function (data) {
|
||||
$http.get('/GetLatestDataFromExchangeCurrency?exhange=' + $scope.exchange.exchangeName + '¤cy='+ $scope.currency.CurrencyPair).success(function (data) {
|
||||
$scope.currency.Last = data.Last;
|
||||
$scope.currency.Volume = data.Volume;
|
||||
$scope.currency.Bid = data.Bid;
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user