{"id":13678159,"url":"https://github.com/Zizwar/deno-trading-bot","last_synced_at":"2025-04-29T12:33:48.614Z","repository":{"id":50022367,"uuid":"372310799","full_name":"Zizwar/deno-trading-bot","owner":"Zizwar","description":"technical strategies and indicators for trading ","archived":false,"fork":false,"pushed_at":"2023-02-15T01:05:27.000Z","size":758,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-11T17:07:37.673Z","etag":null,"topics":["alephjs","binance-api","crypto","cryptocurrency","deno","denoland","docker-compose","es2020","esm","gitpod-compatible","javascript","margin-trading","raspberry","reactjs","slack-api","telegram-bot-api","trading-algorithms","trading-api","trading-strategies"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Zizwar.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}},"created_at":"2021-05-30T20:38:14.000Z","updated_at":"2024-05-01T03:44:04.000Z","dependencies_parsed_at":"2022-09-10T02:21:18.001Z","dependency_job_id":null,"html_url":"https://github.com/Zizwar/deno-trading-bot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zizwar%2Fdeno-trading-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zizwar%2Fdeno-trading-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zizwar%2Fdeno-trading-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zizwar%2Fdeno-trading-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zizwar","download_url":"https://codeload.github.com/Zizwar/deno-trading-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224173606,"owners_count":17268141,"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":["alephjs","binance-api","crypto","cryptocurrency","deno","denoland","docker-compose","es2020","esm","gitpod-compatible","javascript","margin-trading","raspberry","reactjs","slack-api","telegram-bot-api","trading-algorithms","trading-api","trading-strategies"],"created_at":"2024-08-02T13:00:50.670Z","updated_at":"2024-11-11T20:31:07.094Z","avatar_url":"https://github.com/Zizwar.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/Zizwar/deno-trad-bot)\n# deno-trade-bot\ndeno trading bot\nv0.1.3-alpha\n\n1- https://deno.land/#installation\n\n2- clone: \n```sh \ngit clone https://github.com/Zizwar/deno-trad-bot.git \n```\n\n3- rename file .env.exemple to .env and set  \n```sh \nTOKEN_TELEGRAM = \nID_TELEGRAM = \nTOKEN_SLACK =\nSHANEL_SLACK =\nAPI_KEY_BINANCE = \nAPI_SECRET_BINANCE = \nINTERVAL_TIME = \n```\n## test\n - in terminal\n```sh\n$ deno test --allow-net --allow-env --allow-read \n```\n## run\n - in terminal\n```sh\n$ deno run --allow-net --allow-env --allow-read main.js\n```\n - in docker \n ```sh\n$ docker build -t app . \u0026\u0026 docker run -it --init -p 1993:1993 app\n```\n## exemple\n\n```ts\nimport DenoBot from './wino/denoBot.js';\nimport { ENV } from './deps.js';\nconst { INTERVAL_TIME = 1 } = ENV;\n\nconst denoBot = new DenoBot();\nconst ping = await denoBot.ping;\ndenoBot.stratigy = \"onlyRsis\"\nsetInterval(async _ =\u003e {\n    const options = {\n        candeles: { symbol: \"DOGEUSDT\" }\n    }\n    const listenMyCoins = await denoBot.listenCoins(options);\n    const action = denoBot.action(listenMyCoins);\n    if (action) {\n        try {\n            const {\n                symbol,\n                rsi,\n                stochRSI,\n                sma,\n                ema,\n                upper,\n                lower,\n                close,\n                stratigy\n            } = listenMyCoins;\n            const tfx = (val) =\u003e parseFloat(val).toFixed(5)\n            const message = `\n${action === \"Buy\" ? \"⤴️\" : \"⤵️\"} action=${action}\nsymbol=${symbol}\nprice=${close}\nrsi=${rsi}\nstochRSI=${tfx(stochRSI)}\nsma=${tfx(sma)}\nema=${tfx(ema)} \nstratigy=${stratigy}\n`;\n            denoBot.postMessageTelegram(message)\n        } catch (error) {\n            console.error(error)\n        }\n    }\n    // denoBot.postMessageSlacK(action)\n    console.log({ action, ...listenMyCoins })\n}, INTERVAL_TIME * 1000)\n```\n##  Screens\nTelegram \n\n![Console log](https://raw.githubusercontent.com/Zizwar/deno-trading-bot/main/screens/telegram.jpg)\n\nConsole\n![Console log](https://raw.githubusercontent.com/Zizwar/deno-trading-bot/main/screens/denolog.jpg)\n\nnotif\n![Telegram](https://raw.githubusercontent.com/Zizwar/deno-trading-bot/main/screens/denobottelegram.jpg)\n##  API (Incoming)\nhttps://brah.im\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZizwar%2Fdeno-trading-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FZizwar%2Fdeno-trading-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZizwar%2Fdeno-trading-bot/lists"}