{"id":22358302,"url":"https://github.com/gfleury/narrowtrade","last_synced_at":"2026-01-19T04:07:01.131Z","repository":{"id":80803135,"uuid":"288005613","full_name":"gfleury/narrowTrade","owner":"gfleury","description":"Dumb naive bot to trade on Saxobank","archived":false,"fork":false,"pushed_at":"2024-11-03T09:53:27.000Z","size":765,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T04:27:25.999Z","etag":null,"topics":["bot","openapi","saxobank","trade"],"latest_commit_sha":null,"homepage":"","language":"Go","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/gfleury.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":"2020-08-16T18:53:46.000Z","updated_at":"2024-11-15T16:47:05.000Z","dependencies_parsed_at":"2025-02-10T12:31:47.897Z","dependency_job_id":"9cdf11c0-aefe-403f-a411-5ebfaf321e9a","html_url":"https://github.com/gfleury/narrowTrade","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gfleury/narrowTrade","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfleury%2FnarrowTrade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfleury%2FnarrowTrade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfleury%2FnarrowTrade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfleury%2FnarrowTrade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gfleury","download_url":"https://codeload.github.com/gfleury/narrowTrade/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfleury%2FnarrowTrade/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28561838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bot","openapi","saxobank","trade"],"created_at":"2024-12-04T15:14:04.367Z","updated_at":"2026-01-19T04:07:01.102Z","avatar_url":"https://github.com/gfleury.png","language":"Go","readme":"# narrowTrader\n\n## Roadmap:\n- Full-fledged robo-trading (non low latency) - OK\n- Portfolio Automation - OK\n- rebalancing portfolio - OK\n- auto investing - OK\n- remove all IEX code and create Instrument analysis interface. - OK\n- Stock Trading based on dynamic data from external systems or from the API - OK\n- Forex Trading based on dynamic data from external systems or from the API - OK\n- Rebalance CashPerSymbol if any order fail during the Trade() - OK\n- StockNaive with pricing per percentage and moving averages. - OK\n- Add context timeout on all API calls.\n- Portfolio rebalancing and monitoring across clients for smaller wealth managers or hedge funds\n- Check how to implement analysis for resistance/support\n- Trading on specific times\n- Only Trade when exchange is about 20 minutes to open\n- StockNaive GetCashPerSymbol testing for different edge cases\n- API's context with timeout and exponential backoff \n  `sleep = min(2000, random.uniform(5, sleep * 3))`\n- Removed closed orders from .narrow_tags\n\nStandalone tools:\n- FX hedging - sheets can be configured to automatically hedge other positions or transactions once these are committed\n\n## Nice to check technical projects:\n- https://github.com/sdcoffey/techan\n- https://github.com/ivopetiz/technical-indicators\n\n## Strategies to implement\n### Mean Reversion\nThe mean reversion strategy is based on a straightforward assumption – if the price of a coin shift from its average, then it’s eventually going to revert back to it. \n\n### Momentum Trading\nThe core philosophy behind this is the belief that the prices of an asset will spike above its average and then run out of momentum and fall down. \n\n### Naive Bayes\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfleury%2Fnarrowtrade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgfleury%2Fnarrowtrade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfleury%2Fnarrowtrade/lists"}