Skip to content

adborbas/alphaswiftage

Repository files navigation

AlphaSwiftage

Lightweight Swift library to access the Alpha Vantage API. The library does also support the Alpha Vantage API exposed on RapidAPI.

Installation

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")
]

Usage

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")

Supported routes

About

Lightweight Swift library to access the Alpha Vantage API

Resources

License

Stars

Watchers

Forks

Languages