logo
    • Buy Crypto
    • Markets
    • Futures
    • Spot
    • Earn
    • Affiliates & AI
    • More
    1. WEEX
    2. Learn
    3. Crypto Exchange API: Permissions, Signing and Rate Limits

    Crypto Exchange API: Permissions, Signing and Rate Limits

    By: WEEX|2026-08-20 03:15:00
    0
    Share
    copy
    Prefer us on GooglePrefer us on Google
    SIGNSIGN
    00.00%--
    DRIFTDRIFT
    00.00%--
    BLASTBLAST
    00.00%--
     

    The first thing you hand over to a crypto exchange API is not code. It is a key. Every guide tells you to keep it safe; almost none of them show you what the key can actually do on a specific exchange, which is where the real risk lives. This walkthrough uses WEEX's published API documentation as the working sample and answers four questions in order: what the API is, what it can do, how a signed call is built, and what happens if the key leaks.

    Every parameter, rate limit and error code below comes from WEEX's official API documentation (spot and futures FAQs last updated 2026-04-14), checked in August 2026. Docs change between versions — verify against the live pages before you ship.

    What a Crypto Exchange API Actually Does

    A crypto exchange API exposes two families of endpoints, and the split is whether the request carries your identity.

    • Public endpoints return market and configuration data: candlesticks, order book depth, recent trades, the tradable symbol list. No authentication, open to anyone, rate limited by IP.
    • Private endpoints touch your account: balances, positions, order placement, cancellation. Every request must carry a signature the server verifies before it executes anything.

    That split should drive your architecture. Market data can run anywhere — a leaked public endpoint costs you nothing. Private calls belong on a host whose outbound IP you control. Plenty of teams run both in one process because it is convenient, and then a dependency vulnerability on the market-data side hands over the trading key.

    Crypto Exchange API: Permissions, Signing and Rate Limits

    WEEX serves spot REST from https://api-spot.weex.com, with spot paths under /api/v3/ and futures under /capi/v3/. The prefixes are not interchangeable, and mixing them is the most common cause of an unexplained 404.

    API Key Permissions: The One Most Guides Get Wrong

    Nearly every "API key security" article on the first page of Google assumes three permission tiers — read, trade, withdraw — and tells you to leave withdrawal off. That advice is fine, but it hides a more useful question: does the exchange offer a withdrawal permission at all?

    On WEEX, it does not. The permissions available when you create a key are these, and they are independent of each other:

    PermissionWhat it allowsWhat it blocksTypical use
    Readonly (default)Query balances, positions, trade history, ledgerAny order placement or cancellationAsset monitoring, ledger sync, market analysis
    SpotPlace/cancel spot orders, query spot assetsFutures open/closeSpot bots, automated rebalancing
    FuturesOpen/close positions, set TP/SL, query positionsSpot tradingFutures hedging, high-frequency strategies
    ——Withdrawals, transfers to external addressesNot exposed through the API

    This matters more than any encryption detail. When you read about "an API key leak that drained an account," the funds were usually not withdrawn — the attacker used trading permission to run a pump-and-dump on an illiquid pair, buying into the victim's account at inflated prices and selling their own bags into it. No withdrawal permission does not mean the assets are safe. It means the attack shifts from theft to induced loss.

    Keys default to Readonly. You have to tick a trading permission deliberately, which is the right default and also why a first order so often returns -1052 (Insufficient permissions). Each account can hold up to 10 key groups; split them by purpose rather than sharing one. A read-only key for monitoring and a separate trading key for the strategy means that when something goes wrong you can identify and revoke exactly one.

    Creating a key hands you three credentials with three different jobs:

    CredentialRoleIf lost
    APIKeyIdentity, sent in the request headerRetrievable from the dashboard
    SecretKeySigning key, used locally, never transmittedLeak equals handing over trading rights
    PassphraseUser-set, alphanumeric only, no special charactersUnrecoverable — you must rebuild the whole key group

    The passphrase cannot be changed or recovered. Store it in a secrets manager alongside the SecretKey, not in a config file in your repo. Field-level detail is in the WEEX API integration preparation docs.

    How to Sign a Request: Building the ACCESS-SIGN Header

    Private endpoints hinge on the ACCESS-SIGN header. The rule is short; the failure mode is that one wrong character in the concatenation breaks everything with an error that points somewhere else.

    WEEX concatenates in this order, runs HMAC SHA256 with your SecretKey, then Base64-encodes the result:

    timestamp + method.toUpperCase() + requestPath + "?" + queryString + body
    

    When queryString is empty, drop the question mark: timestamp + method + requestPath + body.

    Querying BTCUSDT depth:

    String to sign: 1591089508404GET/api/v3/market/depth?symbol=BTCUSDT&limit=20
    Signature = base64.encode(hmac_sha256(secretKey, message))
    

    Three details cause most of the failed integrations:

    1. The timestamp is in milliseconds and must be within 30 seconds of server time. WEEX compares ACCESS-TIMESTAMP against its own clock and rejects anything further out. Cloud instances drift; query the server time endpoint at startup and correct against it rather than trusting local Date.now().
    2. The method must be uppercase. Sending get instead of GET breaks the signature, but the response reads as an authentication failure — which sends people hunting for a bad key.
    3. Symbols are case-sensitive and must be uppercase. btcusdt is not normalised. For order endpoints, take the symbol value from the /products response instead of building it by hand.

    The full worked example, including body concatenation for POST orders, is in the WEEX request signing documentation. Get one GET working before you attempt a POST.

    -- Price

    --
    --
    --

    Rate Limits: What Triggers a 429 and How to Back Off

    Exceeding a limit returns HTTP 429 and carries a roughly 10s ban. WEEX does not run one global counter — limits are scoped by dimension:

    DimensionSpotFutures
    Place order100 / min300 / min
    Cancel order80 / 10s, or 200 / minPer-endpoint, see docs
    REST/WS connection300 / 5 min / per IP500 weight / 10s / per IP
    WebSocket240 channel subscriptions / hour / connection20 connections / per IP

    Source: WEEX spot and futures API FAQs, last updated 2026-04-14.

    Two mechanics are worth internalising. Order placement is metered per account (userId) and consumes no IP weight — the IP counter in those response headers reads 0. Everything else is metered by IP weight, with heavier endpoints carrying higher weight. So several machines sharing one egress IP will compete for market-data budget but not for order budget.

    Do not estimate your remaining budget with a local counter. Every response carries X-USED-WEIGHT-1M and X-REMAINING-WEIGHT-1M; order requests additionally carry X-ORDER-COUNT-* and X-ORDER-REMAINING-*. Back off on the headers rather than hardcoding "5 requests per second" — and note that WEEX's English and Chinese docs currently disagree on the spot order limit (English says 100/min, Chinese says 100/10s). The response headers are the single source of truth.

    Is a Crypto Exchange API Safe? Three Links in the Chain

    Safety here is a property of your configuration, not of the exchange alone. The exchange owns one link of three.

    Link one: key storage. The SecretKey is shown once and never again, so leaks originate on your side — committed to Git, embedded in a frontend bundle, written to logs, pasted into a work chat. Environment variables or a secrets manager, plus one rule with no exceptions: keys never travel through messaging tools.

    Link two: IP whitelisting. WEEX lets you bind IP addresses when you create a key and explicitly recommends enabling it. An unbound key works from anywhere on earth the moment it leaks; a bound one forces the attacker to compromise your server first. Do not set 0.0.0.0/0 in production — that is the same as not setting it.

    Link three: least privilege. Back to the permission table: monitoring processes get Readonly, forever. A spot strategy has no reason to hold Futures. This is not fastidiousness, it is blast-radius control.

    Two operational traps are documented but easy to miss:

    • A new or newly modified key takes roughly 15 minutes to propagate globally. A permission error immediately after setup is usually propagation lag, not misconfiguration.
    • Triggering platform risk control — suspicious logins, floods of invalid requests — can disable API permissions automatically, and reinstatement goes through support. Don't load-test with a production key.

    One judgment you won't find in the generic guides: for most retail and small-fund users, the probability of key theft is well below the probability of losing money to your own error handling under rate-limit pressure. Configure security properly, then spend the same energy on retries and idempotent order placement. The expected return is higher.

    Test on Paper Trading First: Five Errors That Bite New Integrations

    WEEX runs paper trading endpoints on the futures side using simulated SUSDT, under /capi/v3/sim/ — sim/balance, sim/position/allPosition, sim/order, sim/order/history, with hedge-mode dual positions supported. Running a new strategy end to end there is the cheapest debugging you will ever do.

    Before real capital goes in, keep this table nearby:

    SymptomRoot causeFix
    Order returns -1052Trading permission not ticked; pair not yet API-enabled; or calling deprecated V1/V2Enable Spot / Futures in API management, move to V3
    Cancel returns -1054Order does not exist, usually a wrong order IDQuery before cancelling; don't trust a locally cached ID
    WebSocket returns 403Missing User-Agent header, blocked at the firewallAdd any User-Agent value to the connection header
    Request returns 404Wrong path prefix — spot /api/v3/ vs futures /capi/v3/Check requestPath against the matching doc
    HTTP 429Rate limit hit, ~10s ban followsExponential backoff driven by response headers, no blind retries

    Two more things to settle up front: WEEX does not currently support TradingView signal trading or FIX API, so strategies depending on either need another route; and V1/V2 endpoints are being deprecated, so new work should target V3 directly. The full permission and rate-limit Q&A sits in the WEEX spot API FAQ, and futures builders should start from the futures API documentation.

    The Right Order to Integrate a Crypto Exchange API

    Back to the four questions. A crypto exchange API is the programmatic entry point to an exchange, split into public endpoints that read and private endpoints that act. How you use it depends on which permission you tick — Readonly, Spot and Futures are independent, and WEEX does not expose withdrawals through the API at all. How you call it comes down to signing: HMAC SHA256 plus Base64, with a 30-second timestamp tolerance. Whether it is safe depends on you; the exchange supplies IP binding and permission tiers, and the rest is your operational discipline.

    If you remember one thing, remember the sequence: read-only key first to prove out market data and queries, paper trading next to validate the strategy, and only then trading permissions, IP binding, and real funds. Reversing that order tends to be expensive.

    Ready to build? Start at the WEEX developer centre, create a key, configure permissions, and work through the V3 endpoints one at a time.

    FAQ

    1. Does a crypto exchange API cost money or require an application?

    On WEEX, no qualification process applies — log in to the web platform and self-serve, up to 10 API key groups per account. This differs from equity brokerage APIs, which commonly gate access behind capital, volume or professional-background requirements.

    2. If my API key leaks, can someone withdraw my funds?

    Not through the WEEX API — the permission set is Readonly, Spot and Futures only, with no withdrawal scope. A key with trading permission can still be abused to trade against you on illiquid pairs, moving value out as realised losses. Delete the key group immediately if you suspect exposure.

    3. Do I need an API key just for market data?

    No. Candles, depth, tickers and symbol lists are public endpoints, unauthenticated and rate limited by IP. Only account and order endpoints require a signature.

    4. Why does a brand-new API key return an insufficient-permissions error?

    New or newly modified keys take roughly 15 minutes to propagate across the system. If -1052 persists after that window, check whether Spot or Futures was actually ticked.

    5. What if I forget the API passphrase?

    It cannot be recovered or changed. Delete the key group, create a new one, and update every consumer of that credential.

    6. Does WEEX support TradingView or FIX API?

    Neither is supported as of August 2026. Teams needing institutional low-latency access should evaluate whether REST and WebSocket meet their requirements before committing.

    Risk Warning

    Crypto assets are highly volatile, and programmatic trading through a crypto exchange API can result in partial or total loss of capital. API-specific risks include unauthorised account activity following key exposure, cascading erroneous orders caused by strategy bugs or weak error handling, orders left unmanaged after a rate-limit ban, and amplified liquidation risk when trading leveraged futures. Implement thorough exception handling and retry logic, bind IP whitelists to every key, apply least-privilege permissions, and commit only capital you can afford to lose. The endpoint parameters and rate limits described here were verified in August 2026 and may change with platform updates — always defer to the current WEEX official API documentation. This article is not investment advice.

    This content is provided for general informational purposes only and doesn't constitute financial, investment, legal, or tax advice. Any events, rewards, online promotions, or related information mentioned herein should not be considered a recommendation, solicitation, or invitation to purchase, sell, trade, or otherwise deal in any crypto assets. Crypto assets are highly volatile and may result in loss. The availability of WEEX services, products, and related events may vary by region. You are responsible for ensuring that your participation is in accordance with applicable local laws and regulations.

    You may also like

    How to Call a Crypto Exchange API Without Getting Blocked

    How to Call a Crypto Exchange API Without Getting Blocked

    What Is a Crypto Exchange API and Which Permissions to Enable

    What Is a Crypto Exchange API and Which Permissions to Enable

    WEEX Daily Lucky Wheel and Event Airdrops: How the Rewards Actually Work

    WEEX Daily Lucky Wheel and Event Airdrops: How the Rewards Actually Work

    What Is ISOR Coin (Iran Strategic Oil Resource)? Facts, Risks and Where It Trades

    What Is ISOR Coin (Iran Strategic Oil Resource)? Facts, Risks and Where It Trades

    How to Earn WXT Rewards with WEEX Trade to Earn S6 Futures Event

    How to Earn WXT Rewards with WEEX Trade to Earn S6 Futures Event

    Roblox Stock Is Down 68% in the Past Year: What Age Verification and Sands Capital's Exit Actually Signal

    Roblox Stock Is Down 68% in the Past Year: What Age Verification and Sands Capital's Exit Actually Signal

    Is XST Crypto a Long-Term Opportunity or Short-Term Hype?

    Is XST Crypto a Long-Term Opportunity or Short-Term Hype?

    Meta Stock Price Is Down 30% From Its 52 Week High: Is META a Buy After the Child Safety Trial Drop

    Meta Stock Price Is Down 30% From Its 52 Week High: Is META a Buy After the Child Safety Trial Drop

    MicroStrategy's STRC Unpegged: Buy the Dip or Brace for Impact?

    MicroStrategy's STRC Unpegged: Buy the Dip or Brace for Impact?

    How to Buy Crypto on WEEX Exchange 2026: Complete Guide

    How to Buy Crypto on WEEX Exchange 2026: Complete Guide

    QQQB and the Fed: What the FOMC Minutes Mean for Nasdaq-100

    QQQB and the Fed: What the FOMC Minutes Mean for Nasdaq-100

    How to Trade Unitree Stock When You Can't Buy 688836

    How to Trade Unitree Stock When You Can't Buy 688836

    ETH to USDT: What the Converter Rate Leaves Out

    ETH to USDT: What the Converter Rate Leaves Out

    Your Crypto Exchange Is Shutting Down: How to Move Your Funds and Choose the Next Exchange

    Your Crypto Exchange Is Shutting Down: How to Move Your Funds and Choose the Next Exchange

    Meta Stock at $548: The Free Cash Flow Number Behind the Drop

    Meta Stock at $548: The Free Cash Flow Number Behind the Drop

    MU Stock Is Down 24% While Micron's Profits Hit Records

    MU Stock Is Down 24% While Micron's Profits Hit Records

    Kioxia Stock Before the Oct 1 Split: The 24/7 Perp Problem

    Kioxia Stock Before the Oct 1 Split: The 24/7 Perp Problem

    Recordati Stock (REC): The Respighi BidCo Tender Offer, the Timetable and What Happens If You Do Nothing

    Recordati Stock (REC): The Respighi BidCo Tender Offer, the Timetable and What Happens If You Do Nothing

    Eiffage Stock (FGR): The Two Engines, the Motorway Concession End Dates and the 26 August 2026 Half-Year Results

    Eiffage Stock (FGR): The Two Engines, the Motorway Concession End Dates and the 26 August 2026 Half-Year Results

    Deutz Stock (DEZ): The 24 August 2026 Extraordinary General Meeting, the FFG Share Issue and What the Resolution Says

    Deutz Stock (DEZ): The 24 August 2026 Extraordinary General Meeting, the FFG Share Issue and What the Resolution Says

    Logista Stock (LOG): The August 2026 Interim Dividend, the Four Dates That Decide Who Is Paid and What the Company Is

    Logista Stock (LOG): The August 2026 Interim Dividend, the Four Dates That Decide Who Is Paid and What the Company Is

    BlackBerry Stock Up 125%: Why BB and BBX Are Not the Same

    BlackBerry Stock Up 125%: Why BB and BBX Are Not the Same

    Netflix Stock Is Down 38%: What the Tape Is Pricing

    Netflix Stock Is Down 38%: What the Tape Is Pricing

    Nasdaq Futures vs Stocks: NQ at 30,141 and 3 Ways to Trade

    Nasdaq Futures vs Stocks: NQ at 30,141 and 3 Ways to Trade

    XST Coin Has $12,000 of Real Depth Behind a $31 Million Price

    XST Coin Has $12,000 of Real Depth Behind a $31 Million Price

    CRCL Stock in 2026: Why Rate Cuts Now Drive Circle's Price

    CRCL Stock in 2026: Why Rate Cuts Now Drive Circle's Price

    Nvidia Stock Is Closed 81% of the Week. Your Risk Isn't.

    Nvidia Stock Is Closed 81% of the Week. Your Risk Isn't.

    Nebius Stock After a 34% Pop: What the Capex Math Says

    Nebius Stock After a 34% Pop: What the Capex Math Says

    Zhipu, Z.ai and GLM: One Company, and Which Name Is Actually on the Ticker

    Zhipu, Z.ai and GLM: One Company, and Which Name Is Actually on the Ticker

    Tencent Stock (0700): Where the Shares Actually Trade, and What Each Venue Owes You

    Tencent Stock (0700): Where the Shares Actually Trade, and What Each Venue Owes You

    How to Call a Crypto Exchange API Without Getting Blocked

    What Is a Crypto Exchange API and Which Permissions to Enable

    WEEX Daily Lucky Wheel and Event Airdrops: How the Rewards Actually Work

    What Is ISOR Coin (Iran Strategic Oil Resource)? Facts, Risks and Where It Trades

    How to Earn WXT Rewards with WEEX Trade to Earn S6 Futures Event

    Roblox Stock Is Down 68% in the Past Year: What Age Verification and Sands Capital's Exit Actually Signal

    ...
    Enjoy 0 fees on 200+ hot stocks and share $100,000
    Register now

    Contents

    What a Crypto Exchange API Actually Does
    API Key Permissions: The One Most Guides Get Wrong
    How to Sign a Request: Building the ACCESS-SIGN Header
    sign
    Rate Limits: What Triggers a 429 and How to Back Off
    Is a Crypto Exchange API Safe? Three Links in the Chain
    Test on Paper Trading First: Five Errors That Bite New Integrations
    The Right Order to Integrate a Crypto Exchange API
    FAQ
    Risk Warning

    Popular coins

    Latest articles

    08/20/2026

    National Cryptocurrency Association Ripple: 67 Million Americans Own Crypto

    SIGNSIGN
    00.00%--
    SNTSNT
    00.00%--
    08/19/2026

    Web3: Foreign Media Reports that the Altcoin Market in 2026 May Depend on ISM Recovery

    SIGNSIGN
    00.00%--
    BTCBTC
    00.00%--
    08/19/2026

    Web3 Wallets in a "Season of Turmoil": Understanding the Evolution of Crypto Security's "Sword and Shield" in the AI Era

    SIGNSIGN
    00.00%--
    SFPSFP
    00.00%--
    08/19/2026

    Congress Members Raise Concerns Over AI Errors in New Legislation — Politico

    SIGNSIGN
    00.00%--
    JOEJOE
    00.00%--
    08/17/2026

    New Scam Method Involving XRP

    SENTSENT
    00.00%--
    SIGNSIGN
    00.00%--
    More
    logoCommunity
    iconiconiconiconiconiconicon
    Customer Support:@weikecs
    Business Cooperation:@weikecs
    Quant Trading & MM:bd@weex.com
    VIP Program:support@weex.com
    • About Us
    • Announcement Center
    • Media Kit
    • WEEX Community
    • WXT Zone
    • Announcement
    • Legal Statement
    • Risk Disclosure
    • Terms and Policies
    • Privacy Policy
    • Whistleblower Notice
    • AML/CTF Policy
    • Law Enforcement
    • User Guide
    • Product Launches
    • Crypto News
    • Product Launches
    • Crypto Wiki
    • Learn
    • Q&A
    • Spot
    • Futures
    • Glossary
    • VIP Program
    • Download
    • Affiliate
    • Protection Fund
    • Proof of Reserves
    • Sitemap
    • ETFs
    • Crypto Prices
    • Price Predictions
    • WXT Price
    • BTC Price
    • ETH Price
    • DOGE Price
    • How to Buy Crypto
    • How to Buy WXT
    • How to Buy BTC
    • How to Buy ETH
    • How to Buy DOGE
    • Help Center
    • Fee Schedule
    • Trading Rules
    • WEEX Academy
    • Contact Verifier
    • Submit Feedback
    • About Us
    • Announcement Center
    • Media Kit
    • WEEX Community
    • WXT Zone
    • Announcement
    • Help Center
    • Fee Schedule
    • Trading Rules
    • WEEX Academy
    • Contact Verifier
    • Submit Feedback
    • Customer Support Bot
    • VIP Services
    • Legal Statement
    • Risk Disclosure
    • Terms and Policies
    • Privacy Policy
    • Whistleblower Notice
    • AML/CTF Policy
    • Law Enforcement
    • Proof of Reserves
    • Invite Friends
    • OTC
    • Download
    • Affiliate
    • VIP Program
    • API
    • Broker
    • Listing Application
    • Affiliate T&C
    • Sitemap
    • Futures
    • Spot
    • Copy Trade
    • Markets
    • WEEX Store
    • User Guide
    • Product Launches
    • Crypto News
    • Product Launches
    • Crypto Wiki
    • Learn
    • Q&A
    • Spot
    • Futures
    • Glossary
    • VIP Program
    • Download
    • Affiliate
    • Protection Fund
    • Proof of Reserves
    • Sitemap
    • ETFs
    • Crypto Prices
    • Price Predictions
    • WXT Price
    • BTC Price
    • ETH Price
    • DOGE Price
    • How to Buy Crypto
    • How to Buy WXT
    • How to Buy BTC
    • How to Buy ETH
    • How to Buy DOGE
    • About Us
    • Announcement Center
    • Media Kit
    • WEEX Community
    • WXT Zone
    • Announcement
    • Help Center
    • Fee Schedule
    • Trading Rules
    • WEEX Academy
    • Contact Verifier
    • Submit Feedback
    • Legal Statement
    • Risk Disclosure
    • Terms and Policies
    • Privacy Policy
    • Whistleblower Notice
    • AML/CTF Policy
    • Law Enforcement
    • Customer Support Bot
    • VIP Services
    • Futures
    • Spot
    • Copy Trade
    • Markets
    • WEEX Store
    • Proof of Reserves
    • Invite Friends
    • OTC
    • Download
    • Affiliate
    • VIP Program
    • API
    • Broker
    • Listing Application
    • Affiliate T&C
    • Sitemap
    • User Guide
    • Product Launches
    • Crypto News
    • Product Launches
    • Crypto Wiki
    • Learn
    • Q&A
    • Spot
    • Futures
    • Glossary
    • VIP Program
    • Download
    • Affiliate
    • Protection Fund
    • Proof of Reserves
    • Sitemap
    • ETFs
    • Crypto Prices
    • Price Predictions
    • WXT Price
    • BTC Price
    • ETH Price
    • DOGE Price
    • How to Buy Crypto
    • How to Buy WXT
    • How to Buy BTC
    • How to Buy ETH
    • How to Buy DOGE

    Where new wealth is made

    Download app

    Sign Up
    h5 logo
    Download