You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# AlphaSwiftage
2
2
3
-
Lightweight Swift library to access the [Alpha Vantage API](https://www.alphavantage.co/documentation/).
3
+
Lightweight Swift library to access the [Alpha Vantage API](https://www.alphavantage.co/documentation/). The library does also support the [Alpha Vantage API exposed on RapidAPI](https://rapidapi.com/alphavantage/api/alpha-vantage).
4
4
5
5
## Installation
6
6
@@ -14,20 +14,27 @@ dependencies: [
14
14
15
15
## Usage
16
16
17
+
Using the native Alpha Vantage API:
18
+
17
19
```swift
18
20
importAlphaSwiftage
19
21
20
22
let service =AlphaVantageService(apiKey: "{YOUR_API_KEY}")
21
23
let symbols =tryawait service.symbolSearch(keywords: "VWCE")
22
24
```
23
25
26
+
Alpha Vantage API exposed on RapidAPI:
27
+
28
+
```swift
29
+
importAlphaSwiftage
30
+
31
+
let service =AlphaVantageService(serviceType: .rapidAPI(apiKey: "{YOUR_API_KEY}"))
32
+
let symbols =tryawait service.symbolSearch(keywords: "VWCE")
0 commit comments