Skip to main content

A Python client for the Bitget API V2

Project description

Bitget API Client

A Python client for the Bitget API V2.

Installation

pip install bitget-api-client

Usage

import asyncio
from bitget_api_client.client import BitgetApiClient

async def main():
    api_key = "YOUR_API_KEY"
    secret_key = "YOUR_SECRET_KEY"
    passphrase = "YOUR_PASSPHRASE"

    client = BitgetApiClient(api_key, secret_key, passphrase)

    # Example: Get server time
    response = await client.common.get_server_time()
    print(response)

    # Example: Get spot ticker
    # response = await client.spot.get_ticker_information(symbol="BTCUSDT")
    # print(response)

if __name__ == "__main__":
    asyncio.run(main())

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitget_api_client-0.1.0.tar.gz (44.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitget_api_client-0.1.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file bitget_api_client-0.1.0.tar.gz.

File metadata

  • Download URL: bitget_api_client-0.1.0.tar.gz
  • Upload date:
  • Size: 44.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bitget_api_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e5eb738dbe75f7f038b197db2caf20ce62fe3a2ea0087e136b3511164c9b90ce
MD5 807c4ba3a1f9d9744cd2a57bb8a830fd
BLAKE2b-256 4e2490de4590163b7eca5f129acf7c3e9f234d68542b46f91de7cafefa4091bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for bitget_api_client-0.1.0.tar.gz:

Publisher: python-publish.yml on tty666/bitget_api_client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bitget_api_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bitget_api_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6052e45819f3812af439495722c9ba041385782462c3c4098dc8de859e9958f
MD5 2dbb5f0e0e43140706a2d6a1b7d7e01c
BLAKE2b-256 d5c94b955813f0cd993eadda08f7384e219264148b1b2b4464cfb319cb0e3c30

See more details on using hashes here.

Provenance

The following attestation bundles were made for bitget_api_client-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on tty666/bitget_api_client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page