Currencies
GET /api/currencies
Section titled “GET /api/currencies”Get Currencies
Section titled “Get Currencies”This endpoint retrieves all currencies available in the application. The response includes detailed information for each currency, such as its code, name, conversion rate, and configuration parameters.
Request Details
Section titled “Request Details”- Method:
GET - URL:
https://api.money-go.com/api/currencies
Code Examples
Section titled “Code Examples”curl -X GET "https://api.money-go.com/api/currencies"<?php
$url = "https://api.money-go.com/api/currencies";$result = file_get_contents($url);if ($result === FALSE) { die('Error fetching currencies');}$response = json_decode($result, true);print_r($response);import fetch from 'node-fetch';
async function getCurrencies(): Promise<void> { const url = "https://api.money-go.com/api/currencies"; try { const response = await fetch(url, { method: "GET" }); if (!response.ok) { throw new Error(`HTTP error! Status: ${response.status}`); } const data = await response.json(); console.log("Currencies:", data); } catch (error) { console.error("Error fetching currencies:", error); }}
getCurrencies();Response 200 (application/json)
Section titled “Response 200 (application/json)”{ "status": true, "data": [ { "id": 19, "code": "ETH", "icon": null, "name": "Ethereum", "rate": 5.256586319813e-6, "timeUpdatedRate": "2021-06-08T09:05:19+00:00", "prefix": "E", "decimals": 8, "isActive": false, "minAmount": 0, "maxAmount": 0 } ]}Field Descriptions
Section titled “Field Descriptions”Root Object
Section titled “Root Object”| Field | Type | Description |
|---|---|---|
| status | boolean | Indicates whether the request was successful. |
| data | array | List of currency objects. |
Currency Object
Section titled “Currency Object”| Field | Type | Description |
|---|---|---|
| id | number | Unique identifier for the currency. |
| code | string | Currency code (e.g., “ETH”). |
| icon | string | URL or filename for the currency icon; may be null. |
| name | string | Name of the currency (e.g., “Ethereum”). |
| rate | number | Conversion rate for the currency. |
| timeUpdatedRate | string | ISO 8601 timestamp indicating when the rate was last updated. |
| prefix | string | Currency prefix (e.g., “E”). |
| decimals | number | Number of decimal places for currency values. |
| isActive | boolean | Indicates whether the currency is active. |
| minAmount | number | Minimum allowed transaction amount in this currency. |
| maxAmount | number | Maximum allowed transaction amount in this currency. |