Skip to content

make-a-good-soup/fugle-realtime-swift

Repository files navigation

Swift

Fugle Realtime Swift

Fugle Realtime Swift is a Swift library for accessing the Fugle Realtime API. It provides a simple and easy-to-use interface for developers to retrieve real-time stock market information. This library uses the WebSocket communication protocol and follows the API specifications provided by Fugle.

Installation

To use Fugle Realtime Swift, you can install it using the Swift Package Manager. To add it to your project, open Xcode, select File > Swift Packages > Add Package Dependency and enter the following URL:

https://github.com/Make-a-good-soup/fugle-realtime-swift

Usage

To use Fugle Realtime Swift, you first need to register for a Fugle API account and obtain an API token.

import fugle_realtime_swift

let token = "your-api-token"

let result = await FugleHttpLoader().loadQuote(token: token, symbolId: symbolId)

API Document

Fugle Realtime API

Example

Simulator Screen Recording - iPhone 14 Pro - 2023-02-20 at 20 02 30

Contributing

If you encounter any issues or find any bugs while using Fugle Realtime Swift, feel free to submit an issue or pull request. We welcome contributions from the developer community!

License

Fugle Realtime Swift is released under the MIT license. See LICENSE for details.