Λογότυπο Bitmart Exchange Spot

Bitmart Exchange Spot

Οργανισμός
bitmartexchange
bitmart-exchange-spot

Use when the user asks about BitMart spot trading or Spot WebSocket streams, including buying or selling crypto, placing limit/market/algo orders, checking spot balance, querying open orders, viewing trade history, managing margin positions, transferring between spot and fund accounts, querying or setting the deposit credited account, checking account and API key info, or streaming real-time spot ticker/book ticker/trades/private order progress/balance changes. Do NOT use for futures/contract trading (use bitmart-exchange-futures).

Επισκόπηση

Εκδότηςbitmartexchange
Αποθετήριοbitmart-skills
Όνομα δεξιότηταςbitmart-exchange-spot
Αστέρια
33
Διακλαδώσεις
0
Συνοδευτικά αρχεία
4
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 4

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό bitmartexchange. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Bitmart Exchange Spot στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/bitmartexchange/bitmart-skills/tree/master/skills/bitmart-exchange-spot
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bitmartexchange/bitmart-skills.git /tmp/bitmart-skills
mkdir -p .claude/skills
cp -r /tmp/bitmart-skills/skills/bitmart-exchange-spot .claude/skills/bitmart-exchange-spot
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Bitmart Exchange Spot σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Bitmart Exchange Spot μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Bitmart Exchange Spot δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

BitMart Spot Trading

Overview

#CategoryAPI EndpointTypeDescription
1Market DataGET /spot/quotation/v3/tickerREADGet single pair ticker
2Market DataGET /spot/quotation/v3/tickersREADGet all pair tickers
3Market DataGET /spot/quotation/v3/booksREADOrder book depth (max 50)
4Market DataGET /spot/quotation/v3/tradesREADRecent public trades (max 50)
5Market DataGET /spot/quotation/v3/klinesREADHistorical K-line/candlestick
6Market DataGET /spot/quotation/v3/lite-klinesREADLatest K-line data
7Market DataGET /spot/v1/symbols/detailsREADTrading pair details
8Market DataGET /spot/v1/symbolsREADTrading pair list
9Market DataGET /spot/v1/currenciesREADAll supported currencies
10AccountGET /account/v1/walletREADAccount balance (all wallets)
11AccountGET /spot/v1/walletREADSpot wallet balance
12AccountGET /spot/v1/trade_feeREADActual trade fee rate
13AccountGET /spot/v1/user_feeREADBase fee rate (account tier)
14AccountGET /uapi-key/v1/account/infoREADAccount KYC / API keys info
15Margin AccountGET /spot/v1/margin/isolated/accountREADIsolated margin account details
16Margin AccountGET /spot/v1/margin/isolated/pairsREADBorrowing rate & amount
17Margin AccountGET /spot/v1/margin/isolated/borrow_recordREADBorrow record
18Margin AccountGET /spot/v1/margin/isolated/repay_recordREADRepayment record
19TradingPOST /spot/v2/submit_orderWRITEPlace single order
20TradingPOST /spot/v1/margin/submit_orderWRITEPlace margin order
21TradingPOST /spot/v4/batch_ordersWRITEBatch orders (max 10)
22TradingPOST /spot/v3/cancel_orderWRITECancel single order
23TradingPOST /spot/v4/cancel_ordersWRITECancel multiple orders
24TradingPOST /spot/v4/cancel_allWRITECancel all open orders
25Order QueryPOST /spot/v4/query/orderREADQuery order by order ID
26Order QueryPOST /spot/v4/query/client-orderREADQuery by client order ID
27Order QueryPOST /spot/v4/query/open-ordersREADAll open orders
28Order QueryPOST /spot/v4/query/history-ordersREADHistorical orders
29Order QueryPOST /spot/v4/query/tradesREADAccount trade history
30Order QueryPOST /spot/v4/query/order-tradesREADTrades for specific order
31Algo OrdersPOST /spot/v4/algo/submit_orderWRITEPlace trigger or TP/SL algo order
32Algo OrdersPOST /spot/v4/algo/cancel_orderWRITECancel single algo order
33Algo OrdersPOST /spot/v4/algo/cancel_allWRITECancel all algo orders by type / symbol
34Algo QueryPOST /spot/v4/query/algo/orderREADQuery algo order by order ID
35Algo QueryPOST /spot/v4/query/algo/client-orderREADQuery algo order by client order ID
36Algo QueryPOST /spot/v4/query/algo/open-ordersREADCurrent open algo orders
37Algo QueryPOST /spot/v4/query/algo/history-ordersREADHistorical algo orders
38Margin LoanPOST /spot/v1/margin/isolated/borrowWRITEMargin borrow (isolated)
39Margin LoanPOST /spot/v1/margin/isolated/repayWRITEMargin repay (isolated)
40Margin LoanPOST /spot/v1/margin/isolated/transferWRITEMargin asset transfer
41Fund AccountGET /account/v1/get-deposit-accountREADQuery deposit default credited account
42Fund AccountPOST /account/v1/set-deposit-accountWRITESet deposit credited account
43Fund AccountPOST /account/v1/transferWRITESpot ↔ Fund account transfer
44SystemGET /system/timeREADGet server time (milliseconds)
45SystemGET /system/serviceREADGet system service status / maintenance

