How I Built a Real Time Stock Ticker App in Rust in Tamil? | Rust Projects for Beginners#5

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
real time stock ticket app that could trace our company stock details like latest price return on equity in the industry return on assets Etc exting right so let's get right into it hello learn rust by building Real Time Project series number five real time stock ticker app in r in the video blueprint first free stock market API which is open Vantage Market will ask few information it's very simple in the information you'll be given a free APA key end points being used in the open Vantage global global Cod the same forw as the function overw and information so let's see how we can implement this in V so first cargo new let's change the working directory dependencies first request model which is used for HP request and response second toky modeln thiron which is used for Json dation purpose finally use command so use firstest mod error modu V then use S D serialize serialize then use pretty table table row cell then we might need row alone okay structureal it's Global code again inside an object so it's nested response so first Global code response which will have Global as a nested structure Global Li struct Global code response s rame equal to Global code Global Cod equal to Global code Global Cod rest is used to map the dation going to be automatically to this particular structure then next structure so I will copy paste all this just to save time struct Global code so GL so then we will have a parameter price which will be string okay so next overview structure over so for indry Rao return onity return on asss syn function either okay which is going to be Google here then AP key STD variable have display error Mage saying environment environment variable not found okay then let Global quote URL equal to so Global quote URL form so in the URL is going to be formatted with ap and symbol so format in the URL we have to give our symbol and AP then the same for overview URL format in the URL request mod request or get method response so let Global code response equal to request get ambur Global code URL so it's going to be a synchronous function so question mark and Json and then the same for overview response as well so it's going to be overview response equal to overview URL it's going to be overview structuring so now we want this in a table format so let mute table equal to table newable information like stock information detail Etc so table add row row off so inside square brackets so stock name industry p ratio return on Equity R if you want you can display some other informations as well then let price equal to Global code response we will get Global Cod and the remaining stock so table add row let's add a new row here so VOR new first going so let's add price okay so first it's going to be stock name so overview response overview response which will be symbol then second is going to be industry response price Global code respons which we had already acquired the variable called price thenation so for Simplicity copy paste this so it's going to be e ratio return on Equity return on assets then we will be asking the table to print STD so fine and okay [Music] St this one okay so let's try to Sol one by [Music] one finally so here we go Google stock stocking information where this belongs to this industry the current price $14.9 and the P by ratio all and I'm going to return on myself so if you want to build Tic Tac to game rest here you go in the qu have fun keep coding I'll meet you soon take a [Music]
Info
Channel: Let Us Code Together
Views: 83
Rating: undefined out of 5
Keywords: Rust programming, stock ticker, real-time application, async Rust, Tokio, reqwest, Serde, JSON parsing, Prettytable, Rust tutorial, API integration
Id: RWUnd9gWkPI
Channel Id: undefined
Length: 9min 53sec (593 seconds)
Published: Mon Apr 29 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.