Skip to content

martechdev/currencyapi-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Currencyapi (CocoaPods)

Installation

pod 'Currencyapi', :git => 'https://github.com/martechdev/currencyapi-ios.git', :tag => '0.1.0'

Usage

import Currencyapi
let client = CurrencyApiClient(configuration: .init(apiKey: "YOUR_API_KEY"))
let latest = try await client.latest(["base_currency": "USD", "currencies": "EUR,GBP"]) 

Examples

Convert amount

let convert = try await client.latest(["base_currency": "USD", "currencies": "EUR"]) // then compute amount * rate

Historical range

// You can call other endpoints (add helpers as needed)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published