{"id":15715242,"url":"https://github.com/crazyoptimist/dydx-cli-trader","last_synced_at":"2025-03-30T20:16:11.002Z","repository":{"id":227129241,"uuid":"434153118","full_name":"crazyoptimist/dydx-cli-trader","owner":"crazyoptimist","description":"Manual Trading CLI for dYdX","archived":false,"fork":false,"pushed_at":"2024-03-11T18:26:20.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T22:59:02.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/crazyoptimist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2021-12-02T09:12:55.000Z","updated_at":"2024-03-11T18:28:09.000Z","dependencies_parsed_at":"2024-03-11T19:44:17.303Z","dependency_job_id":"b01de447-522f-44de-9834-6c817835ae26","html_url":"https://github.com/crazyoptimist/dydx-cli-trader","commit_stats":null,"previous_names":["crazyoptimist/dydx-cli-trader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fdydx-cli-trader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fdydx-cli-trader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fdydx-cli-trader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fdydx-cli-trader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazyoptimist","download_url":"https://codeload.github.com/crazyoptimist/dydx-cli-trader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246372741,"owners_count":20766635,"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":[],"created_at":"2024-10-03T21:40:43.748Z","updated_at":"2025-03-30T20:16:10.962Z","avatar_url":"https://github.com/crazyoptimist.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dYdX Trader CLI\n\nThis is a CLI application that enables you trading on dYdX without leaving your terminal.\n\nI don't have time to maintain this repo actively, but you can do anything by forking it.\n\n## Prepare ENV Variables\n\n```bash\ncp .env.example .env\n```\n\n```bash\nINFURA_PROJECT_ID=\nETH_ADDRESS=\n# get stark key pair and api credentials from browser's localStorage after you login the to dashboard\nSTARK_PRIVATE_KEY=\nAPI_KEY=\nAPI_PASSPHRASE=\nAPI_SECRET=\n# pass the eth address to the get_account request, and you will get the positionId\nPOSITION_ID=\n```\n\n## Install Dependencies\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\n\nMIT\n\nMade with :heart: [crazyoptimist](https://github.com/crazyopimist)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Fdydx-cli-trader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazyoptimist%2Fdydx-cli-trader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Fdydx-cli-trader/lists"}