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唯客上線C2C交易平台:打造安全又方便的用戶交易體驗!

    在全球加密市場用戶需求日益多元化的背景下,WEEX唯客宣布正式上線 C2C(Customer to Customer)交易平台,率先支持越南盾(VND)與俄羅斯盧布(RUB)市場,為用戶帶來更靈活的點對點交易體驗。這項措施不僅標誌著WEEX全球化策略的進一步落地,也為用戶提供了更安全、更有效率的數位資產買賣通道。 安全與便利並重,打造零門檻體驗 與傳統撮合交易不同,C2C模式允許用戶之間自由發布買賣廣告並達成交易,價格由市場參與者自主決定,平台負責撮合與保障。在此次上線的功能中,WEEX唯客重點圍繞著 「安全」「便利」「零門檻」 三個關鍵字展開: 這一系列設計,不僅讓新用戶更容易入場,也為有經驗的交易者提供了更具彈性的買賣場景。 越南與俄羅斯率先上線,協助國際化佈局 首批上線的越南、俄羅斯市場,皆是近年來全球加密貨幣活躍度快速提升的地區: WEEX在這兩個市場率先開放C2C功能,不僅順應了使用者的真實需求,也意味著其全球化佈局的進一步加深。未來,WEEX將持續拓展更多新興市場,為全球用戶提供無國界的資產流通體驗。 用戶價值與產業意義 C2C交易平台的上線,不僅是WEEX唯客在產品層面的功能補充,更是品牌價值的延伸: 作為成立於2018年的全球化加密貨幣交易平台,WEEX始終秉持著合規、安全、創新的營運理念。這次C2C交易平台的上線,不僅拓寬了用戶的交易場景,也再次印證了其在國際化道路上的穩健步伐。隨著更多國家與地區的開放,WEEX正加速建立一個真正 全球互聯、用戶友好、安全合規 的加密交易生態。

    2025年 8月 26日
    132
  • 【上線預告】WEEX即將上線PROPS (Propbase) 現貨!

    尊敬的WEEX用戶, 【PROPS (Propbase) 簡介】 Propbase 是一個尖端的房地產通證化平台,它利用Aptos 區塊鏈的強大功能,為用戶提供一種全新且激動人心的房地產投資方式。我們的原生實用型通證PROPS 為整個生態系統提供動力,並為所有智能合約交互、房產交易費用以及Propbase DApp 上新房源的訪問提供統一的方案。 其它信息 PROPS-USDT 官網 PROPS-USDT X WEEX 手續費

    2025年 8月 25日
    79
  • 【上線預告】WEEX即將上線HELLO (HELLO Labs) 現貨!

    尊敬的WEEX用戶, 【HELLO (HELLO Labs) 簡介】 HELLO Labs 是Web3 的媒體與風險投資層,它將好萊塢級的內容、以創始人為中心的加速器以及鏈上基礎設施整合到一個強大的發布平台中。 AppleTV、Amazon Prime 和YouTube 上都有展示。 其它信息 HELLO-USDT 官網 HELLO-USDT X WEEX 手續費

    2025年 8月 25日
    72
  • 【正式上線】WEEX於8月25日開放DORA/USDT現貨交易!

    尊敬的WEEX用戶, 充值時間:2025-08-26 15:00 (UTC 8) 交易時間:2025-08-25 15:00 (UTC 8) 提現時間:TBD 交易現貨鏈接: DORA/USDT 【DORA (DORA) 簡介】 DORA 是一個基於Web3 的CeDeFi 項目,以女性敘事、鏈上邏輯和USD1 支持的治理為核心。它旨在透過社群驅動的共識和穩定幣機制重新定義權力結構。 其它信息 DORA-USDT 官網 DORA-USDT X WEEX 手續費

    2025年 8月 25日
    69
  • 【正式上線】WEEX於8月25日開放LLM1/USDT現貨交易!

    尊敬的WEEX用戶, 充值時間:TBD 交易時間:2025-08-25 11:00 (UTC 8) 提現時間:TBD 交易現貨鏈接: LLM1/USDT 【LLM1 (Latina Language Model) 簡介】 Latina Language Model的敘事融合了AI技術與拉丁文化特色,打造具有文化特色的AI代理概念。 其它信息 LLM1-USDT 官網 LLM1-USDT X WEEX 手續費

    2025年 8月 25日
    76
  • ANON,DARKSTAR,URANUS,XO,MM U本位永續合約下架通知

    WEEX將於2025年8月26日15:00(UTC 8)正式下架ANON,DARKSTAR,URANUS,XO,MM U本位永續合約。 2025年8月26日13:00(UTC 8)起,ANON,DARKSTAR,URANUS,XO,MM U本位永續合約將暫停開倉功能,平倉功能不受影響; 幣對下架後,所有未成交委託單將自動撤銷,未平倉倉位將自動平倉,您的賬戶資產不會受到任何影響; 為避免潛在波動風險,建議您提前手動平倉,避免不必要虧損。 WEEX將持續評估並優化合約產品,為您提供更優質的交易服務。如有任何疑問,請聯繫官方客服。 – 感謝您對WEEX 的支持! – 聯絡我們: X | YouTube | Telegram | Medium | Facebook | LinkedIn | Blog 立即註冊WEEX賬戶: https://www.weex.com/register CoinMarketCap | Cryptowisser.com | Coingecko | Coincarp

    2025年 8月 25日
    85
內容目錄