Bitmart-python-sdk-api

Latest version: v2.3.0

Safety actively analyzes 702578 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.3.0

New Features
- New
- `/contract/private/submit-trail-order` Submit Trail Order (SIGNED)
- `/contract/private/cancel-trail-order` Cancel Trail Order (SIGNED)
- `/contract/public/funding-rate-history` Query Funding Rate History
- `/contract/public/transaction-history` Query Transaction History (KEYED)
- Update
- `/contract/private/submit-order` Submit Order (SIGNED): Remove the Request Parameters related replacing trail orders
- `/contract/private/modify-plan-order` Modify Plan Order (SIGNED): Remove the Request Parameters **client_order_id**

2.2.1

Improvements
- The domain name `wss://openapi-ws.bitmart.com` will not provide Futures 1.0 Websocket services.
Please use the domain name `wss://openapi-ws-v2.bitmart.com` to access Futures 2.0 Websocket services
- Change the value of the variable FUTURES_PUBLIC_WS_URL
from `wss://openapi-ws.bitmart.com/api?protocol=1.1` to `wss://openapi-ws-v2.bitmart.com/api?protocol=1.1`
- Change the value of the variable FUTURES_PRIVATE_WS_URL
from `wss://openapi-ws.bitmart.com/user?protocol=1.1` to `wss://openapi-ws-v2.bitmart.com/user?protocol=1.1`



---

2.2.0

New Features
- New
- `/contract/private/trade-fee-rate` Support querying trade fee rate(KEYED)
Improvements
- Add API_V2_URL=`https://api-cloud-v2.bitmart.com`
- The default URL of the client APIContract is changed to API_V2_URL
- Optimize websocket
- Remove `CloudWSClient` and `CloudWSContractClient`
- Remove `websockets` dependency
- The ping/pong mechanism of the spot websocket has been modified to support `ping` text


---

2.1.0

New Features
- New
- `/contract/private/submit-tp-sl-order`
- `/contract/private/modify-plan-order`
- `/contract/private/modify-preset-plan-order`
- `/contract/private/modify-tp-sl-order`
- Updated
- `/contract/private/cancel-order` Add new request field **client_order_id**
- `/contract/private/cancel-plan-order` Add new request field **client_order_id**
- `/contract/private/current-plan-order` Add new request field **plan_type**


---

2.0.1

Improvements
- Update the dome of the README
Bug Fixes
- Fix the issue that the socket package cannot be referenced

---

2.0.0

New Features
- New
- `/spot/v4/batch_orders`
- `/spot/v4/cancel_orders`
- `/spot/v4/cancel_all`
- `/contract/private/position-risk`
- `/contract/private/current-plan-order`
- Updated
- `/account/v1/withdraw/apply`
- `/account/v2/deposit-withdraw/history`
- `/contract/private/position`
- `/contract/private/trades`
- `/contract/private/submit-order`
- Removed
- `/spot/v2/ticker`
- `/spot/v1/ticker_detail`
- `/spot/v1/steps`
- `/spot/v1/symbols/kline`
- `/spot/v1/symbols/book`
- `/spot/v1/symbols/trades`
- `/spot/v2/batch_orders`
- `/spot/v1/cancel_orders`
Improvements
- Support Custom Logger Integration
- Support Custom request headers
- Dependency upgrade, websockets used are replaced with websocket-client
- Remove the asynchronous call mechanism and support customers’ more convenient custom asynchronous subscriptions.
- Log upgrade, replace print with logging
- Add examples directory
- Constants Renamed
- WS_URL renamed to SPOT_PUBLIC_WS_URL
- WS_URL_USER renamed to SPOT_PRIVATE_WS_URL
- CONTRACT_WS_URL renamed to FUTURES_PUBLIC_WS_URL
- CONTRACT_WS_URL_USER renamed to FUTURES_PRIVATE_WS_URL
Bug Fixes

---

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.