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.4.tar.gz (567.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitmart-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 79331111f454af8abf20e43508183e2ed717c423b7f2c112147cf995bf8cc33d
MD5 1cfa803cf2d3cf2362654b9821be4a74
BLAKE2b-256 2cc14ef52237585d9851f38b0ea37e7f3c222164b8ae23b4b74d47f89831948e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bitmart-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f8364f97c2815079cbe96b5054fde8e4f86d2844dc35c48fb6f4b532d975d43d
MD5 0ba71d15909505c0d0328526243c78b3
BLAKE2b-256 532a5f44db9398895e31123791153273c04d486af302dd68b16977d23b8cb8de

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