Swiftpack.co -  toniremi/PolygonioSwift as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Swift wrapper to connect to the Polygon.io API to fetch Stocks, Forex and Crypto data.
.package(url: "https://github.com/toniremi/PolygonioSwift.git", from: "1.0.6")


CI Status

GitHub tag (latest SemVer)



Simply import PolygonioSwift with:

import PolygonioSwift

then create a polygon swift object like:

let polygon = PolygonioSwift.Client(key: "YOUR_POLYGON_API_KEY")

and finally simply call any of the endpoints you want to get info from. The names are the same as in polygon.io docs.

polygon.tickers(sort: .type, type: nil, market: .Stocks, locale: nil, search: "AAPL", active: true) { (result:TickersQueryResponse?, err) in
    // check if we got any errors
    if let err = err {
    } else {
        // results will hold the full response as it comes from Polygon.io
        // the candle data is in an array inside results.tickers

Please take a look at the documentation to know what endpoints does polygon.io has and what info to expect back at https://polygon.io/docs/#getting-started.

To run the example project, clone this repo, and open iOS Example.xcworkspace from the iOS Example directory.

In the examples you can see more methods although all of them work in the same way just changes name and parameter that they will accept.


You need to have a valid and working Polygon API Key. Please create an account at https://polygon.io/ to obtain a valid API key.


Add this to your project using Swift Package Manager. In Xcode that is simply: File > Swift Packages > Add Package Dependency... and you're done. Alternative installations options are shown below for legacy projects.


If you are already using CocoaPods, just add the following line to your Podfile then run pod install.

pod 'PolygonioSwift'


If you are already using Carthage, just add to your Cartfile:

github "toniremi/PolygonioSwift" ~> 0.1

Then run carthage update to build the framework and drag the built PolygonioSwift.framework into your Xcode project.


Antoni Remeseiro Alfonso


PolygonioSwift is available under the MIT license. See the LICENSE file for more information.


Stars: 2
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Fixed search point and tickers query end point
1 week ago

Fixed search point and tickers query end point. Also added a new file to hold all the enums we use on the endpoints to make it easier to add modifications here.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API