This project is composed of the following:
A python script that queries an api and extracts and modifies it so as to get the average price of the top 10 items being sold and saves it to a database.
The information in the database can then be used by the php server and create an API that will respond to Ajax requests.
I am using the Warframe Market API here since data is easily available, often updated, exploitable and has a manageable amount of items (2478) as opposed to databases containing real life items and prices owned by big corporations.
PHP, Laravel 4.2, Python, NumPy, JQuery UI, Ajax, Bootstrap, Chart.js, JSON
2nd February 2019 - 14th February 2019, in my free time.
During this project I learned to use Ajax and how to make it "communicate" with a php server via JSON.
Python stuff like removing NaN values from an array in python using NumPy : a=np.nan_to_num(numlist[0:4])
Gained valuable experience using JQuery UI and JQuery
Discovered Chart.js and managed to apply a graph to represent a dataset
That you need to clean old data before clearing and refilling the graph otherwise you get old data polluting new graphs
Highest priced itemsView in graph
Arcane Vanguard Rhino Helmet528.25
Wolf Sledge Set478.5
Arcane Pendragon Excalibur Helmet465.67
Broken War Set380
Arcane Swindle Loki Helmet357.5
Arcane Coil Mag Helmet353
Lowest priced itemsView in graph
Grineer Settlement Artillery Scene1
Cyan Ayatan Star1
Top risingView in graph
Dropping fastView in graph
Stradavar Prime Set-100%
Axi E1 Intact-71%
Stock Market Displaying 40/1827 items, ignoring items with 0% change.. (Refresh the page for different items) Sorted by difference
Meso S2 Intact63%
Dual Kamas Prime Handle30%
Vectis Prime Blueprint16%
Nova Prime Systems11%
Carrier Prime Carapace5%
Bane of Corrupted5%
Lato Vandal Blueprint-3%
Tiberon Prime Set-5%
Strun Wraith Barrel-8%
Latron Wraith Blueprint-10%
Arcane Storm Volt Helmet-10%
Chroma Prime Blueprint-15%
Rubico Prime Blueprint-24%
Fang Prime Blueprint-50%