My CS490 project using Dart and Flutter for cross platform building.
The purpose of this app is to keep track of stocks that you choose. I am going to be leveraging the Investors Exchange (IEX) Trading API. This allows me to get a bunch of information about the stock market, as well as information regarding individual stocks.
I am going to be using Investors Exchange (IEX) Trading API. This API is pretty simple in that there are not many endpoints, but they are very detailed in what they give you. For instance, .../stock/aapl/book
returns information about the quote, bids, asks, trades, and system events.
An example in JavaScript would look like this...
fetch('https://cloud.iexapis.com/stable/stock/aapl/quote/?token=$token').then(
response => {
//store information somewhere
}
);
Also, this API seems to be faster than Yahoo!'s API, which is nice, but hardly noticeable.
I am planning on using a GridView layout, I decided on using a 1 card wide column to allow for all the information needed to look the best. I currently have dark mode enabled, but I want to implement a way to be able to toggle dark/light modes.
I like to do as much as I can without relying on external packages. Unfortunately, it gets hard to do everything myself when I want to do more and more complex things. The first package I needed to use was http
. I think this package should be included in the main dart package, but that's neither here nor there. I needed http
since I was calling an API. The next thing I wanted was the ability to refresh on pull down. This would have been very difficult to implement on my own and I didn't want to spend half the time figuring this out. Luckily, there is a package pull_to_refresh
that does exactly what I needed.
Complete | Todo | Branch |
---|---|---|
Yes | Ability to add a new stock | N/A |
No | Search stocks by name | |
No | Add a new info page or dialog | |
No | Make a new page for more information about a stock |