GET /v1/currency-formatCurrency format information
Business Utils lf-business-utils
Shows how a currency is normally written down, with its symbol, decimal places, and an example. Returns formatting information for a currency code (symbol, decimal places, format example) or lists all supported currencies.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
code | string | No | Currency code (USD, EUR, JPY) |
amount | number | No | Amount to format |
Response Schema
success (boolean): Operation success
code (string): Currency code
name (string): Currency name
symbol (string): Currency symbol
decimals (integer): Decimal places
formatted (string): Formatted amount
currencies (array): All currencies if no code
cURL Example
curl 'https://lf-business-utils.laminarforge.dev/v1/currency-format?code=EUR&amount=1234.5' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/currency-format'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'code': 'EUR', 'amount': 1234.5}
response = requests.get(url, headers=headers, params=params)
print(response.json())