Skip to content

Releases: bitmartexchange/bitmart-python-sdk-api

v2.8.0 Release

Choose a tag to compare

@BitMartDeveloper BitMartDeveloper released this 15 Jul 06:46

New Features

  • New
    • /account/v1/get-deposit-account Get Deposit Account (KEYED)
    • /account/v1/set-deposit-account Set Deposit Account (SIGNED)
    • /account/v1/transfer Account Transfer between Spot and Fund (SIGNED)
    • /uapi-key/v1/account/info Get Account Info (KEYED)
    • /contract/private/close-all-position Close All Positions (SIGNED)
    • /contract/private/account/v1/transfer Account Transfer between Fund and Contract (SIGNED)
  • Update
    • /account/v1/withdraw/apply Withdraw (SIGNED): Add new request field sourceAccount

v2.7.0 Release

Choose a tag to compare

@BitMartDeveloper BitMartDeveloper released this 16 Jun 07:02

New Features

  • New (Finance / Earn — new APIFinance class)
    • /newearn/cloud/v1/earn Get Earn Account Holdings (KEYED)
    • /newearn/cloud/v1/saving/product Get Flexible Savings Product List (KEYED)
    • /newearn/cloud/v1/saving/subscribe Subscribe Flexible Savings (SIGNED)
    • /newearn/cloud/v1/saving/redeem Redeem Flexible Savings (SIGNED)
    • /newearn/cloud/v1/saving/earn Get Flexible Savings Holdings (KEYED)
    • /newearn/cloud/v1/saving/record Get Flexible Savings History Records (KEYED)
    • /newearn/cloud/v1/saving/fixed/product Get Fixed Savings Product List (KEYED)
    • /newearn/cloud/v1/saving/fixed/subscribe Subscribe Fixed Savings (SIGNED)
    • /newearn/cloud/v1/saving/fixed/earn Get Fixed Savings Holdings (KEYED)
    • /newearn/cloud/v1/saving/fixed/record Get Fixed Savings History Records (KEYED)
    • /newearn/cloud/v1/saving/fixed/redeem Early Redeem Fixed Savings (SIGNED)
    • /newearn/cloud/v1/saving/fixed/subscribe/operate Modify Fixed Savings Auto-Renewal (SIGNED)
    • /newearn/cloud/v1/saving/subscribe/batch/operate Toggle Global Auto Earn (SIGNED)
    • /newearn/cloud/v1/saving/subscribe/batch Get Global Auto Earn Status (KEYED)
    • /newearn/cloud/v1/saving/subscribe/operate Toggle Flexible Product Auto Subscribe (SIGNED)
    • /newearn/cloud/v1/saving/subscribe/status Get Flexible Product Auto Subscribe Status (KEYED)

v2.6.1 Release

Choose a tag to compare

@BitMartDeveloper BitMartDeveloper released this 15 Jun 07:17

New Features

  • New (Spot Sub-Account)
    • /account/sub-account/main/v1/sub-to-main Sub-Account to Main-Account, For Main Account (SIGNED)
    • /account/sub-account/sub/v1/sub-to-main Sub-Account to Main-Account, For Sub Account (SIGNED)
    • /account/sub-account/main/v1/main-to-sub Main-Account to Sub-Account, For Main Account (SIGNED)
    • /account/sub-account/main/v1/sub-to-sub Sub-Account to Sub-Account, For Main Account (SIGNED)
    • /account/sub-account/main/v1/transfer-list Get Sub-Account Transfer History, For Main Account (KEYED)
    • /account/sub-account/v1/transfer-history Get Account Transfer History, For Main and Sub Account (KEYED)
    • /account/sub-account/main/v1/wallet Get Sub-Account Spot Wallet Balance, For Main Account (KEYED)
    • /account/sub-account/main/v1/subaccount-list Get Sub-Account List, For Main Account (KEYED)
  • New (Futures Sub-Account)
    • /account/contract/sub-account/main/v1/sub-to-main Sub-Account to Main-Account, For Main Account (SIGNED)
    • /account/contract/sub-account/sub/v1/sub-to-main Sub-Account to Main-Account, For Sub Account (SIGNED)
    • /account/contract/sub-account/main/v1/main-to-sub Main-Account to Sub-Account, For Main Account (SIGNED)
    • /account/contract/sub-account/main/v1/transfer-list Get Sub-Account Transfer History, For Main Account (KEYED)
    • /account/contract/sub-account/v1/transfer-history Get Account Transfer History, For Main and Sub Account (KEYED)
    • /account/contract/sub-account/main/v1/wallet Get Sub-Account Futures Wallet Balance, For Main Account (KEYED)

v2.6.0 Release

Choose a tag to compare

@11101171 11101171 released this 10 Jun 04:05

