{"id":30661608,"url":"https://github.com/cuongitl/python-bitget","last_synced_at":"2025-08-31T15:24:26.888Z","repository":{"id":65524180,"uuid":"593922077","full_name":"cuongitl/python-bitget","owner":"cuongitl","description":"An unofficial Python3 library to interact with bitget.com - full support for all API's endpoints.  Buy me a coffee: https://buymeacoffee.com/cuongitl","archived":false,"fork":false,"pushed_at":"2024-07-08T03:54:58.000Z","size":59,"stargazers_count":47,"open_issues_count":6,"forks_count":16,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-31T08:56:47.482Z","etag":null,"topics":["bitget","bitget-api","bitget-api-client","bitget-api-sdk","bitget-client","bitget-websocket","python","python3"],"latest_commit_sha":null,"homepage":"https://python-bitget.readthedocs.io/en/latest/index.html","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/cuongitl.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":"2023-01-27T06:35:47.000Z","updated_at":"2025-08-19T02:32:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"4cf79201-2dde-4dc8-b8bb-1aab73c3d9f4","html_url":"https://github.com/cuongitl/python-bitget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cuongitl/python-bitget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongitl%2Fpython-bitget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongitl%2Fpython-bitget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongitl%2Fpython-bitget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongitl%2Fpython-bitget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuongitl","download_url":"https://codeload.github.com/cuongitl/python-bitget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuongitl%2Fpython-bitget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272996678,"owners_count":25028167,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bitget","bitget-api","bitget-api-client","bitget-api-sdk","bitget-client","bitget-websocket","python","python3"],"created_at":"2025-08-31T15:24:23.952Z","updated_at":"2025-08-31T15:24:26.878Z","avatar_url":"https://github.com/cuongitl.png","language":"Python","funding_links":["https://buymeacoffee.com/cuongitl"],"categories":[],"sub_categories":[],"readme":"# Python bitget API Library\n\n\n[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/cuongitl/python-bitget/-/blob/main/LICENSE)\n[![python-bitget Version](https://img.shields.io/pypi/v/python-bitget?logo=pypi)](https://pypi.org/project/python-bitget/)\n[![python-bitget Python Versions](https://img.shields.io/pypi/pyversions/python-bitget?logo=pypi)](https://pypi.org/project/python-bitget/)\n[![python-bitget Downloads Per Day](https://img.shields.io/pypi/dd/python-bitget?logo=pypi)](https://pypi.org/project/python-bitget/)\n[![python-bitget Downloads Per Week](https://img.shields.io/pypi/dw/python-bitget?logo=pypi)](https://pypi.org/project/python-bitget/)\n[![python-bitget Downloads Per Month](https://img.shields.io/pypi/dm/python-bitget?logo=pypi)](https://pypi.org/project/python-bitget/)\n[![Downloads](https://static.pepy.tech/badge/python-bitget)](https://pypi.org/project/python-bitget/)\n\n[bitget](https://www.bitget.com/en/referral/register?from=referral\u0026clacCode=6EKP94LE) is a cryptocurrency derivatives exchange.\n\nThis is a wrapper around the Bitget API as described on Bitget, including all features the API provides using clear and readable objects, both for the REST  as the websocket API.\n\n \nI am in no way affiliated with Bitget, use at your own risk.\n\n**If you think something is broken, something is missing or have any questions, please open an [Issue](https://github.com/cuongitl/python-bitget/issues)**\n\n# Get Started and Documentation\nIf you're new to Bitget, use the following link to [save 10% on all of your trade fees, and can get rewards up to $5005.](https://www.bitget.com/en/referral/register?from=referral\u0026clacCode=6EKP94LE)\n* [Register an account with Bitget.](https://partner.bitget.com/bg/e55g05831674816745836)\n* [Generate an API Key and assign relevant permissions.](https://www.bitget.com/en/support/articles/360038968251-API%20Creation%20Guide)\n* [Bitget API docs](https://bitgetlimited.github.io/apidoc/en/mix/#welcome)\n  * [Example Bitget rest API](https://github.com/cuongitl/python-bitget/blob/master/examples/example_rest_api.py)\n  * [Example Bitget websocket API](https://github.com/cuongitl/python-bitget/blob/master/examples/example_websocket_api.py)\n\n# Install\n    pip install python-bitget\n# Usage\n\n\u003e Change your API KEY and your SECRET KEY.\n### Restful Api Sample Code \n\n```python\nfrom pybitget import Client\n\napi_key = \"your-api-key\"\napi_secret = \"your-secret-key\"\napi_passphrase = \"your-api-passphrase\"\n\nclient = Client(api_key, api_secret, passphrase=api_passphrase)\nresult = client.mix_get_accounts(productType='UMCBL')\nprint(result)\n\n```\n### Websocket Sample Code \n\n```python\nfrom pybitget.stream import BitgetWsClient, SubscribeReq, handel_error\n\nfrom pybitget.enums import *\nfrom pybitget import logger\n\napi_key = \"your-api-key\"\napi_secret = \"your-secret-key\"\napi_passphrase = \"your-api-passphrase\"\n\ndef on_message(message):\n    logger.info(message)\n\n\n# Auth subscribe\nclient = BitgetWsClient(api_key=api_key,\n                        api_secret=api_secret,\n                        passphrase=api_passphrase,\n                        verbose=True) \\\n    .error_listener(handel_error) \\\n    .build()\n\n# multi subscribe  - Public Channels\nchannels = [SubscribeReq(\"mc\", \"ticker\", \"BTCUSD\"), SubscribeReq(\"SP\", \"candle1W\", \"BTCUSDT\")]\nclient.subscribe(channels, on_message)\n\n# single subscribe -     # multi subscribe  Public Channels\nchannels = [SubscribeReq(\"mc\", \"ticker\", \"BTCUSD\")]\nclient.subscribe(channels, on_message)\n\n# single subscribe - Order Channel - Private Channels\nchannels = [SubscribeReq(WS_CHANNEL_INSTTYPE, WS_PRIVATE_ORDERS_CHANNEL, WS_CHANNEL_INSTID)]\nclient.subscribe(channels, on_message)\n```\n\n## Donate / Sponsor\nI develop and maintain this package on my own for free in my spare time. \nDonations are greatly appreciated. If you prefer to donate any other currency please contact me.\n\n* **Buy me a coffee:** https://buymeacoffee.com/cuongitl\n\n* **BTC**:  `19rvFC79eVoCMHxJ44hB3GLhiD2HHsMJoZ`\n\n* **BTC**:  `0xab4686635a02dff0babedddfee813d325f56cfb8`  (BEP20)\n\n* **USDT**:  `0xab4686635a02dff0babedddfee813d325f56cfb8`  (BEP20)\n\n* **USDT**:  `TCdyZs2mRhwYpCB5dZqiXEUoYRfiVJuq1H`  (TRC20)\n\n* **BGB**:  `0x3ee4ca7cc911ad4e423dec2ae8f2846e9a6a0a77`  (ERC-20)\n\n## Communities - Telegram\n* Bitget: [Bitget OPENAPI](https://t.me/bitgetOpenapi)\n* Author: [Cuongitl](https://t.me/Cuongitl)\n\n## Release Notes\nThe release notes can be found\n[here.](https://github.com/cuongitl/python-bitget/blob/master/release_notes.md)\n\n## Contribution\n* Fork this repository.\n* Make pull requests with proper commit message.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongitl%2Fpython-bitget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuongitl%2Fpython-bitget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuongitl%2Fpython-bitget/lists"}