WEEX Push API
Contents
This API provides an opportunity to access trading information in real time.
With it you can get information about changes in the order book and about transactions in real time.
This API is Provided using the service Pusher. You can read Pusher documentation here.
App key – ee987526a24ba107824c
Cluster – eu
Channels
depth
Information about changes in order books is sent on these channels.
Channels are formatted as “<pair_name>.depth”, for example btc_usd.depth
The event always has the name “depth” and is sent when new trades are made on the pair.
Event example:
{
"ask": [
[
"2508.179",
"0"
],
[
"2466.842",
"0.15"
],
...
],
"bid": [
...
]
}
ask: changes to the sales order book.
bid: changes to the buy order book.
All changes to the order book are sent as arrays, where the first value is the price, and the second change at this price.
If the change is set to 0, it means that there are no offers in the order book at this price (the order has been canceled or fully executed).
A change other than zero reflects the current offer in the order book.
trades
These channels send information about the transactions.
Channels are formatted as “<pair_name>.trades”, for example btc_usd.trades
The event always has the name “trades” and is sent when new trades are made on the pair.
Event example:
[
[
"buy",
"2467.762",
"0.02862282"
],
[
"sell",
"2463.105",
"0.00428728"
],
# etc
]
buy: purchase transaction.
sell: sale transaction.
WEEX唯客官網:www.weex.com
你也可以在 CMC| Coingecko|非小號|X(Twitter)|Youtube|Facebook|Linkedin|微博 上關注我们,第一时间获取更多投資導航和福利活動!了解平台幣 WXT 最新資訊請訪問 WXT專區
在線諮詢:
WEEX唯客中文交流群:https://t.me/weex_group
WEEX唯客英文交流群:https://t.me/Weex_Global