metals-api-zylalabs


Namemetals-api-zylalabs JSON
Version 0.5 PyPI version JSON
download
home_pagehttps://github.com/Zyla-Labs/pypi-metals-api
SummaryA Python package to get the latest metals prices from the Metals-API
upload_time2024-05-14 14:34:01
maintainerNone
docs_urlNone
authorZyla Labs
requires_pythonNone
licenseNone
keywords metals-api precious metals api metals api metals precious metals gold silver platinum palladium ruthenium rhodium forex data rates money usd eur btc forex api gbp to usd gbp to eur eur to usd api currency api exchange rate api get currency rates api currency rates php usd to eur api copper nickel aluminium tin zinc
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # [![Metals-API](https://www.metals-api.com/assets/images/brand/icon-with-text.png)](https://metals-api.com)

**Metals-API Python SDK** - The ultimate API for accessing precious metals spot prices and historical data effortlessly.
Explore real-time and historical metal rates with exceptional accuracy.

## Key Features:

- **Built for Developers:** Tailored for developers, ensuring ease of use and seamless integration.
- **Powerful JSON API:** Robust JSON API designed for accurate and efficient data retrieval.
- **Bank-Level Security:** Trust Metals-API with top-tier security measures to safeguard your data.
- **Reliable Data Sources:** Benefit from reliable and accurate data derived from trusted sources.
- **Flexible Integration:** Easily integrate Metals-API into any language, making it adaptable for diverse applications.
- **Historical Data Access:** Dive into historical data for comprehensive analysis and informed decision-making.
- **Exceptional Accuracy:** Rely on Metals-API for spot-on accuracy in real-time and historical data.
- **User-Friendly Documentation:** Navigate through our comprehensive documentation for a smooth integration process.
- **Specialized Support:** Count on our dedicated support team for assistance tailored to your specific needs.

## Supported Symbols

