extract
Gets the query-string portion of an API url from a request object, by reading the object's non-null fields as endpoint parameters.
Return
the query-string portion of an API url, ready for the api key to be appended
Parameters
object
a request object with the valid API parameters
Builds an http request from a request object's parameters and the api key.
Return
a request targeting BASE_URL with the extracted parameters and key
Parameters
request
any endpoint request object
api Key
Alphavantage API key