{"id":15497047,"url":"https://github.com/zaneh/phemex-margin-example","last_synced_at":"2025-12-02T16:04:27.429Z","repository":{"id":210983209,"uuid":"727913999","full_name":"ZaneH/phemex-margin-example","owner":"ZaneH","description":"This example shows how to open and close a position using the example client from Phemex.","archived":false,"fork":false,"pushed_at":"2023-12-05T20:55:40.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T22:26:32.882Z","etag":null,"topics":["cex","example","leverage","margin-trading","phemex","phemex-api"],"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/ZaneH.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}},"created_at":"2023-12-05T20:50:09.000Z","updated_at":"2024-08-22T08:29:17.000Z","dependencies_parsed_at":"2023-12-05T21:51:01.962Z","dependency_job_id":null,"html_url":"https://github.com/ZaneH/phemex-margin-example","commit_stats":null,"previous_names":["zaneh/phemex-margin-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZaneH%2Fphemex-margin-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZaneH%2Fphemex-margin-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZaneH%2Fphemex-margin-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZaneH%2Fphemex-margin-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZaneH","download_url":"https://codeload.github.com/ZaneH/phemex-margin-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241997530,"owners_count":20055118,"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":["cex","example","leverage","margin-trading","phemex","phemex-api"],"created_at":"2024-10-02T08:30:19.857Z","updated_at":"2025-12-02T16:04:22.384Z","avatar_url":"https://github.com/ZaneH.png","language":"Python","readme":"# Phemex Margin Example\n\nUsing the testnet you can create a margin account and trade with leverage. This example shows how to open and close a position using the [example client from Phemex](https://github.com/phemex/phemex-python-api/).\n\n## Quickstart\n\n```\n$ conda create -n margins python=3.10\n$ conda activate margins\n$ pip install -r requirements.txt\n$ python main.py\n```\n\n## Environment Variables\n\n```\n# .env\n\n# Testnet\nPHEMEX_API_ID=\nPHEMEX_API_SECRET=\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaneh%2Fphemex-margin-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaneh%2Fphemex-margin-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaneh%2Fphemex-margin-example/lists"}