- Website: https://fxapi.com
- Docs: https://fxapi.com/docs/
pod 'Fxapi', :git => 'https://github.com/martechdev/fxapi-ios.git', :tag => '0.1.0'
import Fxapi
let client = FxApiClient(configuration: .init(apiKey: "YOUR_API_KEY"))
let latest = try await client.latest(["base": "USD", "symbols": "EUR,GBP"])
let pairs = ["EUR,GBP", "JPY,CAD"]
for p in pairs {
let res = try await client.latest(["base": "USD", "symbols": p])
print(res)
}