{"id":30081797,"url":"https://github.com/temp3l/influx-bitmex","last_synced_at":"2026-05-15T01:37:07.955Z","repository":{"id":39984610,"uuid":"261007528","full_name":"temp3l/influx-bitmex","owner":"temp3l","description":"sample influx bitmex project with simple stats","archived":false,"fork":false,"pushed_at":"2023-01-24T02:33:45.000Z","size":629,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-08T05:27:26.260Z","etag":null,"topics":["bitcoin","bitmex","highspeed","influxdb","orderbook","technical-indicators","trading","websocket"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/temp3l.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}},"created_at":"2020-05-03T19:42:19.000Z","updated_at":"2021-07-31T21:11:12.000Z","dependencies_parsed_at":"2023-02-13T12:20:40.727Z","dependency_job_id":null,"html_url":"https://github.com/temp3l/influx-bitmex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/temp3l/influx-bitmex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temp3l%2Finflux-bitmex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temp3l%2Finflux-bitmex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temp3l%2Finflux-bitmex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temp3l%2Finflux-bitmex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/temp3l","download_url":"https://codeload.github.com/temp3l/influx-bitmex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temp3l%2Finflux-bitmex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33050425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["bitcoin","bitmex","highspeed","influxdb","orderbook","technical-indicators","trading","websocket"],"created_at":"2025-08-08T20:35:27.596Z","updated_at":"2026-05-15T01:37:07.935Z","avatar_url":"https://github.com/temp3l.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playground Fomo Bot\n\n0. simple analysis of changes in the orderbook (compares current volumes and average-vol)\n\n1. Fetches historic trade/candle data from REST-API and saves them in influx-database\n\n- 1m,5m,1h,1d candles (1000 per interval)\n\n2. Connects Orderbook via websocket\n\n- tracks 5m,10m,15m moving-averages for the top25 orderbook entries (bids/asks)\n- groups the orderbook into 2$-chunks (instead of 0.5$)\n\n3. Outputs to console:\n\n```js\n{\n  volDiffs: { diff3: 2429, diffN: 1628340 },\n  askAvgs: { askVol: 4588606, askVolAvg: 4183006, diff: 405600 },\n  bidAvgs: { bidVol: 2960266, bidVolAvg: 5148133, diff: -2187867 },\n  Guess: 'LONG'\n}\n```\n\n- vollDiffs: difference between low \u0026 ask -volume/1000\n- askAvgs:\n  - askVol: currentTotal askVolume\n  - askVolAvg: average 5m volume\n  - diff: difference between 5m-avg and current Volume\n- biAvgs:\n  - ...\n- Guess: if all ask-values are below bid-values - it suggests: SHORT ...\n\n## Prerequisite\n\n1. download \u0026 install influxdb from https://v2.docs.influxdata.com/v2.0/get-started/#start-with-influxdb-oss\n2. Set up InfluxDB through the UI: http://localhost:9999\n  - create an organisation called \"de\"\n  - create a  bucket called \"bitmex\"\n  - see https://v2.docs.influxdata.com/v2.0/get-started/#set-up-influxdb\n  \n\n## Install\n\n```bash\n\nyarn\nyarn start \n\n# optional install: typescript and ts-node globally\n\nyarn global add typescript\nyarn global add ts-node-dev\n\n# disabling livedata or REST in index.ts\n\n// const history = fetchMex(writeApi);\n// const live = handleLiveData(writeApi);\n\n```\n\n- create `.env` file\n\n```bash\nurl=\"http://localhost:9999\"\ntoken=\".....==\"\norg=\"de\"\nbucket=\"bitmex\"\nbeep=1\n```\n\n## Influx Dasboards\n\n- Data will be pumped to your influxdb\n\n![img](/docs/bitmex.png)\n\n## sample output \n\n![img](/docs/bmex_bot.jpg)\n\n\n\n## Orderbot coming soon\n\n![img](/docs/bmex_orders.png)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemp3l%2Finflux-bitmex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftemp3l%2Finflux-bitmex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemp3l%2Finflux-bitmex/lists"}