WEEX交易所API文檔 | WEEX Exchange API Docs

WEEX Public API v3

Contents

This api provides access to such information as tickers of currency pairs, active orders on different pairs, the latest trades for each pair etc.

All API requests are made from this address:
https://weex.nz/api/3/<method_name>/<pair_listing>

Currency pairs are hyphen-separated (-), e.g.:
https://weex.nz/api/3/ticker/btc_usd-btc_rur

You can use as many pairs in the listing as you wish. Duplicates are not allowed. It is also possible to use only one pair:
https://weex.nz/api/3/ticker/btc_usd
A set of pairs works with all the methods presented in the public api except info.

All information is cached every 2 seconds, so there’s no point in making more frequent requests.
All API responses have the following format JSON.

Important! API will display an error if we disable one of the pairs listed in your request. If you are not going to synchronize the state of pairs using the method info, you need to send the GET-parameter ignore_invalid equal to 1, e.g.:
https://weex.nz/api/3/ticker/btc_usd-btc_btc?ignore_invalid=1
Without the parameter ignore_invalid this request would have caused an error because of a non-existent pair.


Methods

info

This method provides all the information about currently active pairs, such as the maximum number of digits after the decimal point, the minimum price, the maximum price, the minimum transaction size, whether the pair is hidden, the commission for each pair.

Request example:

curl -X GET \
  https://weex.nz/api/3/info

Response example:

{
  "server_time": 1370814956,
  "pairs": {
    "btc_usd": {
      "decimal_places": 3,
      "min_price": 0.1,
      "max_price": 400,
      "min_amount": 0.01,
      "hidden": 0,
      "fee": 0.2
    }
    # etc
  }
}

decimal_places: number of decimals allowed during trading.
min_price: minimum price allowed during trading.
max_price: maximum price allowed during trading.
min_amount: minimum sell / buy transaction size.
hidden: whether the pair is hidden, 0 or 1.
fee: commission for this pair.

A hidden pair (hidden=1) remains active but is not displayed in the list of pairs on the main page.
The Commission is displayed for all users, it will not change even if it was reduced on your account in case of promotional pricing.
If one of the pairs is disabled, it will simply disappear from the list.


ticker

This method provides all the information about currently active pairs, such as: the maximum price, the minimum price, average price, trade volume, trade volume in currency, the last trade, Buy and Sell price.
All information is provided over the past 24 hours.

Request example:

curl -X GET \
  https://weex.nz/api/3/ticker/btc_usd

Response example:

{
  "btc_usd": {
    "high": 109.88,
    "low": 91.14,
    "avg": 100.51,
    "vol": 1632898.2249,
    "vol_cur": 16541.51969,
    "last": 101.773,
    "buy": 101.9,
    "sell": 101.773,
    "updated": 1370816308
  }
  # etc
}

high: maximum price.
low: minimum price.
avg: average price.
vol: trade volume.
vol_cur: trade volume in currency.
last: the price of the last trade.
buy: buy price.
sell: sell price.
updated: last update of cache.


depth

This method provides the information about active orders on the pair.

Additionally it accepts an optional GET-parameter limit, which indicates how many orders should be displayed (150 by default).
Is set to less than 5000.

Request example:

curl -X GET \
  https://weex.nz/api/3/depth/btc_usd

Response example:

{
  "btc_usd": {
    "asks": [
      [
        103.426,
        0.01
      ],
      [
        103.5,
        15
      ],
      [
        103.504,
        0.425
      ],
      [
        103.505,
        0.1
      ],
      # etc
    ],
    "bids": [
      [
        103.2,
        2.48502251
      ],
      [
        103.082,
        0.46540304
      ],
      [
        102.91,
        0.99007913
      ],
      [
        102.83,
        0.07832332
      ],
      # etc
    ]
  }
  # etc
}

asks: Sell orders.
bids: Buy orders.


trades

This method provides the information about the last trades.

Additionally it accepts an optional GET-parameter limit, which indicates how many orders should be displayed (150 by default).
The maximum allowable value is 5000.

Request example:

curl -X GET \
  https://weex.nz/api/3/trades/btc_usd

Response example:

{
  "btc_usd": [
    {
      "type": "ask",
      "price": 103.6,
      "amount": 0.101,
      "tid": 4861261,
      "timestamp": 1370818007
    },
    {
      "type": "bid",
      "price": 103.989,
      "amount": 1.51414,
      "tid": 4861254,
      "timestamp": 1370817960
    },
    # etc
  ]
  # etc
}

type: ask – Sell, bid – Buy.
price: Buy price/Sell price.
amount: the amount of asset bought/sold.
tid: trade ID.
timestamp: UNIX time of the trade.

WEEX唯客官網:www.weex.com

你也可以在 CMCCoingecko非小號X(Twitter)YoutubeFacebookLinkedin微博 上關注我们,第一时间获取更多投資導航和福利活動!了解平台幣 WXT 最新資訊請訪問 WXT專區

在線諮詢:

WEEX唯客中文交流群:https://t.me/weex_group

WEEX唯客英文交流群:https://t.me/Weex_Global

讚! (0)
Previous 2025年 4月 28日 下午11:49
Next 2025年 5月 7日 下午2:37

