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__)
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.2.tar.gz
(567.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
bitmart-0.0.2-py3-none-any.whl
(690.3 kB
view details)
File details
Details for the file bitmart-0.0.2.tar.gz.
File metadata
- Download URL: bitmart-0.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f6d56554d8621e64b77dcc5eb6508c4ac82ace862cb18461d4fe4407eeb589a
|
|
| MD5 |
42980dee573c28b684997915062e62df
|
|
| BLAKE2b-256 |
1d8bc6407286ef22eef7a0a8a0b327711ad3f6e758b924667cae585de50fe43d
|
File details
Details for the file bitmart-0.0.2-py3-none-any.whl.
File metadata
- Download URL: bitmart-0.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1472cbe43bc6f07111deac822ace9f8fdaeee99262bffae71ef7661fdf1f0bc
|
|
| MD5 |
f8ef34219144e120d9dbc64c155b7b31
|
|
| BLAKE2b-256 |
72052174845cf9dd5a7ebcaa515b6a921948a2181b8508b788ce36e56deccbc9
|