WebSocket coverage: Public real-time channels and private push channels are documented in references/websocket.md, including spot/bookTicker:<SYMBOL>, spot/user/orders:ALL_SYMBOLS, and balance-change account_type.


Skill Routing

User IntentCorrect Skill
Spot buy/sell, order management, balance, fee ratesbitmart-exchange-spot (this skill)
Spot real-time ticker, book ticker, trades, order progress push, balance-change pushbitmart-exchange-spot (this skill, WebSocket reference)
Fund account transfer (spot ↔ fund only), deposit account settings, account/API key infobitmart-exchange-spot (this skill)
Futures/contract trading, leverage, TP/SL, plan ordersbitmart-exchange-futures

Authentication

Credential Check (Before Any Private API Call)

Before calling any authenticated endpoint, verify credentials are available:

  1. Check for environment variables:
    • BITMART_API_KEY — API key
    • BITMART_API_SECRET — Secret key
    • BITMART_API_MEMO — Memo string
  2. Or check for config file: ~/.bitmart/config.toml
    toml
    [default]
    api_key = "your-api-key"
    api_secret = "your-secret-key"
    memo = "your-memo"
  3. If missing: STOP. Guide user to set up credentials. Do NOT proceed with any authenticated call.

Key display rules: When displaying credentials back to the user, show only the first 5 and last 4 characters (e.g., bmk12...9xyz). NEVER display full secret or memo values.

Auth Levels

LevelWhenHeaders Required
NONEPublic market data and system status (endpoints 1-9, 44-45)None
KEYEDRead-only private data — balances, fees, margin account, borrow/repay records, deposit account query, account info (endpoints 10-18, 41)X-BM-KEY
SIGNEDWrite operations and order queries (endpoints 19-40, 42-43)X-BM-KEY + X-BM-SIGN + X-BM-TIMESTAMP

Signature Generation

timestamp = current UTC time in milliseconds
message   = "{timestamp}#{memo}#{request_body_json}"
signature = HMAC-SHA256(secret_key, message) → hex string
  • For POST requests: request_body_json is the JSON body string.
  • For GET requests: request_body_json is an empty string "".

Required Headers (SIGNED)

HeaderValue
Content-Typeapplication/json
X-BM-KEYAPI key
X-BM-SIGNHex-encoded HMAC-SHA256 signature
X-BM-TIMESTAMPCurrent UTC timestamp in milliseconds
User-Agentbitmart-skills/spot/v2026.7.14 — identifies requests from this skill for analytics

See references/authentication.md for full setup guide and troubleshooting.


API Base

  • Base URL: https://api-cloud.bitmart.com
  • Symbol Format: BTC_USDT (base_quote, underscore separated)

Standard Response Format

Success:

json
{
  "code": 1000,
  "message": "OK",
  "trace": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "data": { ... }
}

Error:

json
{
  "code": 50000,
  "message": "Bad Request",
  "trace": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "data": null
}

Important: code == 1000 means success. Any other code is an error. Important: Spot business error codes are endpoint/version specific. Do not assume the same numeric code has the same meaning across all spot flows.

