{"id":17492026,"url":"https://github.com/waynechang65/grid-trading","last_synced_at":"2025-07-04T04:35:32.541Z","repository":{"id":98813461,"uuid":"487772801","full_name":"WayneChang65/grid-trading","owner":"WayneChang65","description":"grid-trading is a simple implementation of grid trading method.(Algorithm only without any dependencies)","archived":false,"fork":false,"pushed_at":"2022-05-02T13:32:25.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T20:15:51.549Z","etag":null,"topics":["algorithm","grid","grid-trade","grid-trading","javascript"],"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/WayneChang65.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":"2022-05-02T08:37:29.000Z","updated_at":"2023-08-24T13:58:06.000Z","dependencies_parsed_at":"2023-03-13T15:54:24.763Z","dependency_job_id":null,"html_url":"https://github.com/WayneChang65/grid-trading","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneChang65%2Fgrid-trading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneChang65%2Fgrid-trading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneChang65%2Fgrid-trading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WayneChang65%2Fgrid-trading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WayneChang65","download_url":"https://codeload.github.com/WayneChang65/grid-trading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250316066,"owners_count":21410476,"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":["algorithm","grid","grid-trade","grid-trading","javascript"],"created_at":"2024-10-19T08:06:58.375Z","updated_at":"2025-04-22T20:15:57.182Z","avatar_url":"https://github.com/WayneChang65.png","language":"JavaScript","readme":"# grid-trading\n\ngrid-trading 是一個網格交易演算法的簡單實作。(只有演算法，沒有使用任何第三方函式庫)  \n\ngrid-trading is a simple implementation of grid trading method.(Algorithm only without any dependencies)  \n\n## 如何跑範例程式？ (How to run the example ?)  \n\n* 從Github下載grid-trading專案程式碼。  \nClone grid-trading from GitHub\n\n```bash\ngit clone https://github.com/WayneChang65/grid-trading.git\n```\n\n* 進入grid-trading專案目錄  \nGet into grid-trading directory\n\n```bash\ncd grid-trading\n```\n\n* 直接透過 node.js 執行。  \nRun it with node.js.  \n\n```bash\nnode main.js\n```\n\n## 如何使用本演算法？ (How to use it ?)  \n\n* constructor(currentPrice, tradeParam), 類別建構式，建立一個網格交易單  \n * currentPrice: 開單的現價  \n * tradeParam: 網格參數  \n\n* trade(currentPrice), 交易函式，只要把目前現價持續輸入，程式自動判斷是否進行買賣交易  \n * currentPrice: 現價，持續輸入  \n\n* showProfitPercent(), 顯示網格單的利潤範圍  \n\n* showGrids(), 顯示網格單內容  \n\n* showWallet(), 顯示目前網格單內的a-coin, b-coin 以及利潤狀態 (交易對為 a-coin/b-coin)  ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynechang65%2Fgrid-trading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaynechang65%2Fgrid-trading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynechang65%2Fgrid-trading/lists"}