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://wex.nz/api/3/<method_name>/<pair_listing>

Currency pairs are hyphen-separated (-), e.g.:
https://wex.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://wex.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://wex.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://wex.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://wex.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://wex.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://wex.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新上線:VIRGEN (VIRGEN by Virtuals) 現貨即將上線!

    尊敬的WEEX用戶, 我們很榮幸地宣布VIRGEN by Virtuals(VIRGEN) 即將在WEEX上線現貨交易。VIRGEN/USDT 的現貨交易詳情如下: 充值時間:tbd 交易時間:2025-05-24 17:06 (UTC 8) 提現時間:tbd 交易現貨鏈接: VIRGEN/USDT VIRGEN (VIRGEN by Virtuals) 其它信息 VIRGEN-USDT 官網 WEEX 手續費 感謝您對WEEX的支持! WEEX Team 立即註冊WEEX 賬戶 >>> X 社媒關注WEEX動態 >>> 加入社區 >>> 查看更多上新>>> (Supported Platforms): CoinMarketCap | 非小號feixiaohao | Cryptowisser.com

    2025年 5月 25日
    192
  • WEEX合約上線COOKIE、DGB、DSYNC、USUAL、FLR U本位合約- 5/25

    我們很高興的宣布,WEEX合約於2025年5月25日上線COOKIE、DGB、DSYNC、USUAL、FLR U本位合約。 合約以美元穩定幣為計價單位,支持多種槓桿,以滿足不同投資者的需求。您可以通過網頁、APP進行交易,歡迎您體驗! 新增加的幣對包括: 合約 上線時間(UTC 8) COOKIE/USDT 2025年5月25日11:00 DGB/USDT 2025年5月25日11:05 DSYNC/USDT 2025年5月25日11:30 USUAL/USDT 2025年5月25日11:45 FLR/USDT 2025年5月25日12:05 其他信息: WEEX 手續費 風險提示: 數字資產合約交易是高風險的創新產品,需要專業知識。請您理性判斷,審慎做出交易決策。 WEEX唯客團隊 註冊WEEX唯客 >>> 在Twitter上關注WEEX >>> 加入WEEX唯客社群 >>> 更多交易機會 >>> 【收錄平台】: CoinMarketCap | CryptoWisser.com | Coingecko | Coincarp

    2025年 5月 24日
    201
  • WEEX合約將上線COOKIE、DGB、DSYNC、USUAL、FLR U本位合約- 5/25

    我們很高興的宣布,WEEX合約將於2025年5月25日上線COOKIE、DGB、DSYNC、USUAL、FLR U本位合約。 合約以美元穩定幣為計價單位,支持多種槓桿,以滿足不同投資者的需求。您可以通過網頁、APP進行交易,歡迎您體驗! 新增加的幣對包括: 合約 上線時間(UTC 8) COOKIE/USDT 2025年5月25日11:00 DGB/USDT 2025年5月25日11:05 DSYNC/USDT 2025年5月25日11:30 USUAL/USDT 2025年5月25日11:45 FLR/USDT 2025年5月25日12:05 其他信息: WEEX 手續費 風險提示: 數字資產合約交易是高風險的創新產品,需要專業知識。請您理性判斷,審慎做出交易決策。 WEEX唯客團隊 註冊WEEX唯客 >>> 在Twitter上關注WEEX >>> 加入WEEX唯客社群 >>> 更多交易機會 >>> 【收錄平台】: CoinMarketCap | CryptoWisser.com | Coingecko | Coincarp

    2025年 5月 24日
    194
  • WEEX新上線:DINO 現貨即將上線!

    尊敬的WEEX用戶, 我們很榮幸地宣布DINO(DINO) 即將在WEEX上線現貨交易。DINO/USDT 的現貨交易詳情如下: 充值時間:TBD 交易時間:2025-05-20 15:00 (UTC 8) 提現時間:TBD 交易現貨鏈接: DINO/USDT $DINO 是一個具有開放精神和極客文化的MEME 社區。 其它信息 DINO-USDT 官網 DINO-USDT X WEEX 手續費 感謝您對WEEX的支持! WEEX Team 立即註冊WEEX 賬戶 >>> X 社媒關注WEEX動態 >>> 加入社區 >>> 查看更多上新>>> (Supported Platforms): CoinMarketCap | 非小號feixiaohao | Cryptowisser.com

    2025年 5月 24日
    197
  • WEEX合約將上線BLUE 、GOG、PSTAKE、VELAAI U本位合約- 5/24

    我們很高興的宣布,WEEX合約將於2025年5月24日上線BLUE 、GOG、PSTAKE、VELAAI U本位合約。 新增加的幣對包括: 合約 上線時間(UTC 8) BLUE/USDT 2025年5月24日15:00 GOG/USDT 2025年5月24日15:10 PSTAKE/USDT 2025年5月24日15:35 VELAAI/USDT 2025年5月24日16:00 其他信息: WEEX 手續費 風險提示: 數字資產合約交易是高風險的創新產品,需要專業知識。請您理性判斷,審慎做出交易決策。 WEEX唯客團隊 註冊WEEX唯客 >>> 在Twitter上關注WEEX >>> 加入WEEX唯客社群 >>> 更多交易機會 >>> 【收錄平台】: CoinMarketCap | CryptoWisser.com | Coingecko | Coincarp

    2025年 5月 24日
    214
  • WEEX新上線:MVP (CrypstocksAI) 現貨即將上線!

    尊敬的WEEX用戶, 我們很榮幸地宣布CrypstocksAI(MVP) 即將在WEEX上線現貨交易。MVP/USDT 的現貨交易詳情如下: 充值時間:tbd 交易時間:2025-05-24 22:00 (UTC 8) 提現時間:tbd 交易現貨鏈接: MVP/USDT 印尼的區塊鏈教育平台。 其它信息 MVP-USDT 官網 MVP-USDT X WEEX 手續費 感謝您對WEEX的支持! WEEX Team 立即註冊WEEX 賬戶 >>> X 社媒關注WEEX動態 >>> 加入社區 >>> 查看更多上新>>> (Supported Platforms): CoinMarketCap | 非小號feixiaohao | Cryptowisser.com

    2025年 5月 24日
    57
zh-TW 繁體中文
內容目錄