Envelope exception: GET /uapi-key/v1/account/info does NOT use the standard envelope. It returns {"code": 0, "msg": "Success", "success": true, "data": {...}, "errorData": null} — for this endpoint only, treat success == true (with code == 0) as success. Do not require code == 1000.

GET requests: Parameters go in the query string. POST requests: Parameters go in the JSON body.


Rate Limits

EndpointRateTarget
GET /spot/quotation/v3/ticker15 req/2secIP
GET /spot/quotation/v3/tickers10 req/2secIP
GET /spot/quotation/v3/lite-klines15 req/2secIP
GET /spot/quotation/v3/klines10 req/2secIP
GET /spot/quotation/v3/books15 req/2secIP
GET /spot/quotation/v3/trades15 req/2secIP
GET /spot/v1/currencies8 req/2secIP
GET /spot/v1/symbols8 req/2secIP
GET /spot/v1/symbols/details12 req/2secIP
Balance12 req/2secKEY
Trade Fee / User Fee2 req/2secKEY
Margin Account12 req/2secKEY
Margin Pairs2 req/2secKEY
Borrow / Repay Records150 req/2secKEY
Fund Account Transfer (/account/v1/transfer)12 req/2secKEY
Get / Set Deposit Account5 req/60secKEY
Account Info (/uapi-key/v1/account/info)2 req/2secKEY
Place Order (spot)40 req/2secUID
Batch Place Orders (/spot/v4/batch_orders)40 req/2secUID
Algo Place Order (/spot/v4/algo/submit_order)10 req/2secUID
Algo Cancel Order (/spot/v4/algo/cancel_order)10 req/2secUID
Algo Cancel All (/spot/v4/algo/cancel_all)5 req/2secUID
Algo Query by Order / Client ID40 req/2secKEY
Algo Open Orders20 req/2secKEY
Algo History Orders20 req/2secKEY
Place Order (margin)20 req/1secUID
Cancel Order40 req/2secUID
Cancel Multiple (/spot/v4/cancel_orders)40 req/2secUID
Cancel All1 req/3secUID
Query Order by ID50 req/2secKEY
Query by Client Order ID (/spot/v4/query/client-order)50 req/2secKEY
Open / History / Trades12 req/2secKEY
Order-Trades12 req/2secKEY
Margin Borrow / Repay / Transfer2 req/2secKEY
GET /system/time10 req/secIP
GET /system/service10 req/secIP

Rate limit response headers:

  • X-BM-RateLimit-Remaining — Number of requests already used in the current window
  • X-BM-RateLimit-Limit — Maximum allowed requests in the current window
  • X-BM-RateLimit-Reset — Current time window length (seconds)

Warning: If X-BM-RateLimit-Remaining >= X-BM-RateLimit-Limit, stop calling immediately and wait for reset to avoid sending one extra over-limit request.

If rate limited (HTTP 429), wait for the reset period before retrying.


Quickstart

Example 1: Get BTC price (no auth)

bash
curl -s -H "User-Agent: bitmart-skills/spot/v2026.7.14" 'https://api-cloud.bitmart.com/spot/quotation/v3/ticker?symbol=BTC_USDT'

Example 2: Get account balance (KEYED)

bash
curl -s -H "X-BM-KEY: $BITMART_API_KEY" \
  -H "User-Agent: bitmart-skills/spot/v2026.7.14" \
  'https://api-cloud.bitmart.com/account/v1/wallet'

Example 3: Place limit buy order (SIGNED)

bash
TIMESTAMP=$(date +%s000)
BODY='{"symbol":"BTC_USDT","side":"buy","type":"limit","size":"0.001","price":"60000"}'
SIGN=$(echo -n "${TIMESTAMP}#${BITMART_API_MEMO}#${BODY}" | openssl dgst -sha256 -hmac "$BITMART_API_SECRET" | awk '{print $NF}')
curl -s -X POST 'https://api-cloud.bitmart.com/spot/v2/submit_order' \
  -H "User-Agent: bitmart-skills/spot/v2026.7.14" \
  -H "Content-Type: application/json" \
  -H "X-BM-KEY: $BITMART_API_KEY" \
  -H "X-BM-SIGN: $SIGN" \
  -H "X-BM-TIMESTAMP: $TIMESTAMP" \
  -d "$BODY"

