{"id":19477295,"url":"https://github.com/nikkhvat/candlestick-charts","last_synced_at":"2025-10-30T13:42:30.821Z","repository":{"id":113075387,"uuid":"525570953","full_name":"nikkhvat/candlestick-charts","owner":"nikkhvat","description":"Microservice that writes Forex data to the database and converts them to candlestick charts","archived":false,"fork":false,"pushed_at":"2022-08-17T00:09:38.000Z","size":76,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-28T11:44:30.244Z","etag":null,"topics":["candlestick-chart","forex","forex-data","golang","microservice","postgresql","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","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/nikkhvat.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}},"created_at":"2022-08-16T23:16:58.000Z","updated_at":"2024-11-12T12:29:08.000Z","dependencies_parsed_at":"2023-09-18T18:27:12.784Z","dependency_job_id":null,"html_url":"https://github.com/nikkhvat/candlestick-charts","commit_stats":null,"previous_names":["nikkhvat/candlestick-charts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nikkhvat/candlestick-charts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkhvat%2Fcandlestick-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkhvat%2Fcandlestick-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkhvat%2Fcandlestick-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkhvat%2Fcandlestick-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikkhvat","download_url":"https://codeload.github.com/nikkhvat/candlestick-charts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikkhvat%2Fcandlestick-charts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281817997,"owners_count":26566852,"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","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"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":["candlestick-chart","forex","forex-data","golang","microservice","postgresql","websocket"],"created_at":"2024-11-10T19:44:17.044Z","updated_at":"2025-10-30T13:42:30.801Z","avatar_url":"https://github.com/nikkhvat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![bars](./bars.png)\n\n# Forex Data 🚀\n\nforex (golang) - Microservice that works with Streaming API Key\n- ✅ Getting real-time data (websocket)\n- ✅ Proxy web socket server for data \n- ✅ Save data to db (PostgreSQL)\n- ✅ History rest request (Generate Candlestick chart) (GET) /?startDate /?endDate /?symbol /?timeframe\n- ✅ Get up-to-date data now /?symbol\n\nRaw socket data\n```json\n{\n  \"symbol\": \"LTCUSD\",\n  \"ts\": \"1660694052026\",\n  \"bid\": 61.348,\n  \"ask\": 61.353,\n  \"mid\": 61.350502\n}\n```\n\nCandlestick chart Data\n```json\n[{\n  \"open\": 61.5284602,\n  \"close\": 61.5655,\n  \"high\": 61.600502,\n  \"low\": 61.5284602,\n  \"timestamp\": 1660571731680\n}]\n```\n\n\n\n## Requests\n\n### Request example getting historical data\n\nGET -\u003e `https://domain/forex/hostory?start_date=1660567220494\u0026end_date=1660567787724\u0026symbol=ETHUSD\u0026timeframe=60`\n- end_date - end date (timestamp)\n- start_date - start date (timestamp)\n- symbol - currency pair\n- timeframe - in seconds\n\n### Example getting up-to-date data now by symbol\n\nGET -\u003e `https://domain/forex/actual?symbol=ETHUSD`\n- symbol - currency pair\n\n### Example ping\n\nGET -\u003e `https://domain/forex/ping`\n\n### Example socket\n\nWS -\u003e `wss://domain:3495/forexws`\n\n## Run\n\nin `.env` file:\n\n```.env\nkey=qwerft_wedrftg\nnominals=EURCAD,EURUSD,GBPAUD,AUDCHF,CHFJPY,EURNZD\n```\n\n\u003ekey - Streaming API Key\n\n\u003enominals - Сomma-separated list of currency pair\n\nrun on port: `3495`\n\nBefore launching, create a database in PostgreSql\n```sql\nCREATE DATABASE forex;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikkhvat%2Fcandlestick-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikkhvat%2Fcandlestick-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikkhvat%2Fcandlestick-charts/lists"}