{"size": 1515, "ext": "scrbl", "max_stars_repo_path": "racket/stock-service.scrbl", "max_stars_repo_name": "RealTimeWeb/stocks", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "racket/stock-service.scrbl", "max_issues_repo_name": "RealTimeWeb/stocks", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "racket/stock-service.scrbl", "max_forks_repo_name": "RealTimeWeb/stocks", "max_forks_repo_forks_event_min_datetime": "2020-01-09T04:52:50.000Z", "max_forks_repo_forks_event_max_datetime": "2020-01-09T04:52:50.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 23.3076923077, "max_line_length": 127, "alphanum_fraction": 0.6930693069}

#lang scribble/manual
 
@title{stock-service}
@author{author+email "" ""}

@section{Structs}
 
Get the latest information about stocks.


@defproc[(make-stock [id number?]
			[ticker string?]
			[exchange string?]
			[last number?]
			[last-trade-date string?]
			[last-trade-time string?]
			[change number?]
			[percent-change number?]) stock]{

A structured representation of stock information, including ticker symbol, latest sale price, and price change since yesterday.
@itemlist[

			@item{@racket[id] --- The unique ID number for this ticker symbol}

			@item{@racket[ticker] --- The Ticker Symbol (e.g. AAPL)}

			@item{@racket[exchange] --- The name of the exchange (e.g. NASDAQ)}

			@item{@racket[last] --- The latest sale price for this stock.}

			@item{@racket[last-trade-date] --- The entire date of the last trade.}

			@item{@racket[last-trade-time] --- The time of the last trade.}

			@item{@racket[change] --- The price change since yesterday.}

			@item{@racket[percent-change] --- The percent price change since yesterday.}]}



@section{Functions}

@defproc[(disconnect-stock-service ) void]{

Establishes that data will be retrieved locally.
@itemlist[

		]}

@defproc[(connect-stock-service ) void]{

Establishes that the online service will be used.
@itemlist[

		]}

@defproc[(get-stock-information [ticker string?]) (listof stock?)]{

Retrieves current stock information.
@itemlist[

			@item{@racket[ticker] --- A comma separated list of ticker symbols (e.g. "AAPL, MSFT, CSCO").}]}

