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(BTC/USDC, "limit", "buy", 1, 100000)

Sync

from bitmart import BitmartSync

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

Websockets

from bitmart import BitmartWs

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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitmart-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 be1e9d3d75035cd46440126b75d1ec49da016457ce6cc1ba66097c8aa6b59e69
MD5 0a769b389f2cdecbbb283ee5d30e4437
BLAKE2b-256 84f461aa9822b35aeeaf8448f63ee2e9502586cd8e92a282887f70a59a671568

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bitmart-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 726cd5c78db326d4918455fe81e5d89d9d511efbcd11e71da82517714139dcae
MD5 5ad9fae0fbf6a63bf751ff85da22742e
BLAKE2b-256 d7a71c80ac545df80cb2e01c30de8f7ff662d03d62907f5d17c63209e58162ba

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