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

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 1天前
Next 2024年 11月 13日 下午3:36

相關推薦

  • WEEX新上線:OASIS (Oasis) 現貨即將上線!

    尊敬的WEEX用戶, 我們很榮幸地宣布Oasis(OASIS) 即將在WEEX上線現貨交易。OASIS/USDT 的現貨交易詳情如下: 充值時間:2025-05-04 16:00 (UTC 8) 交易時間:2025-05-05 16:00 (UTC 8) 提現時間:2025-05-06 16:00 (UTC 8) 交易現貨鏈接: OASIS/USDT OASIS 是一種旨在促進環境保護和水資源保障的加密貨幣。未來,OASIS 代幣可以兌換水。我們的目標是在促進水資源保護和可持續利用的同時,提供經濟價值。 其它信息 OASIS-USDT 官網 OASIS-USDT X WEEX 手續費 感謝您對WEEX的支持! WEEX Team 立即註冊WEEX 賬戶 >>> X 社媒關注WEEX動態 >>> 加入社區 >>> 查看更多上新>>> (Supported Platforms): CoinMarketCap | 非小號feixiaohao | Cryptowisser.com

    1小時前
    4
  • WEEX新上線:OASC (Oasis) 現貨即將上線!

    尊敬的WEEX用戶, 我們很榮幸地宣布Oasis(OASC) 即將在WEEX上線現貨交易。OASC/USDT 的現貨交易詳情如下: 充值時間:2025-05-04 16:00 (UTC 8) 交易時間:2025-05-05 16:00 (UTC 8) 提現時間:2025-05-06 16:00 (UTC 8) 交易現貨鏈接: OASC/USDT OASC 是一種旨在促進環境保護和水資源保障的加密貨幣。未來,OASIS 代幣可以兌換水。我們的目標是在促進水資源保護和可持續利用的同時,提供經濟價值。 其它信息 OASC-USDT 官網 OASC-USDT X WEEX 手續費 感謝您對WEEX的支持! WEEX Team 立即註冊WEEX 賬戶 >>> X 社媒關注WEEX動態 >>> 加入社區 >>> 查看更多上新>>> (Supported Platforms): CoinMarketCap | 非小號feixiaohao | Cryptowisser.com

    2小時前
    7
  • WEEX新上線:SKYAI 現貨即將上線!

    尊敬的WEEX用戶, 我們很榮幸地宣布SKYAI(SKYAI) 即將在WEEX上線現貨交易。SKYAI/USDT 的現貨交易詳情如下: 充值時間:TBD 交易時間:2025-04-30 18:00 (UTC 8) 提現時間:TBD 交易現貨鏈接: SKYAI/USDT SKYAI 是一個由MCP 提供支持的一體化AI 生態系統,旨在無縫集成跨行業的智能解決方案。 其它信息 SKYAI-USDT 官網 SKYAI-USDT X WEEX 手續費 感謝您對WEEX的支持! WEEX Team 立即註冊WEEX 賬戶 >>> X 社媒關注WEEX動態 >>> 加入社區 >>> 查看更多上新>>> (Supported Platforms): CoinMarketCap | 非小號feixiaohao | Cryptowisser.com

    3小時前
    7
  • WEEX新上線:LEMON (Dog Stolen From Tesla) 現貨即將上線!

    尊敬的WEEX用戶, 我們很榮幸地宣布Dog Stolen From Tesla(LEMON) 即將在WEEX上線現貨交易。LEMON/USDT 的現貨交易詳情如下: 充值時間:TBD 交易時間:2025-04-29 20:00 (UTC 8) 提現時間:TBD 交易現貨鏈接: LEMON/USDT 羅蘭崗一位當地狗主人的約克夏犬在車裡被盜,她請求公眾提供幫助。 其它信息 LEMON-USDT 官網 LEMON-USDT X WEEX 手續費 感謝您對WEEX的支持! WEEX Team 立即註冊WEEX 賬戶 >>> X 社媒關注WEEX動態 >>> 加入社區 >>> 查看更多上新>>> (Supported Platforms): CoinMarketCap | 非小號feixiaohao | Cryptowisser.com

    4小時前
    8
  • 永續合約*

    什麼是永續合約(Perpetual Futures)? 永續合約是一種特別流行的金融衍生品,尤其在加密貨幣交易市場中常見。 與傳統的期貨合約最大的不同是:永續合約沒有到期日。這意味著,交易者可以根據自己的需要,選擇持倉多久,想什麼時候平倉就什麼時候平倉,非常靈活。 簡單來說,永續合約就是一種可以一直持有,不用擔心到期交割的合約。交易者可以根據市場情況,隨時增加、減少或者關閉自己的倉位。這種特性非常適合那些希望靈活調整持倉,或者想長期持有某個方向觀點的投資者。 永續合約不僅適合喜歡短線交易、進行頻繁買賣的投機者,也特別適合需要對沖風險的投資者。舉個例子,如果你手上持有大量比特幣,但擔心短期內價格下跌,可以開一個做空的比特幣永續合約倉位。這樣,即使現貨市場上比特幣價格下跌了,你在永續合約市場上通過空頭倉位獲得的利潤,也能部分抵消現貨資產的虧損,從而起到保護資產的作用。 總之,永續合約因其靈活性和多用途,成為了許多加密貨幣投資者的重要工具。但需要注意的是,永續合約交易通常伴隨著槓桿和高波動性,風險也比較高,使用時要做好充分的風險管理。 – WEEX唯客團隊 – 聯繫我們: X | Youtube | Telegram | Medium | Facebook|LinkedIn|Blog 立即註冊WEEX賬戶:https://www.weex.com/register CoinMarketCap| Feixiaohao| Cryptowisser.com| Coingecko| Coincarp

    6小時前
    5
  • 槓桿

    什麼是加密貨幣交易中的槓桿? 在加密貨幣交易中,槓桿指的是使用借來的資金進行交易。 通過槓桿,你可以放大自己的交易規模,用比實際投入更多的資金進行買賣操作,從而增加潛在的收益(當然也增加了潛在的風險)。 不同的交易所提供不同倍數的槓桿,有的甚至可以讓你借到賬戶餘額200 倍的資金。 例如,如果你賬戶裡有100 美元,使用200 倍槓桿,最多可以開設一筆價值20,000 美元的交易。 槓桿通常以”x”的形式表示,比如: 5x(5倍槓桿) 10x(10倍槓桿) 200x(200倍槓桿) 這個x顯示的是你的初始資金被放大了多少倍。舉個例子,如果賬戶裡有100 美元,想開一筆1,000 美元的比特幣(BTC)倉位,只需要使用10倍槓桿。這樣100 美元就能發揮出1,000 美元的倉位價值。 需要注意的是,雖然槓桿可以放大收益,但同樣也會放大虧損。如果市場走勢與你的判斷相反,虧損速度也會更快,甚至可能導致強制平倉( 爆倉)。因此,在使用槓桿交易時,做好風險控制非常重要。 – WEEX唯客團隊 – 聯繫我們: X | Youtube | Telegram | Medium | Facebook|LinkedIn|Blog 立即註冊WEEX賬戶:https://www.weex.com/register CoinMarketCap| Feixiaohao| Cryptowisser.com| Coingecko| Coincarp

    7小時前
    6
zh-TW 繁體中文
目錄