{"id":22240173,"url":"https://github.com/mharikmert/binance-rest-api","last_synced_at":"2026-04-19T14:01:26.809Z","repository":{"id":122958299,"uuid":"354913020","full_name":"mharikmert/binance-rest-api","owner":"mharikmert","description":"A simple Rest API that fetches, holds, and serves some coins price information from the public API of binance.com. React JS for frontend, Spring Boot for backend and PostgreSQL for DB ","archived":false,"fork":false,"pushed_at":"2021-04-11T20:51:51.000Z","size":726,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T10:23:11.855Z","etag":null,"topics":["blockchain","cryptocurrency","java","jpa","postgresql","reactjs","rest","rest-api","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mharikmert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-04-05T17:19:48.000Z","updated_at":"2023-03-05T06:47:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8afd87d-9385-49cb-bb68-5d7bb23fc800","html_url":"https://github.com/mharikmert/binance-rest-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mharikmert/binance-rest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mharikmert%2Fbinance-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mharikmert%2Fbinance-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mharikmert%2Fbinance-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mharikmert%2Fbinance-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mharikmert","download_url":"https://codeload.github.com/mharikmert/binance-rest-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mharikmert%2Fbinance-rest-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32009239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blockchain","cryptocurrency","java","jpa","postgresql","reactjs","rest","rest-api","spring-boot"],"created_at":"2024-12-03T03:29:06.928Z","updated_at":"2026-04-19T14:01:26.780Z","avatar_url":"https://github.com/mharikmert.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Binance Rest API\n## General API Information\n- This is a simple rest api that fetches data from public endpoints of https://api.binance.com and manipulate these data for different purposes.   \n- The base endpoint for  this project is: http://localhost:8080\n- All endpoints return either a JSON object or array.\n\n## Installation\n```\n~$ git clone https://github.com/mharikmert/binance-rest-api\n\n```\n## Running Locally\nSet your environment variables to ``` application.properties ``` file under the resources such as ``` sample-application.properties``` file.\n\nIn the web-server directory you can use run configuration of your IDE\nor you can build a jar and run. \n\n## Build with\n```\n~/binance-rest-api/web-server$ gradle build\n~/binance-rest-api/web-server/build/libs$ java -jar app-0.0.1.SNAPSHOT.jar\n```\n\nIn the client directory you can install modules and run the react app\n```\n~/binance-rest-api/client$ npm install\n~/binance-rest-api/client$ npm start\n```\n\nCheck http://localhost:8080\n\n## Available Endpoints\n \u003cbr\u003e\n\n### Current price all\nCurrent values of all the symbols\n```\nGET /api/v1/fetchAll\n```\n**Response:**\n```javascript\n[\n   {\n   \"symbol\": \"ETHBTC\",\n   \"price\": \"0.03508800\"\n   },\n   {\n   \"symbol\": \"LTCBTC\",\n   \"price\": \"0.00387100\"\n   },\n   {\n   \"symbol\": \"BNBBTC\",\n   \"price\": \"0.00663030\"\n   },\n   {\n   \"symbol\": \"NEOBTC\",\n   \"price\": \"0.00106600\"\n   },\n   {\n   \"symbol\": \"QTUMETH\",\n   \"price\": \"0.00822000\"\n   },\n   . \n   .\n   .\n]\n```\n\n### Current price of spesific coins\nThese six are shown in home page with current price\n\n```\nGET /api/v1/subCoins\n ```\n\n**Response**\n```javascript\n[\n   {\n   \"symbol\": \"ETHBTC\",\n   \"price\": \"0.03508800\"\n   },\n   {\n   \"symbol\": \"LTCBTC\",\n   \"price\": \"0.00387100\"\n   },\n   {\n   \"symbol\": \"BNBBTC\",\n   \"price\": \"0.00663030\"\n   },\n   {\n   \"symbol\": \"XRPBTC\",\n   \"price\": \"0.03508800\"\n   },\n   {\n   \"symbol\": \"BCHBTC\",\n   \"price\": \"0.00387100\"\n   }\n]\n```\n\n### Current average price\n\nCurrent average price for a symbol.\n```\nGET /api/v1/avgPrice\n```\n\n**Parameters:**\n\nName | Type | Mandatory | Description\n------------ | ------------ | ------------ | ------------\nsymbol | STRING | YES |\n\n\n**Response:**\n```javascript\n{\n  \"mins\": 5,\n  \"price\": \"9.35751834\"\n}\n```\n\n### Hourly average price\nAverage price for a symbol in last hour.\n```\nGET /api/v1/hourAvg\n```\n\n**Parameters:**\n\nName | Type | Mandatory | Description\n------------ | ------------ | ------------ | ------------\nsymbol | STRING | YES |\n\n\n**Response:**\n```javascript\n{\n  \"symbol\": \"ETHBTC\",\n  \"averagePrice\": \"0.00352\"\n}\n```\n\n\n### Kline/Candlestick data\n```\nGET /api/v1/klines\n```\nKline/candlestick bars for a symbol.\nKlines are uniquely identified by their open time.\n\n\n**Parameters:**\n\nName | Type | Mandatory | Description\n------------ | ------------ | ------------ | ------------\nsymbol | STRING | YES |\ninterval | ENUM | YES |\nstartTime | LONG | NO |\nendTime | LONG | NO |\nlimit | INT | NO | Default 500; max 1000.\n\n* If startTime and endTime are not sent, the most recent klines are returned.\n\n**Response:**\n```javascript\n[\n  [\n    1499040000000,      // Open time\n    \"0.01634790\",       // Open\n    \"0.80000000\",       // High\n    \"0.01575800\",       // Low\n    \"0.01577100\",       // Close\n    \"148976.11427815\",  // Volume\n    1499644799999,      // Close time\n    \"2434.19055334\",    // Quote asset volume\n    308,                // Number of trades\n    \"1756.87402397\",    // Taker buy base asset volume\n    \"28.46694368\",      // Taker buy quote asset volume\n    \"17928899.62484339\" // Ignore.\n  ]\n]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmharikmert%2Fbinance-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmharikmert%2Fbinance-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmharikmert%2Fbinance-rest-api/lists"}