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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitmart-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 5baf8bd57df7b5b2a4518e679c2f2a28ca7dfc549133af3c391786f7b23fa9aa
MD5 e2cd4996780ea6194f06f33cda96add9
BLAKE2b-256 f976c6875bb90444f31267800b2908db39fef06bd7d77525b0dd8042ddb1dfbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bitmart-0.0.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4ae3447ca37eac9bf9088c27b64a14fd3a9d198180fc25070603089a28ca7408
MD5 b8155bd4f07624aee1216ea04dd5f4a5
BLAKE2b-256 52cd819a185c811650df138436a6b6b8b4e0e8a0d3e9ee880892f5e50cad6832

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