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.
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.
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.