New Features

  • New
    • /spot/v4/algo/submit_order Algo Order Place(v4) (SIGNED)
    • /spot/v4/algo/cancel_order Cancel Algo Order(v4) (SIGNED)
    • /spot/v4/algo/cancel_all Cancel All Algo Orders(v4) (SIGNED)
    • /spot/v4/query/algo/order Query Algo Order by orderId(v4) (SIGNED)
    • /spot/v4/query/algo/client-order Query Algo Order by clientOrderId(v4) (SIGNED)
    • /spot/v4/query/algo/open-orders Query Current Algo Orders(v4) (SIGNED)
    • /spot/v4/query/algo/history-orders Query Algo Order History(v4) (SIGNED)
    • /contract/public/funding-rate-v2 Get Current Funding Rate (V2)
    • /contract/private/claim Claim Demo Trading Assets (SIGNED)
    • /contract/private/auto_repayment Get Auto Repayment Records (KEYED)
    • /contract/private/cross_collateral/interest_log Get Cross Collateral Interest Log (KEYED)
    • /contract/private/affiliate/aff-customer-info Get Invited User Futures Account Info (KEYED)
    • /contract/private/affiliate/deposit-withdrawal-list Get Invited User Deposit/Withdrawal List (KEYED)
    • /contract/private/affiliate/rebate-inviteUser Get Invited Customer List (KEYED)
    • /contract/private/affiliate/invite-check Check If Invited User (KEYED)
    • /contract/private/affiliate/rebate-user Get Single User Rebate (KEYED)
    • /contract/private/affiliate/rebate-api Get Single API User Rebate (KEYED)
    • /contract/private/affiliate/rebate-list Get Rebate Records (KEYED)
    • /contract/private/affiliate/trade-list Get Trade Records (KEYED)
  • Websocket
    • spot/bookTicker Add public best bid/ask (book ticker) channel

Improvements

  • Tests: tests/data.py now loads API credentials from a project-level .env file (priority: .env > OS environment variable > placeholder), supporting BITMART_API_KEY, BITMART_SECRET_KEY, BITMART_MEMO and BITMART_API_URL. Added a .env.example template; the real .env is git-ignored.

v2.5.0 Release

Choose a tag to compare

@11101171 11101171 released this 06 Nov 02:08

New Features

  • New
    • /contract/private/cancel-all-after Applicable for canceling all contract orders timed(SIGNED)
    • /contract/private/get-position-mode Get Position Mode (KEYED)
    • /contract/private/set-position-mode Set Position Mode (SIGNED)
    • /contract/private/position-v2 Get Current Position V2 (KEYED)
    • /contract/public/leverage-bracket Get Current Leverage Risk Limit
    • /contract/public/market-trade Query the latest trade data
  • Update
    • /contract/private/order Get Order Detail (KEYED): Add new request field account
    • /contract/private/order-history Get Order History (KEYED): Add new request field account and order_id and client_order_id
    • /contract/private/position Get Current Position (KEYED): Add new request field account
    • /contract/private/position-risk Get Current Position Risk Details(KEYED): Add new request field account
    • /contract/private/trades Get Order Trade (KEYED): Add new request field account, request field symbol changed to optional
    • /contract/private/transaction-history Get Transaction History (KEYED): Add new request field account
    • /account/v1/wallet Get Account Balance (KEYED): Add new request field needUsdValuation
    • /spot/v4/batch_orders New Batch Order(v4) (SIGNED): Add new request field stpMode
    • /spot/v2/submit_order New Order(v2) (SIGNED): Add new request field stpMode

v2.4.2 Release

Choose a tag to compare

@11101171 11101171 released this 12 Mar 13:47

Improvements

  • Websocket: Add a name field to the WebSocket client.
  • Websocket: When the client receives a close frame from the server, it should reconnect.

v2.4.1 Release

Choose a tag to compare

@11101171 11101171 released this 07 Mar 13:55

New Features

  • New
    • /contract/private/modify-limit-order Modify Limit Order (SIGNED)
  • Update
    • /contract/private/submit-order Submit Order (SIGNED): Add new request field stp_mode

Improvements

  • Logging: Added daily polling log files
  • Websocket: Output detailed log when exception occurs;Add a sample to subscribe to 1000 topics

v2.4.0 Release

Choose a tag to compare

@11101171 11101171 released this 24 Feb 08:57

New Features

  • New
    • /account/v1/withdraw/address/list Withdraw Address (KEYED)
    • /contract/public/markprice-kline Get MarkPrice K-line
  • Update
    • /account/v1/currencies Get Currencies: Add new request field currencies
    • /account/v2/deposit-withdraw/history Get Deposit And Withdraw History (KEYED): Add new request field startTime and endTime

v2.3.1 Release

Choose a tag to compare

@11101171 11101171 released this 07 Feb 02:08

Bug Fixes

  • Fix the issue that Spot WebSocket login failure

v2.3.0 Release

Choose a tag to compare

@11101171 11101171 released this 24 Jan 08:18

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