Click here to Skip to main content
15,912,493 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i been serching a calling api in bitrexx market cap seem not to work in normal call...

What I have tried:

JavaScript
sampleApp.controller('MarketsCtrl', ['$scope', '$http', function($scope, $http) {

$http.get("https://bittrex.com/api/v1.1/public/getmarketsummary?market=btc-xem")
   .then(function(data){
    $scope.price = data.Last;

   }).
   error(function(datas) {
      log error
  });
});
Posted
Updated 15-Aug-17 21:10pm
v2

1 solution

you might be getting this error [No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.] in chrome console, follow the url you will get more information
javascript - "No 'Access-Control-Allow-Origin' header is present on the requested resource" - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900