Ribbit Reference Implementation (iOS)

The reference implementation for designing the iOS user interface of a broker-dealer trading application with the Alpaca Broker API. The iOS user interface is implemented using Swift.

To read more about what Ribbit is, its use cases, how it works, and more check out our Ribbit documentation.

You can also access the Ribbit Reference Implementation (Backend) and Ribbit Reference Implementation (Android) for a reference implementation of Ribbit’s backend and Android user interface.


This code is provided as open source for the purpose of demonstration of the Broker API usage. It is not designed for the production use and Alpaca does not offer official support of the code available in this repository.


This application uses KYC for user verification and grants users from anywhere access to the U.S. Stock Market.
See below for examples of various flows included in the app.




Development Setup


To get started, you’ll need to install Xcode 13.1 or newer from the Mac App Store. You’ll also need to install Homebrew, from https://brew.sh.
Before you’re able to compile the app, you’ll need to install its dependencies. To do this, install the Cocoapods package manager from Homebrew:

$ brew install cocoapods

Then, acquire the dependencies:

$ pod install

When the Cocoapods operation is complete, you’ll see a new Ribbit.xcworkspace file. Open this with Xcode to continue.

You can then select the Ribbit scheme, and build & run the project.



View Github