API Reference

See references/api-reference.md for full endpoint documentation with parameters, examples, and response formats. See references/scenarios.md for step-by-step execution flows for common spot tasks such as market buy, limit sell, batch orders, and cancel-replace. See references/websocket.md for real-time Spot WebSocket channels, login signing, subscription formats, and changelog-only fields.


Reference: Order Types

TypeDescription
limitExecute at specified price or better
marketExecute immediately at best available price
limit_makerPost-only; rejected if it would immediately match (ensures maker fee)
iocImmediate-or-cancel; unfilled portion is canceled immediately

Reference: Order Sides

SideDescription
buyBuy base currency with quote currency
sellSell base currency for quote currency

Reference: Order States

StateDescription
newOrder accepted, not yet filled
partially_filledPartially executed, still open
filledFully executed
canceledCanceled by user
partially_canceledPartially filled, then canceled

Reference: Cancel Sources

SourceDescription
"" (empty)Not canceled
userCanceled by user
systemCanceled by system (e.g., insufficient balance)
stpCanceled by self-trade prevention

Reference: STP Modes

ModeDescription
noneNo self-trade prevention
cancel_makerCancel the resting (maker) order if self-trade detected
cancel_takerCancel the incoming (taker) order if self-trade detected
cancel_bothCancel both orders if self-trade detected

Reference: Trade Roles

RoleDescription
takerOrder matched immediately against resting order
makerOrder rested on book and was matched later

Reference: Parameter Naming Convention

CRITICAL — Wrong case = silently ignored field. The API does NOT return an error for misnamed params; it simply ignores them, causing unexpected behavior or wrong results. Always verify the endpoint version before constructing any request body.

API VersionConventionExamples
v1-v3snake_caseclient_order_id, order_id, start_time
v4camelCaseclientOrderId, orderId, orderMode, startTime

Mixed-case exceptions (must be memorized):

  • POST /spot/v2/submit_order: stpMode (camelCase) alongside client_order_id (snake_case)
  • POST /spot/v1/margin/submit_order: clientOrderId (camelCase in a v1 endpoint)

Reference: K-Line Steps

Step (minutes)Description
11-minute candles
55-minute candles
1515-minute candles
3030-minute candles
601-hour candles
1202-hour candles
2404-hour candles
14401-day candles
100801-week candles
432001-month candles

Operation Flow

Step 0: Credential Check

Verify BITMART_API_KEY, BITMART_API_SECRET, and BITMART_API_MEMO are available via environment variables or ~/.bitmart/config.toml. If missing, STOP and guide the user to set up credentials.

Step 1: Identify User Intent

Parse user request and map to a READ or WRITE operation:

  • READ operations: market data, balance queries, order queries, fee rates, deposit account query, account/API key info
  • WRITE operations: place order, cancel order, batch orders, algo trigger / TP-SL orders, fund account transfer, set deposit account
  • STREAM operations: real-time best bid / ask, live ticker/trades, private order progress, private balance-change push

Timestamp Display Rules

API responses contain Unix timestamps in different units. When displaying any timestamp to the user, always convert to human-readable local time.

FieldUnitConversion
createTime, updateTime (order responses)Milliseconds÷ 1000 → Unix seconds → local time
server_time (system time)Milliseconds÷ 1000 → Unix seconds → local time
t (K-line candle open time)SecondsDirect → Unix seconds → local time
create_time (borrow records)SecondsDirect → Unix seconds → local time
repay_time (repay records)SecondsDirect → Unix seconds → local time
register_time (account info)Milliseconds÷ 1000 → Unix seconds → local time
api_key_created_time, api_key_expire_time (account info)SecondsDirect → local time; 0 = never expires

Display format: YYYY-MM-DD HH:MM:SS in the user's local timezone. Example: timestamp 1700000000000 (ms) → 2023-11-15 06:13:20 (UTC+8).

Common mistakes to avoid:

  • Do NOT treat millisecond timestamps as seconds (produces dates in year 55000+)
  • Do NOT display raw numeric timestamps — always convert to readable format
  • Do NOT assume UTC — convert to the user's local timezone

