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

相關推薦

  • 【預告】WEEX即將首發上線XW (X-World) 現貨!

    尊敬的WEEX用戶, 【XW (X-World) 簡介】 X-World 是一個基於區塊鏈技術的Web3.0 遊戲生態系統,旨在重新定義數字世界中的資產所有權和價值交互。傳統遊戲行業長期以來面臨著用戶與開發者利益失衡、遊戲資產缺乏真正所有權以及跨平台互操作性差等挑戰。 X-World 通過區塊鏈技術的創新應用,特別是非同質化代幣(NFT) 和去中心化金融(DeFi),來應對這些挑戰。 其它信息 XW-USDT 官網 XW-USDT X WEEX 手續費

    15小時前
    7
  • USDD We-Launch 活動延後上線

    相關文章: WEEX WE-Launch – USDD (Decentralized USD) 將上線並免費空投20,000枚USDD!

    17小時前
    7
  • WEEX WE-Launch – MIU(MIU代幣)上線及240,000,000,000 MIU空投!

    宣布啟動WE-Launch新一輪項目:MIU(MIU代幣)。 📅 活動時間:2025年7月24日09:00(UTC 0) — 2025年7月27日09:00(UTC 0) 🚀 發布週期: 押金:TBD 交易:2025年7月24日08:00(UTC 0) 撤回:TBD 活動期間,通過參與WXT,您將有機會免費 獲取240,000,000,000 MIU代幣 ! 通過WE-Launch提交WXT以賺取MIU。 WXT 提交池 總獎勵:240,000,000,000 MIU 最低承諾:1,000 瓦特-小時 最大承諾:500,000 WXT WXT 質押期結束後,系統將為每位參與質押的用戶計算空投獎勵。實際提交必須滿足每個層級的最低要求,有效提交是根據對應層級的提交倍數計算得出的。您的有效提交百分比越高,您在獎勵池中所佔的份額就越大。 預計獎勵= 當前用戶的有效承諾/ 所有用戶的總有效承諾* 總獎勵池; 用戶的有效承諾= 用戶的實際權益* 對應層級的承諾倍數; *Commit WXT 仍可參與多個項目,無需鎖定或質押。 (MIU(MIU 幣)簡介) MIU,Sui網絡上的迷因貓幣,將為您的加密貨幣冒險之旅帶來貓叫聲與歡笑。 官方網站| X | 電報| CA 條款與條件: 參加WE-Launch活動無需支付任何費用。 活動期間,您賬戶中的WXT無任何限制,可隨時進行交易或提現。 空投快照不包含任何被鎖定的WXT。 做市商和項目團隊賬戶不具備參與本次活動的資格。 嚴禁使用惡意手段,包括洗售交易、操縱交易量、創建多個賬戶以謀取利益或偽造KYC信息,以滿足活動資格要求。 WEEX保留對參與者進行資格審查的權利,有權取消參與者的活動資格、暫停發放獎勵,並追回已發放至賬戶的任何活動獎勵。 WEEX 保留本活動最終解釋權。平台有權根據市場情況調整或終止活動,且無需提前通知用戶。如有任何疑問,請聯繫我們的在線客服。

    19小時前
    11
  • WEEX WE-Launch – MIU(MIU)上線及240,000,000,000 MIU空投!

    宣布啟動WE-Launch新一輪項目:MIU(MIU)。 📅 活動時間:2025年7月24日09:00(UTC 0) — 2025年7月27日09:00(UTC 0) 🚀 上線時間: 充值時間:TBD 交易時間:2025年7月24日08:00(UTC 0) 提現時間:TBD 活動期間,通過參與WXT,您將有機會免費 獲取240,000,000,000 MIU代幣 ! 通過WE-Launch提交WXT以賺取MIU。 WXT 提交池 總獎勵:240,000,000,000 MIU 最低投入:1,000 WXT 最高投入:500,000 WXT WXT 投入期結束後,系統將計算每個參與用戶的空投獎勵。 實際投入必須滿足每個級別的最低要求,有效投入是根據相應級別的投入倍數計算的。 您的有效投入百分比越大,您在獎勵池中的份額就越大。 預計獎勵= 當前用戶的有效投入/ 所有用戶的總有效投入* 總獎勵池; 用戶的有效投入= 用戶的實際投入* 相應級別的投入倍數; *投入的WXT 可同時參與多個項目,無需鎖倉,也沒有任何質押要求。 (MIU(MIU 幣)簡介) MIU,Sui網絡上的迷因貓幣,將為您的加密貨幣冒險之旅帶來貓叫聲與歡笑。 官方網站| X | Telegram| CA 條款與條件: 參加WE-Launch活動無需支付任何費用。 活動期間,您賬戶中的WXT無任何限制,可隨時進行交易或提現。 空投快照不包含任何被鎖定的WXT。 做市商和項目團隊賬戶不具備參與本次活動的資格。 嚴禁使用惡意手段,包括洗售交易、操縱交易量、創建多個賬戶以謀取利益或偽造KYC信息,以滿足活動資格要求。 WEEX保留對參與者進行資格審查的權利,有權取消參與者的活動資格、暫停發放獎勵,並追回已發放至賬戶的任何活動獎勵。 WEEX 保留本活動最終解釋權。平台有權根據市場情況調整或終止活動,且無需提前通知用戶。如有任何疑問,請聯繫我們的在線客服。

    20小時前
    11
  • 【正式上線】WEEX開放ASP/USDT現貨交易!

    尊敬的WEEX用戶, 充值時間:2025-07-25 20:00 (UTC 8) 交易時間:2025-07-24 20:00 (UTC 8) 提現時間:TBD 交易現貨鏈接: ASP/USDT 【ASP (Aspecta) 簡介】 Aspecta 解決了資本市場的一個根本差距:早期或鎖定的資產通常在沒有透明定價的情況下進入公開市場,從而造成波動和不信任。 其它信息 ASP-USDT 官網 ASP-USDT X WEEX 手續費

    21小時前
    9
  • 現貨交易服務條款- WEEX

    最後更新:2025年7月1日 B. 本現貨交易條款是WEEX服務條款的組成部分,應與服務條款、WEEX發布的其他現有條款、聲明及政策(包括但不限於WEEX的風險提示聲明)一併閱讀。如發生任何衝突、差異或不一致,本現貨交易條款應優先適用並優先於其他條款,以解決與現貨交易相關的衝突、差異或不一致。 C. 本版本的現貨交易條款自生效之日起生效,並視為已取代先前版本。您同意並授權WEEX在認為必要時修改本現貨交易條款,但WEEX需通過在其官方網站、平台或雙方約定的方式向您發布通知的方式進行修改。您確認並同意,您有責任定期審查這些現貨交易條款,以確保您了解任何變更。 1.定義與解釋(a)“啟用設定”指的是,就追踪止損訂單而言,指從訂單簿中觀察到最低或最高價格開始,以確定是否發生等於或大於跟踪差值的價差變動的時間,具體為:(i) 若未指定激活價格,則為跟踪止損訂單下單的時間;或(ii) 若指定了激活價格,則為該激活價格在訂單簿中達到的時間。 (b)“激活價格”具有第7條(d)款中對該術語所賦予的含義。 (c)“賣單”指在訂單簿中提交的指令,以指定價格出售一定數量的基礎資產,該價格以報價資產計價。 (d)“基礎資產”指交易對中列出的首個可交易資產;即在訂單簿中進行交易的可交易資產。 (e)“報價”指在訂單簿中提交的以報價資產計價的、以指定價格購買一定數量基礎資產的訂單。 (f)“定制訂單”指平台不時提供的任何訂單類型,該類型相較於市價訂單或限價訂單包含額外功能或參數,或在訂單下達時嵌入條件性要素,包括OCO訂單、止損限價訂單及跟踪止損訂單。 (g)“取貨階段結束”具有第6條(e)款中對該術語所賦予的含義。 (h)“費用”一詞的含義與第4條(d)款中對該術語的定義相同。 (i)“法定貨幣”指由政府或中央銀行發行的國家或超國家貨幣,或以該貨幣計價的其他貨幣義務,且不屬於數字資產。 (j)“FOK”具有第6條(d)款中對該術語所賦予的含義。 (k)“GTC”具有第6條(d)款中對該術語所賦予的含義。 (l)“指令”指您通過任何方式向WEEX發出的與您WEEX賬戶的運營或執行任何交易相關的任何指示、請求或命令,具體形式和方式由WEEX自行決定。 (m)“IOC”具有第6條(d)款中對該術語所賦予的含義。 (n)“限制條件”具有第6條(c)款中對該術語所賦予的含義。 (o)“限價訂單”指以不低於該限價訂單中指定價格的條件,買入或賣出指定數量的可交易資產的訂單。 (p)“限價”具有第6條(b)款中對該術語所賦予的含義。 (q)“明顯錯誤”指任何明顯且無可爭議的錯誤,該錯誤對合理數字資產交易者而言顯而易見,包括因錯誤、故障或配置錯誤導致的價格、數量或費用方面的重大差異。 (r)“賣單”指在訂單簿中可與買單匹配的訂單。 (s)“市價單”指在交易所針對特定交易對以當前可獲得的最佳價格買入或賣出指定數量的可交易資產的指令,具體詳見第4節。

    23小時前
    10
zh-TW 繁體中文
內容目錄