{"id":26758576,"url":"https://github.com/zaber-dev/stellar-price-api","last_synced_at":"2025-03-28T16:29:34.371Z","repository":{"id":284310066,"uuid":"954498353","full_name":"zaber-dev/Stellar-Price-API","owner":"zaber-dev","description":"A lightweight API that provides real-time price data for a token on Stellar Blockchain in both XLM and USD.","archived":false,"fork":false,"pushed_at":"2025-03-25T08:07:46.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T08:38:47.111Z","etag":null,"topics":["blockchain","learn","price","price-api","sdex","stellar","stellar-api","stellar-network"],"latest_commit_sha":null,"homepage":"https://stellar-price-api.onrender.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaber-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-25T07:12:30.000Z","updated_at":"2025-03-25T08:10:41.000Z","dependencies_parsed_at":"2025-03-25T08:38:50.202Z","dependency_job_id":"a92c5b67-e98a-4424-9876-5f4801f2b600","html_url":"https://github.com/zaber-dev/Stellar-Price-API","commit_stats":null,"previous_names":["zaber-dev/stellar-price-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaber-dev%2FStellar-Price-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaber-dev%2FStellar-Price-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaber-dev%2FStellar-Price-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaber-dev%2FStellar-Price-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaber-dev","download_url":"https://codeload.github.com/zaber-dev/Stellar-Price-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246062265,"owners_count":20717588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","learn","price","price-api","sdex","stellar","stellar-api","stellar-network"],"created_at":"2025-03-28T16:29:33.728Z","updated_at":"2025-03-28T16:29:34.333Z","avatar_url":"https://github.com/zaber-dev.png","language":"Python","readme":"# Stellar Price API\n\nA lightweight API that provides real-time price data for a Stellar token in both XLM and USD.\n\n## Features\n\n- Fetches live token prices from the Stellar DEX (Decentralized Exchange)\n- Calculates price using both recent trades and liquidity pool data\n- Converts token price to USD using current XLM/USD exchange rates\n- Provides a simple REST API endpoint to access the pricing data\n\n## Installation\n\n1. Clone the repository\n    ```\n    git clone https://github.com/zaber-dev/Stellar-Price-API\n    ```\n2. Install the required dependencies:\n   ```\n   pip install -r requirements.txt\n   ```\n\n## Configuration\n\nCreate a `.env` file in the project root with the following variables:\n\n```\nTOKEN_CODE=OVRL\nTOKEN_ISSUER=GBZH36ATUXJZKFRMQTAAW42MWNM34SOA4N6E7DQ62V3G5NVITC3QOVRL\n```\n\nReplace OVRL and the issuer address with your own token details if needed.\n\n## Usage\n\nStart the server:\n```python main.py```\n\nThe API will be available at `http://localhost:5000/`\n\n### API Endpoints\n\n- `GET /`: Returns the current token price in both XLM and USD\n\nExample Response:\n```json\n{\n  \"xlm\": \"0.0123456\",\n  \"usd\": \"0.0012345\"\n}\n```\n### License\nMIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaber-dev%2Fstellar-price-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaber-dev%2Fstellar-price-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaber-dev%2Fstellar-price-api/lists"}