Step 2: Execute

  • READ: Call the API endpoint, parse response, format data for user display.

  • STREAM: Use references/websocket.md. Subscribe to the matching WebSocket channel; for private channels, login first with the WebSocket signature payload timestamp#memo#bitmart.WebSocket.

  • WRITE: Follow these sub-steps strictly in order:

    2a. Parameter naming check (prevents silent failures):

    • Identify the API version of the target endpoint
    • v4 endpoints (/spot/v4/...): ALL params must be camelCase (clientOrderId, orderId, orderMode, startTime)
    • v1–v3 endpoints: ALL params must be snake_case (client_order_id, order_id, start_time)
    • Special exception: POST /spot/v2/submit_order uses mixed — client_order_id (snake_case) + stpMode (camelCase)
    • The API does NOT return an error for wrong-case params — it silently ignores them, causing wrong orders or failed queries

    2b. Order type rules — params, precision, minimum validation:

    First call GET /spot/v1/symbols/details, locate the symbol in data.symbols[], extract: price_max_precision, quote_increment, min_buy_amount, min_sell_amount.

    Then branch:

    type=market, side=buy — Market buy:

    • Send only notional (USDT/quote amount). Do NOT send size or price — silently ignored and causes error 50021.
    • Validate: float(notional) >= min_buy_amount. If not, STOP — suggest "notional":"<min_buy_amount>". API returns 51012 otherwise.
    • Body: {"symbol":"XRP_USDT","side":"buy","type":"market","notional":"5"}

    type=market, side=sell — Market sell:

    • Send only size (base currency quantity, e.g. XRP amount). Do NOT send price or notional.
    • Truncate size to quote_increment precision.
    • Estimate value: size * current_last_price. If estimated value < min_sell_amount, STOP and warn user.
    • Body: {"symbol":"XRP_USDT","side":"sell","type":"market","size":"10"}

    type=limit — Limit order:

    • Send size + price. Truncate price to price_max_precision, size to quote_increment.
    • Note: If price exceeds price_max_precision, the API silently truncates the extra decimals instead of returning an error. Always truncate client-side to ensure the submitted price matches the intended price.
    • Calculate order_value = size * price. If order_value < min_buy_amount (buy) or < min_sell_amount (sell), STOP.
    • If user requested "buy all" / "use full balance": size = floor(balance / price) at precision, re-verify minimum.
    • No hidden risk — order sits on the book until filled or canceled.

    type=limit_maker — Post-only (maker-only):

    • Same params as limit (size + price). Same precision/minimum rules.
    • CRITICAL behavioral note: The server auto-cancels the order (no error) if the price would immediately match:
      • Buy limit_maker: if price >= best_ask, order is silently canceled. Price must be below best ask.
      • Sell limit_maker: if price <= best_bid, order is silently canceled. Price must be above best bid.
    • Inform user of this risk when setting an aggressive limit_maker price.

    type=ioc — Immediate-or-Cancel:

    • Same params as limit (size + price). Same precision/minimum rules.
    • Behavioral note: Fills whatever quantity is available immediately at the given price; the unfilled remainder is immediately canceled. User may receive a partial fill or no fill at all.

    Spot Algo Orders (/spot/v4/algo/submit_order) — trigger and TP/SL orders:

    • Use this only when the user asks for a trigger order, stop order, take-profit, stop-loss, or conditional spot order.
    • Required base fields: symbol, side, type. Valid type values are "trigger" and "tp_sl".
    • client_order_id is optional, but if provided it must be alphanumeric only (A-Z, a-z, 0-9) and no longer than 32 characters. Do not use underscores or hyphens.
    • trigger_price is the activation price. trigger_type chooses the execution style after activation: "limit" or "market".
    • If trigger_type="limit", send price plus size; for buy market execution send notional, and for sell market execution send size.
    • v4 algo query endpoints use camelCase fields (orderId, clientOrderId, orderMode, queryState, startTime, endTime, recvWindow), while algo placement/cancel endpoints use snake_case fields (client_order_id, order_id, trigger_price, trigger_type).
    • For algo cancel_order and cancel_all, send type as "trigger" or "tp_sl". symbol is optional only on cancel_all.
    • Min notional enforcement: Algo orders are rejected with code 33126 "param not match : size * price >= 5" (or similar) when the implied notional is below the symbol's min_buy_amount / min_sell_amount from GET /spot/v1/symbols/details. The same threshold applies to algo placements as to regular spot orders; validate size * price (limit execution) or notional (market buy) before submitting.
    • Query response does NOT echo trigger_price: The v4 algo query endpoints return notional, size, price, trigger_type, state, orderMode, etc., but trigger_price is omitted from the response. If you need to display the trigger price back to the user after submit, persist it client-side at submit time.

    Fund Account operations (/account/v1/transfer, /account/v1/set-deposit-account):

    Fund account transfer (POST /account/v1/transfer):

    • Required params: currency (e.g. "USDT"), amount (string decimal), type.
    • type enum: "spot_to_fund" (spot → fund) or "fund_to_spot" (fund → spot). Any other value is invalid.
    • Before submitting, call GET /account/v1/wallet and verify sufficient balance: for spot_to_fund check available; for fund_to_spot check fundAvailable.
    • If balance is insufficient, STOP and report the shortfall to the user.
    • Present summary (currency, amount, direction) and require explicit CONFIRM.

    Set deposit credited account (POST /account/v1/set-deposit-account):

    • Param: account_type enum — "SPOT" (spot account), "CONTRACT" (futures account), "FUND" (fund account).
    • Sub-accounts are NOT supported on this endpoint (main account only).
    • This changes account configuration (no funds move). Present summary and require CONFIRM.

    2c. Confirm and execute:

    • Present order summary based on type:
      • market buy: symbol, side=buy, type=market, notional amount
      • market sell: symbol, side=sell, type=market, size (quantity)
      • limit/limit_maker/ioc: symbol, side, type, size, price, estimated order value
    • For limit_maker: include a reminder that the order will be auto-canceled if the price crosses the spread.
    • Ask for explicit "CONFIRM" before executing. Only proceed after user confirms.