Explore a wide range of supported symbols, including gold, silver, platinum, palladium, and various others. From LBMA Gold to LME Steel, we cover it all. [View Symbols](https://www.metals-api.com/symbols)

## Available Endpoints

The Metals-API API comes with multiple endpoints, each providing different functionality. Please note that depending on your subscription plan, certain API endpoints may or may not be available.

1. **Latest Rates Endpoint**
   - Returns real-time exchange rate data for all available or a specific set of currencies. (The number of symbols per API request depends on the acquired plan).

## Documentation

For detailed information on API endpoints, usage, and integration guidelines, check our [API Documentation](https://www.metals-api.com/documentation).

Start using Metals-API today for unparalleled access to precious metals data. Visit [Metals-API.com](https://metals-api.com) and integrate in just minutes!


## Installation

You can install Metals-API Python SDK with pip.

```bash
pip metals_api_zylalabs
```

## Usage

The Metals-API Python SDK is a wrapper around the [requests](https://docs.python-requests.org/en/master/) library. Metals-API supports a GET request for now.

Sign-up to Metals-API to [get your API key](https://metals-api.com/register) and some credits to get started.

### Making the GET request

```python
>>> from metals_api_zylalabs import MetalsApiClient

>>> client = MetalsApiClient(access_key='REPLACE-WITH-YOUR-ACCESS-KEY')

>>> response = client.get_latest("base", ["symbols"])
```

### Request Example

```python
>>> from metals_api_zylalabs import MetalsApiClient

>>> client = MetalsApiClient(access_key='REPLACE-WITH-YOUR-ACCESS-KEY')

>>> response = client.get_latest("USD", ["XAU", "XAG", "XPT"])
```

### Response Example

```json
{
    "success": true,
    "timestamp": 1715695200,
    "date": "2024-05-14",
    "base": "USD",
    "rates": {
        "USD": 1,
        "XAG": 0.034989609514923,
        "XAU": 0.00042501745902135,
        "XPT": 0.0009786668257129,
        "USDXAG": 28.579913118878963,
        "USDXAU": 2352.8445214994495,
        "USDXPT": 1021.79819906694
    }
}
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Zyla-Labs/pypi-metals-api",
    "name": "metals-api-zylalabs",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "metals-api, precious metals api, metals api, metals, precious metals, gold, silver, Platinum, Palladium, Ruthenium, Rhodium, forex data, rates, money, usd, eur, btc, forex api, gbp to usd, gbp to eur, eur to usd, api, currency api, exchange rate api, get currency rates api, currency rates php, usd to eur api, copper, nickel, aluminium, TIN, Zinc",
    "author": "Zyla Labs",
    "author_email": "hello@zylalabs.com",
    "download_url": "https://files.pythonhosted.org/packages/f3/7c/f6a5e785b01f8b7786af65d42d54488346fec39463119981f4ea73355334/metals_api_zylalabs-0.5.tar.gz",
    "platform": null,
    "description": "# [![Metals-API](https://www.metals-api.com/assets/images/brand/icon-with-text.png)](https://metals-api.com)\r\n\r\n**Metals-API Python SDK** - The ultimate API for accessing precious metals spot prices and historical data effortlessly.\r\nExplore real-time and historical metal rates with exceptional accuracy.\r\n\r\n## Key Features:\r\n\r\n- **Built for Developers:** Tailored for developers, ensuring ease of use and seamless integration.\r\n- **Powerful JSON API:** Robust JSON API designed for accurate and efficient data retrieval.\r\n- **Bank-Level Security:** Trust Metals-API with top-tier security measures to safeguard your data.\r\n- **Reliable Data Sources:** Benefit from reliable and accurate data derived from trusted sources.\r\n- **Flexible Integration:** Easily integrate Metals-API into any language, making it adaptable for diverse applications.\r\n- **Historical Data Access:** Dive into historical data for comprehensive analysis and informed decision-making.\r\n- **Exceptional Accuracy:** Rely on Metals-API for spot-on accuracy in real-time and historical data.\r\n- **User-Friendly Documentation:** Navigate through our comprehensive documentation for a smooth integration process.\r\n- **Specialized Support:** Count on our dedicated support team for assistance tailored to your specific needs.\r\n\r\n## Supported Symbols\r\n\r\nExplore a wide range of supported symbols, including gold, silver, platinum, palladium, and various others. From LBMA Gold to LME Steel, we cover it all. [View Symbols](https://www.metals-api.com/symbols)\r\n\r\n## Available Endpoints\r\n\r\nThe Metals-API API comes with multiple endpoints, each providing different functionality. Please note that depending on your subscription plan, certain API endpoints may or may not be available.\r\n\r\n1. **Latest Rates Endpoint**\r\n   - Returns real-time exchange rate data for all available or a specific set of currencies. (The number of symbols per API request depends on the acquired plan).\r\n\r\n## Documentation\r\n\r\nFor detailed information on API endpoints, usage, and integration guidelines, check our [API Documentation](https://www.metals-api.com/documentation).\r\n\r\nStart using Metals-API today for unparalleled access to precious metals data. Visit [Metals-API.com](https://metals-api.com) and integrate in just minutes!\r\n\r\n\r\n## Installation\r\n\r\nYou can install Metals-API Python SDK with pip.\r\n\r\n```bash\r\npip metals_api_zylalabs\r\n```\r\n\r\n## Usage\r\n\r\nThe Metals-API Python SDK is a wrapper around the [requests](https://docs.python-requests.org/en/master/) library. Metals-API supports a GET request for now.\r\n\r\nSign-up to Metals-API to [get your API key](https://metals-api.com/register) and some credits to get started.\r\n\r\n### Making the GET request\r\n\r\n```python\r\n>>> from metals_api_zylalabs import MetalsApiClient\r\n\r\n>>> client = MetalsApiClient(access_key='REPLACE-WITH-YOUR-ACCESS-KEY')\r\n\r\n>>> response = client.get_latest(\"base\", [\"symbols\"])\r\n```\r\n\r\n### Request Example\r\n\r\n```python\r\n>>> from metals_api_zylalabs import MetalsApiClient\r\n\r\n>>> client = MetalsApiClient(access_key='REPLACE-WITH-YOUR-ACCESS-KEY')\r\n\r\n>>> response = client.get_latest(\"USD\", [\"XAU\", \"XAG\", \"XPT\"])\r\n```\r\n\r\n### Response Example\r\n\r\n```json\r\n{\r\n    \"success\": true,\r\n    \"timestamp\": 1715695200,\r\n    \"date\": \"2024-05-14\",\r\n    \"base\": \"USD\",\r\n    \"rates\": {\r\n        \"USD\": 1,\r\n        \"XAG\": 0.034989609514923,\r\n        \"XAU\": 0.00042501745902135,\r\n        \"XPT\": 0.0009786668257129,\r\n        \"USDXAG\": 28.579913118878963,\r\n        \"USDXAU\": 2352.8445214994495,\r\n        \"USDXPT\": 1021.79819906694\r\n    }\r\n}\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python package to get the latest metals prices from the Metals-API",
    "version": "0.5",
    "project_urls": {
        "Homepage": "https://github.com/Zyla-Labs/pypi-metals-api"
    },
    "split_keywords": [
        "metals-api",
        " precious metals api",
        " metals api",
        " metals",
        " precious metals",
        " gold",
        " silver",
        " platinum",
        " palladium",
        " ruthenium",
        " rhodium",
        " forex data",
        " rates",
        " money",
        " usd",
        " eur",
        " btc",
        " forex api",
        " gbp to usd",
        " gbp to eur",
        " eur to usd",
        " api",
        " currency api",
        " exchange rate api",
        " get currency rates api",
        " currency rates php",
        " usd to eur api",
        " copper",
        " nickel",
        " aluminium",
        " tin",
        " zinc"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e4f7f9d75c909281adf6d5596e905809ff895ea20e9bd211342e58fda5150b47",
                "md5": "95e50c19d0d53d2ac541d6ef953347a0",
                "sha256": "c249263edf2c944f8991c2b736a1314b97e9693ca33009b74616e886194aec5e"
            },
            "downloads": -1,
            "filename": "metals_api_zylalabs-0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "95e50c19d0d53d2ac541d6ef953347a0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3624,
            "upload_time": "2024-05-14T14:33:58",
            "upload_time_iso_8601": "2024-05-14T14:33:58.891482Z",
            "url": "https://files.pythonhosted.org/packages/e4/f7/f9d75c909281adf6d5596e905809ff895ea20e9bd211342e58fda5150b47/metals_api_zylalabs-0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f37cf6a5e785b01f8b7786af65d42d54488346fec39463119981f4ea73355334",
                "md5": "e91f060896ffd1c83f6605c04f137b7a",
                "sha256": "39390c4525b21771901a3581e72f71b611112a0a0a1aaddbcc597cd101a26932"
            },
            "downloads": -1,
            "filename": "metals_api_zylalabs-0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "e91f060896ffd1c83f6605c04f137b7a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3400,
            "upload_time": "2024-05-14T14:34:01",
            "upload_time_iso_8601": "2024-05-14T14:34:01.401454Z",
            "url": "https://files.pythonhosted.org/packages/f3/7c/f6a5e785b01f8b7786af65d42d54488346fec39463119981f4ea73355334/metals_api_zylalabs-0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-14 14:34:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Zyla-Labs",
    "github_project": "pypi-metals-api",
    "github_not_found": true,
    "lcname": "metals-api-zylalabs"
}
        
Elapsed time: 0.22039s