
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
python-bitget-wrapper
Advanced tools
bitget is a cryptocurrency derivatives exchange.
This 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.
I am in no way affiliated with Bitget, use at your own risk.
If you think something is broken, something is missing or have any questions, please open an Issue
If 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.
pip install python-bitget
Change your API KEY and your SECRET KEY.
from pybitget import Client
api_key = "your-api-key"
api_secret = "your-secret-key"
api_passphrase = "your-api-passphrase"
client = Client(api_key, api_secret, passphrase=api_passphrase)
result = client.mix_get_accounts(productType='UMCBL')
print(result)
from pybitget.stream import BitgetWsClient, SubscribeReq, handel_error
from pybitget.enums import *
from pybitget import logger
api_key = "your-api-key"
api_secret = "your-secret-key"
api_passphrase = "your-api-passphrase"
def on_message(message):
logger.info(message)
# Auth subscribe
client = BitgetWsClient(api_key=api_key,
api_secret=api_secret,
passphrase=api_passphrase,
verbose=True) \
.error_listener(handel_error) \
.build()
# multi subscribe - Public Channels
channels = [SubscribeReq("mc", "ticker", "BTCUSD"), SubscribeReq("SP", "candle1W", "BTCUSDT")]
client.subscribe(channels, on_message)
# single subscribe - # multi subscribe Public Channels
channels = [SubscribeReq("mc", "ticker", "BTCUSD")]
client.subscribe(channels, on_message)
# single subscribe - Order Channel - Private Channels
channels = [SubscribeReq(WS_CHANNEL_INSTTYPE, WS_PRIVATE_ORDERS_CHANNEL, WS_CHANNEL_INSTID)]
client.subscribe(channels, on_message)
I develop and maintain this package on my own for free in my spare time. Donations are greatly appreciated. If you prefer to donate any other currency please contact me.
Buy me a coffee: https://buymeacoffee.com/cuongitl
BTC: 19rvFC79eVoCMHxJ44hB3GLhiD2HHsMJoZ
BTC: 0xab4686635a02dff0babedddfee813d325f56cfb8 (BEP20)
USDT: 0xab4686635a02dff0babedddfee813d325f56cfb8 (BEP20)
USDT: TCdyZs2mRhwYpCB5dZqiXEUoYRfiVJuq1H (TRC20)
BGB: 0x3ee4ca7cc911ad4e423dec2ae8f2846e9a6a0a77 (ERC-20)
The release notes can be found here.
FAQs
bitget python wrapper with rest API, websocket API.
We found that python-bitget-wrapper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.