Step 3: Verify (WRITE only)

  • After placing an order: Call POST /spot/v4/query/order with {"orderId":"..."} to confirm order status.
  • After placing an algo order: Call POST /spot/v4/query/algo/order with {"orderId":"...","queryState":"open"} to confirm it is untriggered or otherwise returned by the expected query state.
  • After canceling an order: Call POST /spot/v4/query/open-orders to verify the order is no longer open.
  • After canceling an algo order: Call POST /spot/v4/query/algo/open-orders filtered by symbol / orderMode and verify the algo order is no longer open.
  • After fund account transfer: Call GET /account/v1/wallet and confirm available / fundAvailable reflect the transfer.
  • After setting deposit account: Call GET /account/v1/get-deposit-account and confirm account_type matches.
  • Report the verified result to the user.

Cross-Skill Workflows

Workflow 1: Check Price → Check Balance → Buy

  1. bitmart-exchange-spot → GET /spot/quotation/v3/ticker?symbol=BTC_USDT — Get current price
  2. bitmart-exchange-spot → GET /account/v1/wallet — Check available balance
  3. bitmart-exchange-spot → POST /spot/v2/submit_order — Place buy order (after user CONFIRM)
  4. bitmart-exchange-spot → POST /spot/v4/query/order — Verify order execution

Error Handling

Spot business error codes are endpoint/version specific. Use the table below for authentication / transport issues and common current spot order-query behavior. For margin borrow / repay / transfer flows, see the margin-only notes after the table.

