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")
Metadata
Release files for bitmart 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bitmart-0.0.7.tar.gz | 567.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bitmart-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / bitmart-0.0.7.tar.gz
| Download URL | bitmart-0.0.7.tar.gz |
|---|---|
| Size | 567.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5baf8bd57df7b5b2a4518e679c2f2a28ca7dfc549133af3c391786f7b23fa9aa
|
|
BLAKE2b-256 checksum How to use checksums |
f976c6875bb90444f31267800b2908db39fef06bd7d77525b0dd8042ddb1dfbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / bitmart-0.0.7-py3-none-any.whl
| Download URL | bitmart-0.0.7-py3-none-any.whl |
|---|---|
| Size | 690.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ae3447ca37eac9bf9088c27b64a14fd3a9d198180fc25070603089a28ca7408
|
|
BLAKE2b-256 checksum How to use checksums |
52cd819a185c811650df138436a6b6b8b4e0e8a0d3e9ee880892f5e50cad6832
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|