Lightweight Swift library to access the Alpha Vantage API. The library does also support the Alpha Vantage API exposed on RapidAPI.
AlphaSwiftage is distributed using the Swift Package Manager. To install it add it as a dependency within your Package.swift manifest:
dependencies: [
.package(url: "https://github.com/adborbas/alphaswiftage.git", from: "0.5.0")
]Using the native Alpha Vantage API:
import AlphaSwiftage
let service = AlphaVantageService(apiKey: "{YOUR_API_KEY}")
let symbols = try await service.symbolSearch(keywords: "VWCE")Alpha Vantage API exposed on RapidAPI:
import AlphaSwiftage
let service = AlphaVantageService(serviceType: .rapidAPI(apiKey: "{YOUR_API_KEY}"))
let symbols = try await service.symbolSearch(keywords: "VWCE")