Skip to main content

bitmart exchange api client

Project description

bitmart-python

Python SDK (sync and async) for Bitmart with Rest and WS capabilities.

You can check Bitmart's docs here: Docs

You can check the SDK docs here: SDK

This package derives from CCXT and allows you to call pretty much every endpoint by either using the unified CCXT API or calling the endpoints directly

Installation

pip install bitmart

Usage

Async

from bitmart import BitmartAsync

async def main():
    instance = BitmartAsync({})
    order = await instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)

Sync

from bitmart import BitmartSync

def main():
    instance = BitmartSync({})
    order =  instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)

Websockets

from bitmart import BitmartWs

async def main():
    instance = BitmartWs({})
    while True:
        orders = await instance.watch_orders(__EXAMPLE_SYMBOL__)

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

bitmart-0.0.3.tar.gz (567.5 kB view details)

Uploaded Source

Built Distribution

bitmart-0.0.3-py3-none-any.whl (690.3 kB view details)

Uploaded Python 3

File details

Details for the file bitmart-0.0.3.tar.gz.

File metadata

  • Download URL: bitmart-0.0.3.tar.gz
  • Upload date:
  • Size: 567.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for bitmart-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6134f008c0e443ccc13ca1ecf587f0b8aacfd351b9e5cf83d193f76e43c32409
MD5 024418dbde6cd2bc497e95c0a60ddb1b
BLAKE2b-256 a857dd4dca30a455a74eb5d8e4c27c0dd60da713c29ef1248929c0f03e93c0a1

See more details on using hashes here.

File details

Details for the file bitmart-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: bitmart-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 690.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for bitmart-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5bb56c6c6542e6678909b8a8bc68e150fc6f1a474c40505d318b183f6a4250f0
MD5 6dd935e97ead25b64958ca8cb5387e63
BLAKE2b-256 b05d4f756f2ff4812e815ba46ab3a7a31faf0e61f1d02af3fc1555469f9701f6

See more details on using hashes here.

Supported by

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