{"id":15129799,"url":"https://github.com/pedrosfaria2/market-data-api","last_synced_at":"2026-01-19T13:01:47.853Z","repository":{"id":247400133,"uuid":"825166137","full_name":"pedrosfaria2/market-data-api","owner":"pedrosfaria2","description":"An implementation of consuming market data","archived":false,"fork":false,"pushed_at":"2024-07-08T12:26:36.000Z","size":22966,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T19:18:51.161Z","etag":null,"topics":["cryptocurrency","docker","docker-compose","docker-container","fastapi","market-data","python","python3","rabbitmq","rabbitmq-consumer","trading"],"latest_commit_sha":null,"homepage":"","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/pedrosfaria2.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":"2024-07-07T01:41:44.000Z","updated_at":"2024-07-09T21:14:53.000Z","dependencies_parsed_at":"2024-07-08T15:27:17.791Z","dependency_job_id":"27bb33e3-704b-4043-8bd1-68cb729d0a81","html_url":"https://github.com/pedrosfaria2/market-data-api","commit_stats":null,"previous_names":["pedrosfaria2/market-data-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pedrosfaria2/market-data-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrosfaria2%2Fmarket-data-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrosfaria2%2Fmarket-data-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrosfaria2%2Fmarket-data-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrosfaria2%2Fmarket-data-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrosfaria2","download_url":"https://codeload.github.com/pedrosfaria2/market-data-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrosfaria2%2Fmarket-data-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28568833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T12:50:50.164Z","status":"ssl_error","status_checked_at":"2026-01-19T12:50:42.704Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cryptocurrency","docker","docker-compose","docker-container","fastapi","market-data","python","python3","rabbitmq","rabbitmq-consumer","trading"],"created_at":"2024-09-26T02:20:31.921Z","updated_at":"2026-01-19T13:01:47.833Z","avatar_url":"https://github.com/pedrosfaria2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Coinbase Public Data API\n\nWelcome to the Coinbase Public Data API project. This project provides a FastAPI application for retrieving public data from the Coinbase API. The data includes information about products, server time, order books, candles, and market trades.\n\n## Table of Contents\n\n- [Features](#features)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Environment Variables](#environment-variables)\n- [Running the Application](#running-the-application)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n- Fetch all available products\n- Retrieve the current server time\n- Get order book data for a specific product\n- Get detailed information for a specific product\n- Get candle data (OHLCV) for a specific product\n- Get market trade data for a specific product\n- Publish and consume messages from a RabbitMQ queue\n\n## Requirements\n\n- Python 3.9+\n- Docker (for containerization)\n- RabbitMQ (for message queuing)\n\n## Installation\n\n### Using Docker\n\n1. Clone the repository:\n    \\`\\`\\`sh\n    git clone https://github.com/pedrosfaria2/market-data-api.git\n    cd market-data-api\n    \\`\\`\\`\n\n2. Build the Docker image:\n    \\`\\`\\`sh\n    docker build -t coinbase-public-data-api .\n    \\`\\`\\`\n\n3. Run the Docker container:\n    \\`\\`\\`sh\n    docker run -d -p 8000:8000 --name coinbase-api coinbase-public-data-api\n    \\`\\`\\`\n\n### Local Installation\n\n1. Clone the repository:\n    \\`\\`\\`sh\n    git clone https://github.com/pedrosfaria2/market-data-api.git\n    cd market-data-api\n    \\`\\`\\`\n\n2. Create a virtual environment and activate it:\n    \\`\\`\\`sh\n    python -m venv venv\n    source venv/bin/activate  # On Windows use \\`venv\\Scripts\\activate\\`\n    \\`\\`\\`\n\n3. Install the dependencies:\n    \\`\\`\\`sh\n    pip install -r requirements.txt\n    \\`\\`\\`\n\n## Usage\n\n### Running the Application\n\nTo run the application locally:\n\\`\\`\\`sh\nuvicorn services.api.main:app --host 0.0.0.0 --port 8000\n\\`\\`\\`\n\nAccess the application at \\`http://localhost:8000\\`.\n\n### API Endpoints\n\n- \\`GET /public/products\\`: Fetch all products\n- \\`GET /public/server-time\\`: Fetch the server time\n- \\`GET /public/product-book/{product_id}\\`: Fetch the order book for a specific product\n- \\`GET /public/product/{product_id}\\`: Fetch details for a specific product\n- \\`GET /public/candles/{product_id}?start={start}\u0026end={end}\u0026granularity={granularity}\\`: Fetch candle data for a specific product\n- \\`GET /public/market-trades/{product_id}\\`: Fetch market trades for a specific product\n- \\`POST /public/publish/{queue_name}\\`: Publish a message to a RabbitMQ queue\n\n### Environment Variables\n\nTo configure RabbitMQ, set the following environment variables:\n\n- \\`RABBITMQ_HOST\\`: The host of the RabbitMQ server (default: \\`rabbitmq\\`)\n- \\`RABBITMQ_USER\\`: The username for RabbitMQ (default: \\`user\\`)\n- \\`RABBITMQ_PASS\\`: The password for RabbitMQ (default: \\`password\\`)\n\n## Running the Application with Docker\n\nTo run the application using Docker, use the following command:\n\\`\\`\\`sh\ndocker run -d -p 8000:8000 -e RABBITMQ_HOST=rabbitmq -e RABBITMQ_USER=user -e RABBITMQ_PASS=password coinbase-public-data-api\n\\`\\`\\`\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrosfaria2%2Fmarket-data-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrosfaria2%2Fmarket-data-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrosfaria2%2Fmarket-data-api/lists"}