farjun / RailsStockProject

python django project for trading platform
1 stars 1 forks source link

Understand how the data looks like and add it to our wiki #2

Open farjun opened 4 years ago

farjun commented 4 years ago

We need to know how the data looks like and how do we fetch it. Be carful - we have limited access for the website and we will need some caching for it.

MajdVictor commented 4 years ago

The response below is a JSON format for Apple's stocks,we used different API:https://financialmodelingprep.com/api/v3/company/profile/AAPL . all the fields exist except the Top-Rank.

{ "symbol" : "AAPL", "profile" : { "price" : 220.76, "beta" : "1.139593", "volAvg" : "36724977", "mktCap" : "1090573773990.00", "lastDiv" : "2.92", "range" : "142-233.47", "changes" : 0.08, "changesPercentage" : "(+0.04%)", "companyName" : "Apple Inc.", "exchange" : "Nasdaq Global Select", "industry" : "Computer Hardware", "website" : "http://www.apple.com", "description" : "Apple Inc is designs, manufactures and markets mobile communication and media devices and personal computers, and sells a variety of related software, services, accessories, networking solutions and third-party digital content and applications.", "ceo" : "Timothy D. Cook", "sector" : "Technology", "image" : "https://financialmodelingprep.com/images-New-jpg/AAPL.jpg" } }