CodeDescriptionAction
1000SuccessProcess response normally
30002X-BM-KEY not foundCheck that API key is set correctly
30005X-BM-SIGN is wrongVerify signature generation (timestamp, memo, body format)
30006X-BM-TIMESTAMP is wrongEnsure X-BM-TIMESTAMP is present and is a Unix timestamp in milliseconds
30007Timestamp/recvWindow validation failedSync system clock (NTP), send X-BM-TIMESTAMP as Unix milliseconds, and ensure (serverTime - timestamp) <= recvWindow; recvWindow must be Long in (0,60000], default 5000 (max 60000). For current signed v4 flows, rely on recvWindow as the effective request-validity window.
30010IP forbiddenCheck API key IP whitelist settings
30013Rate limit exceededWait for rate limit window to reset, then retry
50005Order Id not found / query returned no dataOn POST /spot/v4/query/order, a missing orderId / clientOrderId currently returns this code
50021param errorFor market buy, use notional (USDT amount) — do NOT use size; size is silently ignored and causes this error
51011param not match : size * price >= XRead symbol constraints from GET /spot/v1/symbols/details; enforce side-specific minimum notional (min_buy_amount/min_sell_amount)
51012below minimum order amountnotional (for market buy) or size * price (for limit) is below min_buy_amount; increase order value to at least the symbol minimum
52000Unsupported OrderMode TypeOn current v4 query endpoints, use a valid orderMode (spot / iso_margin) or omit the field to query all modes
40044Invalid order sizeCall GET /spot/v1/symbols/details; use symbol precision/increment fields and truncate (not round) size and price
50023Operation is limitedPair may not support API trading; use a different pair
429HTTP rate limitBack off exponentially, check X-BM-RateLimit-Reset header
418IP bannedStop all requests immediately; wait before retrying

Margin-only business codes (do not treat as global spot codes):

  • 51003 — Account Limit. Use in margin borrow / repay / transfer context; do not use as the generic “order not found” code for v4 order-query flows.
  • 51006 — Exceeds the amount to be repaid. Use for isolated margin repay flows.
  • 51007 — order_mode not found in the official business-code table. Do not use this as guidance for current v4 query endpoints; invalid orderMode requests currently return 52000. | 403 | Cloudflare WAF block | Check IP reputation (VPN/cloud IPs are commonly challenged); wait 30-60 seconds and retry; do not auto-retry more than 3 times | | 503 | Cloudflare challenge / origin unavailable | Same as 403; if response body contains "Cloudflare" or "cf-", it is a Cloudflare interception, not a BitMart error; check network environment |

Cloudflare Handling

BitMart API is behind Cloudflare CDN. If you receive HTTP 403/503 and the response body contains "Cloudflare", "cf-", or an HTML challenge page (instead of JSON):

  1. This is a Cloudflare interception, not a BitMart API error — do not parse as JSON
  2. Check if too many requests were sent in a short window (Cloudflare WAF has its own rules independent of API rate limits)
  3. Wait 30-60 seconds before retrying
  4. If running from a cloud server or VPN, the IP may have low reputation — try from a different network
  5. Do not auto-retry more than 3 times — inform the user if the issue persists

Cloudflare 1010: Non-curl HTTP clients with default bot-like User-Agent strings (e.g., Python-urllib, Go-http-client) may receive HTTP 403 / error 1010. Always send the User-Agent: bitmart-skills/spot/v2026.7.14 header from your HTTP library — do not rely on the library default.


Security Notes

  • Never display full API keys or secrets. Show first 5 + last 4 characters only (e.g., bmk12...9xyz).
  • All WRITE operations require explicit user confirmation before execution. Present a clear summary of the action and wait for "CONFIRM".
  • Recommend IP whitelist on API keys for additional security.
  • Recommend minimum permissions: Read-Only + Spot-Trade only (no Withdraw permission).
  • All trading outputs include disclaimer: "Not financial advice. You are solely responsible for your investment decisions."

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Bitmart Exchange Spot;

Use when the user asks about BitMart spot trading or Spot WebSocket streams, including buying or selling crypto, placing limit/market/algo orders, checking spot balance, querying open orders, viewing trade history, managing margin positions, transferring between spot and fund accounts, querying or setting the deposit credited account, checking account and API key info, or streaming real-time spot ticker/book ticker/trades/private order progress/balance changes. Do NOT use for futures/contract trading (use bitmart-exchange-futures).

Γιατί να χρησιμοποιήσετε τη δεξιότητα Bitmart Exchange Spot στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Bitmart Exchange Spot είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Bitmart Exchange Spot στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/bitmartexchange/bitmart-skills/tree/master/skills/bitmart-exchange-spot. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Bitmart Exchange Spot;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Bitmart Exchange Spot;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Bitmart Exchange Spot με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Bitmart Exchange Spot;

Δημοσιεύεται στο GitHub από τον λογαριασμό bitmartexchange. Ελέγξτε το αποθετήριο για τους όρους αδειοδότησης. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