相關推薦

  • COINSWAP(COIN)現已上線WEEX!

    尊敬的WEEX用戶: 充值:2025年10月17日20:18(UTC 8)正式開放 交易:2025年10月18日20:18(UTC 8)正式開放 提現:2025年10月19日20:18(UTC 8)正式開放 立即交易:COIN/USDT COINSWAP(COIN) 更多信息: CoinSwap 是一個融合交易、激勵、通縮機制與社區治理的去中心化金融平台,致力於成為下一代金融基礎設施。相較傳統DEX,CoinSwap 更加透明、去中心化,用戶參與度更高。 平台原生代幣COIN 基於BEP-20 標準,部署於BNB Chain,作為唯一的治理與激勵通證,用於獎勵活躍用戶、驅動生態增長,並實現鏈上治理。 官網 X賬號 交易手續費

    18小時前
    20
  • Rizz Network(RZTO)現已上線WEEX!

    尊敬的WEEX用戶: 充值:2025年10月17日22:30(UTC 8)正式開放 交易:2025年10月18日22:30(UTC 8)正式開放 提現:2025年10月19日22:30(UTC 8)正式開放 立即交易:RZTO/USDT Rizz Network(RZTO) 更多信息: RZTO 是美國Rizz Wireless LLC 的Web3 演進項目,以去中心化物理基礎設施網絡(DePIN) 的形式運營。它利用T-Mobile 在美國的5G 網絡和Solana 區塊鏈來實現“通話賺錢”模式。該項目旨在通過獎勵用戶的移動活動來重新定義連接,併計劃轉型為移動網絡DAO。 官網 X賬號 交易手續費

    19小時前
    15
  • WE-Launch 活動結果- COIN (COINSWAP)

    宣布新一輪WE-Launch 項目活動結果: COIN (COINSWAP)。 總獎池: 10,000 USDT 總投入: 660,862,151 WXT 有效投入量: 839,408,046 WXT 參與人數: 39,151 有效人數: 36,100 *為保證一貫真實透明的原則,WEEX保留所有原始認購記錄,以備後續可能的第三方審計需要。 📅 活動時間:2025-10-15 19:00 (UTC 8) — 2025-10-18 19:00 (UTC 8) 【COIN (COINSWAP) 簡介】 CoinSwap 是一個融合交易、激勵、通縮機制與社區治理的去中心化金融平台,致力於成為下一代金融基礎設施。相較傳統DEX,CoinSwap 更加透明、去中心化,用戶參與度更高。 平台原生代幣COIN 基於BEP-20 標準,部署於BNB Chain,作為唯一的治理與激勵通證,用於獎勵活躍用戶、驅動生態增長,並實現鏈上治理。 📌溫馨提示:ZKsync Era 主網充值注意事項 由於ZKsync Era 主網的充值地址與傳統EVM 網絡地址不同,請務必根據充值頁面提供的專屬地址進行充值操作,以免資產丟失。感謝您的理解與支持! 官方網站

    20小時前
    18
  • WE-Launch 活動結果- VEREM (VEREM Token)

    宣布新一輪WE-Launch 項目活動結果: VEREM (VEREM Token)。 總獎池: 10,000 USDT 總投入: 657,810,050 WXT 有效投入量: 835,221,148 WXT 參與人數: 39,002 有效人數: 36,011 *為保證一貫真實透明的原則,WEEX保留所有原始認購記錄,以備後續可能的第三方審計需要。 📅 活動時間: 2025-10-14 16:00 (UTC 8) — 2025-10-17 16:00 (UTC 8) 【VEREM (VEREM Token) 簡介】 VEREM 代幣是Verified Emeralds 生態系統的核心數字資產。它基於BNB 鏈(幣安智能鏈)構建,遵循ERC-20 標準,並具備額外的治理和控制功能。該合約旨在確保公平的啟動條件、安全性和長期可持續性,且不包含任何交易稅或其他隱藏費用。 📌溫馨提示:ZKsync Era 主網充值注意事項 由於ZKsync Era 主網的充值地址與傳統EVM 網絡地址不同,請務必根據充值頁面提供的專屬地址進行充值操作,以免資產丟失。感謝您的理解與支持! 官方網站 | X

    22小時前
    15
  • USDC合約手續費調整公告

    親愛的WEEX用戶您好,為進一步優化合約市場結構,提升整體交易體驗,WEEX將於2025年10月18日(週六)15:00(UTC 8) 對部分合約幣對的 Maker手續費 、Taker手續費進行調整。 本次調整詳情如下: USDC掛單Maker調整前 0.02%調整至 0.04% USDC吃單Taker調整前 0.08%調整至 0.16%

    1天前
    22
  • 🫰(BIXIN)現已上線WEEX!

    尊敬的WEEX用戶: 充值:即將開放 交易:2025年10月17日15:00(UTC 8)正式開放 提現:即將開放 立即交易:BIXIN/USDT 🫰(BIXIN) 更多信息: 🫰代幣源於cz_binance發布的推文,展示了一個豎起大拇指的手勢表情符號。該代幣代表了社區對加密貨幣領域的積極態度和樂觀情緒。 官網 X賬號 交易手續費

    1天前
    14
內容目錄