{"id":15715276,"url":"https://github.com/crazyoptimist/dydx-trading-bot","last_synced_at":"2026-01-24T02:32:44.340Z","repository":{"id":40301644,"uuid":"432279798","full_name":"crazyoptimist/dydx-trading-bot","owner":"crazyoptimist","description":"Algorithmic Trading Bot on dYdX","archived":false,"fork":false,"pushed_at":"2023-12-23T10:28:21.000Z","size":14,"stargazers_count":15,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-20T18:38:51.864Z","etag":null,"topics":["algorithmic-trading","cryptocurrency","decentralized-exchange","defi","dex","dydx","trading-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","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/crazyoptimist.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-26T19:19:03.000Z","updated_at":"2024-08-12T12:59:40.000Z","dependencies_parsed_at":"2024-10-03T21:40:56.886Z","dependency_job_id":null,"html_url":"https://github.com/crazyoptimist/dydx-trading-bot","commit_stats":null,"previous_names":["crazyoptimist/dydx-trading-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fdydx-trading-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fdydx-trading-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fdydx-trading-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fdydx-trading-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazyoptimist","download_url":"https://codeload.github.com/crazyoptimist/dydx-trading-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253824180,"owners_count":21969976,"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":["algorithmic-trading","cryptocurrency","decentralized-exchange","defi","dex","dydx","trading-bot"],"created_at":"2024-10-03T21:40:51.430Z","updated_at":"2026-01-24T02:32:39.322Z","avatar_url":"https://github.com/crazyoptimist.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dYdX Algorithmic Trading Bot\n\n## Disclaimer\n\nThis project is educational purpose only, the algorithm might bring losses. Use it at your own risk.\n\n## Prepare env variables\n\n```bash\nINFURA_PROJECT_ID=\nETH_ADDRESS=\n# get stark key pair and api credentials from the browser console(Application Tab -\u003e Local Storage) when you login the to dashboard\nSTARK_PRIVATE_KEY=\nAPI_KEY=\nAPI_PASSPHRASE=\nAPI_SECRET=\n# pass the eth address to the get_account request, you will get the positionId back\nPOSITION_ID=\n```\n\n## Install deps\n\n```bash\nmake install\n```\n\n## Run it\n\n```bash\nmake run\n```\n\n## Available requests on dYdX\n\n```python\nmarkets_response = client.public.get_markets()\npprint(markets_response.data['markets'][MARKET_ADA_USD])\n\ncandles_response = client.public.get_candles(\n    market=MARKET_ADA_USD,\n    resolution='30MINS'\n)\npprint(candles_response.data)\n\naccount_response = client.private.get_account(\n    ethereum_address='0x3fe444...'\n)\npprint(account_response.data)\n\norders_response = client.private.get_orders(\n    market=MARKET_ADA_USD,\n    status=ORDER_STATUS_OPEN\n)\npprint(orders_response.data)\n\napi_keys_response = client.private.get_api_keys()\npprint(api_keys_response.data)\n\npositions_response = client.private.get_positions(\n    market=MARKET_ADA_USD,\n    status=POSITION_STATUS_OPEN,\n)\npprint(positions_response.data)\n```\n\n## LICENSE\nMIT\n\nCreated by [crazyoptimist](https://github.com/crazyopimist)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Fdydx-trading-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazyoptimist%2Fdydx-trading-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Fdydx-trading-bot/lists"}