11/**
2- APIs provided by Alpha Vantage.
2+ Constants of APIs provided by Alpha Vantage.
33 */
4- public struct AlphaVantageAPI {
4+ public struct ApiConst {
55 static let url = " https://www.alphavantage.co/query? "
66
77 private init ( ) { }
@@ -21,15 +21,15 @@ public struct AlphaVantageAPI {
2121 - function: The API function of your choice
2222 - symbol: The symbol of the global security of your choice.
2323 For example: `symbol=MSFT`
24- - dataType: Data format to be returned from API requeset. Default
24+ - dataType: Data format to be returned from API requeset. Default
2525 format is `.json`
26- - apiKey: Your API key. Claim your free API key
26+ - apiKey: Your API key. Claim your free API key
2727 [here](https://www.alphavantage.co/support/#api-key)
2828 */
2929 static func api( function: Function ,
30- symbol: String ,
31- dataType: DataType = . json,
32- apiKey: String ) -> String {
30+ symbol: String ,
31+ dataType: DataType = . json,
32+ apiKey: String ) -> String {
3333 let temp = " \( url) function= "
3434 var api = " "
3535
@@ -94,7 +94,7 @@ public struct AlphaVantageAPI {
9494 Daily, weekly, and monthly time series contain 20+ years of
9595 historical data.
9696 */
97- public enum Function {
97+ enum Function {
9898 /**
9999 Intraday time series (timestamp, open, high, low, close, volume)
100100 of the equity specified.
0 commit comments