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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bitmart-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 8e85ba4bdd950689cbddbe79d47d6c23976f96f8d4e615fe85e9e8dc30bf557a
MD5 52f217d75023462ccb3f3dbbc957db7d
BLAKE2b-256 4b38ecb7c0c324733e3f50f49cbd3c19b5dd54c6baadb50eb37ee7a60eb29a30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bitmart-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 02a90b06648c53348213a1887ad61f1c9748e62deed569cf46bca963dd8e9654
MD5 c6617954fa9eb113c6cf4d387040754b
BLAKE2b-256 4ae2aa3eb371f017df4b98e0cc62387ffa359b29062483d73317f1c5eea70bcd

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