GreyOps Posted August 27, 2016 Share Posted August 27, 2016 https://politicsandwar.com/api/tradeprice/resource=aluminum {"resource": "aluminum","avgprice": "2393","marketindex": "20,571","highestbuy": {"date": "2016-08-26 18:32:19","nationid": "12688","amount": "1687","price": "2303","totalvalue": 3885161},"lowestbuy": {"date": "2016-08-26 18:37:44","nationid": "21386","amount": "4247","price": "2399","totalvalue": 10188553}} https://politicsandwar.com/api/tradeprice/resource=bauxite {"resource": "bauxite","avgprice": "2695","marketindex": "20,464","highestbuy": {"date": "2016-08-26 22:28:57","nationid": "9748","amount": "1000","price": "2587","totalvalue": 2587000},"lowestbuy": {"date": "2016-08-26 18:37:16","nationid": "30523","amount": "1398","price": "2775","totalvalue": 3879450}} All remaining resources are similar Quote Link to comment Share on other sites More sharing options...
Kid Winchell Posted August 27, 2016 Share Posted August 27, 2016 The numbers are right, it's the names that are wrong. The API tells you the average price of recent trades, the price of the highest buy offer available, and price of the lowest sell offer available. The first two are labeled intuitively as avgprice and highestbuy, while the last item is labeled lowestbuy. Why? Because !@#$ you, that's why. Quote Link to comment Share on other sites More sharing options...
GreyOps Posted August 27, 2016 Author Share Posted August 27, 2016 ok, I'll run with that and just mentally change the headers, or write my own headers. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.