WEEX API introduction

Welcome to WEEX API!

This is the official WEEX API document, and it will be continuously updated, please stay tuned for the latest updates.

Welcome to WEEX API!

This is the official WEEX API document, and it will be continuously updated, please stay tuned for the latest updates.

You can switch to different API business in the top menu, and switch to different language by clicking the button in the top right.

On the right side of the document are examples for request parameters and response results.

👉 WEEX Exchange API Docs

Check Server Time

Rate limit rule: 20 request/2s

HTTP Request Check server time

  • GET /api/spot/v1/public/time

Response

{
    "code": "00000",
    "msg": "success",
    "requestTime": 1622097118135,
    "data": 1622097118134
}

Coin Basic Information

Rate limit rule: 20 request/2s

HTTP Request get all coins information on the platform

  • GET /api/spot/v1/public/currencies

Response:

{
    "code":"00000",
    "msg":"success",
    "requestTime":1622097139437,
    "data":[
        {
            "coinId":"1",
            "coinName":"BTC",
            "transfer":"true",
            "chains":[
                {
                    "chain":null,
                    "needTag":"false",
                    "withdrawAble":"true",
                    "rechargeAble":"true",
                    "withdrawFee":"0.005",
                    "depositConfirm":"1",
                    "withdrawConfirm":"1",
                    "minDepositAmount":"0.001",
                    "minWithdrawAmount":"0.001",
                    "browserUrl":"https://blockchair.com/bitcoin/testnet/transaction/"
                }
            ]
        },
        {
            "coinId":"2",
            "coinName":"USDT",
            "transfer":"true",
            "chains":[
                {
                    "chain":"ERC20",
                    "needTag":"false",
                    "withdrawAble":"true",
                    "rechargeAble":"true",
                    "withdrawFee":"0.01",
                    "depositConfirm":"12",
                    "withdrawConfirm":"1",
                    "minDepositAmount":"0.1",
                    "minWithdrawAmount":"0.1",
                    "browserUrl":"https://ropsten.etherscan.io/tx/"
                }
            ]
        }
    ]
}

Response Field

FieldDescription
coinIdCurrency ID
coinNameCurrency name
transferIs it possible to transfer
chains
> chainChain name
> needTagIs tag needed
> withdrawAbleWithdrawable or not
> rechargeAbleIs it possible to deposit
> withdrawFeeWithdrawal fee
> depositConfirmDeposit no. of confirmation block
> withdrawConfirmWithdrawal no. of confirmation block
> minDepositAmountMinimum deposit Amount
> minWithdrawAmountMinimum withdrawal Amount
> browserUrlBlockchain browser url

Get All Coin Pairs Information

Rate limit rule: 20 request/1s

HTTP Request get basic configuration information of all trading pairs

  • GET /api/spot/v1/public/products

Response:

{
    "code":"00000",
    "msg":"success",
    "requestTime":1622097197283,
    "data":[
        {
            "symbol":"BTCUSDT_SPBL",
            "symbolName":"BTCUSDT",
            "baseCoin":"BTC",
            "quoteCoin":"USDT",
            "minTradeAmount":"0.0001",
            "maxTradeAmount":"10000",
            "takerFeeRate":"0.001",
            "makerFeeRate":"0.001",
            "priceScale":"4",
            "quantityScale":"8",
            "status":"online"
        },
        {
            "symbol":"EOSUSDT_SPBL",
            "symbolName":"EOSUSDT",
            "baseCoin":"EOS",
            "quoteCoin":"USDT",
            "minTradeAmount":"1",
            "maxTradeAmount":"1",
            "takerFeeRate":"1",
            "makerFeeRate":"1",
            "priceScale":"1",
            "quantityScale":"1",
            "status":"online"
        }
    ]
}

Response Field

FieldDescription
symbolCoin pair
baseCoinBase coin
quoteCoinQuote coin
minTradeAmountMinimum trade size
maxTradeAmountMaximum trade size
takerFeeRateTaker fee rate
makerFeeRateMaker fee rate
priceScalePricing scale
quantityScaleQuantity scale
statusStatus

Get Coin Pairs Information By Symbol

Rate limit rule: 20 request/1s

HTTP Request

  • GET /api/spot/v1/public/product

Request parameter

ParametersTypeRequiredDescription
symbolStringYesName of Currency pair

Response:

{
    "code":"00000",
    "msg":"success",
    "requestTime":1622097197283,
    "data":[
        {
            "symbol":"BTCUSDT_SPBL",
            "symbolName":"BTCUSDT",
            "baseCoin":"BTC",
            "quoteCoin":"USDT",
            "minTradeAmount":"0.0001",
            "maxTradeAmount":"10000",
            "takerFeeRate":"0.001",
            "makerFeeRate":"0.001",
            "priceScale":"4",
            "quantityScale":"8",
            "status":"online"
        }
    ]
}

Response Field

FieldDescription
symbolCurrency pair
baseCoinBase Currency
quoteCoinQuote Currency
minTradeAmountMinimum trade size
maxTradeAmountMaximum trade size
takerFeeRateTaker fee rate
makerFeeRateMaker fee rate
priceScalePricing scale
quantityScaleQuantity scale
statusStatus

Spot Market Data Endpoints

Get Ticker By Symbol

Rate limit rule: 20 request/1s

HTTP Request

  • GET /api/spot/v1/market/ticker

Request parameter

ParametersTypeRequiredDescription
symbolStringYesCurrency pair

Response:

{
    "code":"00000",
    "data":{
        "symbol":"BTCUSDT",
        "high24h":"34413.1",
        "low24h":"34413.1",
        "close":"34413.1",
        "quoteVol":"0",
        "baseVol":"0",
        "usdtVol":"0",
        "ts":"1625125755277"
    },
    "msg":"success",
    "requestTime":1625125756372
}

Response Field

FieldDescription
symbolCurrency pair
high24h24h highest price
closeLatest transaction price
low24h24h lowest price
quoteVolQuote Currency volume
baseVolBase Currency volume
usdtVolUSDT volume
tsSystem timestamp

Get The Latest Ticker For All Symbols

Rate limit rule: 20 request/1s

HTTP Request Get the latest ticker for all coin pairs

  • GET /api/spot/v1/market/tickers

Response:

{
    "code":"00000",
    "data":[
      {
        "symbol":"BTCUSDT",
        "high24h":"34413.1",
        "low24h":"34413.1",
        "close":"34413.1",
        "quoteVol":"0",
        "baseVol":"0",
        "usdtVol":"0",
        "ts":"1625125755277"
    }
    ]
    "msg":"success",
    "requestTime":1625125756372
}

Response Field

FieldDescription
symbolCurrency pair
high24h24h highest price
closeLatest transaction price
low24h24h lowest price
tsSystem timestamp
baseVolBase coin volume
quoteVolQuote coin volume
usdtVolUSDT volume

Recent Trades List

Rate limit rule: 20 request/1s

HTTP Request

  • GET /api/spot/v1/market/fills

Request parameter

ParametersTypeRequiredDescription
symbolStringYesCurrency pair
limitStringNoDefault 100

Response:

{
    "code":"00000",
    "msg":"success",
    "requestTime":1622097283024,
    "data":[
        {
            "symbol":"BFTUSDT_SPBL",
            "tradeId":"781698148534505473",
            "side":"buy",
            "fillPrice":"2.38735",
            "fillQuantity":"2470.6224",
            "fillTime":"1622097282536"
        },
        {
            "symbol":"BFTUSDT_SPBL",
            "tradeId":"781698140590493697",
            "side":"sell",
            "fillPrice":"2.38649",
            "fillQuantity":"3239.7976",
            "fillTime":"1622097280642"
        }
    ]
}

Response Field

FieldDescription
symbolCurrency pair
tradeIdtrade id
sideTrade direction
fillPriceTransaction price
fillQuantityTransaction quantity
fillTimeTransaction time

Kline/Candlestick Data

Rate limit rule: 20 request/1s

HTTP Request

  • GET /api/spot/v1/market/candles

Request parameter

ParametersTypeRequiredDescription
symbolStringYesCurrency pair
periodStringYesCandlestick line time unit, granularity (​​refer to the following list for values)
afterStringNoTime after
beforeStringNoTime before
limitStringNoDefault 100
Descriptiongranularity
1min60
5min300
15min900
30min1800
1h3600
4h14400
12h43200
1d86400
7d604800

Response:

{
    "code":"00000",
    "msg":"success",
    "requestTime":1622097356073,
    "data":[
        {
            "open":"2.34517",
            "high":"2.34771",
            "low":"2.34214",
            "close":"2.34555",
            "quoteVol":"189631.101357091",
            "baseVol":"80862.6823",
            "usdtVol":"189631.101357091",
            "ts":"1622091360000"
        },
        {
            "open":"2.34391",
            "high":"2.34903",
            "low":"2.34391",
            "close":"2.34608",
            "quoteVol":"167725.002115681",
            "baseVol":"71479.3205",
            "usdtVol":"167725.002115681",
            "ts":"1622091420000"
        }
    ]
}

Response Field

FieldDescription
tsSystem timestamp
openOpening price
highHighest price
lowLowest price
closeClosing price
baseVolBase Currency volume
quoteVolQuote Currency volume
usdtVolUSDT volume

Order Book

Rate limit rule: 20 request/1s

HTTP Request

  • GET /api/spot/v1/market/depth

Request parameter

ParametersTypeRequiredDescription
symbolStringYesCurrency pair
typeStringYesDefault: step0: do not merge, value: step0, step1, step2, step3, step4, step5
limitStringYesDefault 500

Response:

{
    "code":"00000",
    "msg":"success",
    "requestTime":1622102974025,
    "data":{
        "asks":[
            [
                "38084.5",
                "0.0039"
            ],
            [
                "38085.7",
                "0.0018"
            ],
            [
                "38086.7",
                "0.0310"
            ],
            [
                "38088.2",
                "0.5303"
            ]
        ],
        "bids":[
            [
                "38073.7",
                "0.4993000000000000"
            ],
            [
                "38073.4",
                "0.4500"
            ],
            [
                "38073.3",
                "0.1179"
            ],
            [
                "38071.5",
                "0.2162"
            ]
        ],
        "timestamp":"1622102974025"
    }
}

Spot Account Endpoints

Get Assets

Rate limit rule: 10 request/1s

HTTP Request

  • GET /api/spot/v1/account/assets

Response:

{
  "code":"00000",
  "message":"success",
  "data":[
    {
        "coinId":"10012",
        "coinName":"usdt",
        "available":"0",
        "frozen":"0",
        "lock":"0",
        "uTime":"1622697148"
    }
]
}

Response Field

FieldDescription
coinIdCurrency id
coinNameCurrency name
availableAvailable assets
frozenFrozen assets
lockLocked assets
uTimeUpdated time

Get Bill Record

Rate limit rule: 10 request/1s

HTTP Request

  • POST /api/spot/v1/account/bills

Request parameter

ParametersTypeRequiredDescription
coinIdIntegerNoCurrency ID
groupTypeStringNoTransaction group type
bizTypeStringNoBusiness type
afterStringNoSend in billId, the data before this billId
beforeStringNoSend in billId, the data after this billId
limitIntegerNodefault 100, Max. 500

Response:

{
  "code":"00000",
  "message":"success",
  "data":[{
      "cTime":"1622697148",
      "coinId":"22",
      "coinName":"usdt",
      "groupType":"deposit",
      "bizType":"transfer-in", 
      "quantity":"1",
      "balance": "1",
      "fees":"0",
      "billId":"1291"
}]
}

Response Field

FieldDescription
cTimeCreated time
coinIdCurrency Id
coinNameCurrency name
groupTypeTransaction group type
bizTypeBusiness type
quantityQuantity
balanceAssets before action
feesTransaction fees
billIdid

Get Transfer Record

Rate limit rule: 10 request/1s

HTTP Request

  • GET /api/spot/v1/account/transferRecords

Request parameter

ParametersTypeRequiredDescription
coinIdIntegerNoCurrency ID
fromTypeStringNoAccount Type
afterLongNoafter transfer balance
beforeLongNobefore transfer balance
limitIntegerNodefault 100, Max. 500

Response:

{
    "code":"00000",
    "data":[
        {
            "coinName":"btc",
            "status":"SUCCESS",
            "toType":"USD_MIX",
            "toSymbol":"",
            "fromType":"CONTRACT",
            "fromSymbol":"BTC/USD",
            "amount":"1000.00000000",
            "tradeTime":"1631070374488"
        }
    ],
    "msg":"success",
    "requestTime":1631608142260
}

Response Field

FieldDescription
coinNameCurrency name
statusStatus
toTypeTransfer in account type
toSymbolTransfer to account Symbol
fromTypeTransfer out account type
fromSymbolTransfer in account Symbol
amountNumber of transfers
tradeTimeTransfer time

Spot Trade Endpoints

New Order

Rate limit rule: 10 requests/1s

HTTP Request new order

  • POST /api/spot/v1/trade/orders

Request Parameter

ParametersTypeRequiredDescription
symbolStringYesSymbol:/products
sideStringYesTrade Direction
orderTypeStringYesTrade Type limit/market
forceStringYesOrder Type
priceStringNoLimit Order Price
quantityStringYesAmount
clientOrderIdStringNoClient Order ID

Response:

{
    "code":"00000",
    "msg":"success",
    "data":{
        "orderId":"1001",
        "clientOrderId":"hgXjh89AsxleMSw"
    }
}

Response Field

FieldDescription
orderIdorder id
clientOrderIdclient order id

Place Multiple Orders

Rate limit rule: 5 requests/1s

HTTP Request Place Multiple Orders

  • POST /api/spot/v1/trade/batch-orders

Request Parameter

ParametersTypeRequiredDescription
symbolStringYesSymbol: /products
orderListListYesList of Orders
  • orderList Field
ParametersTypeRequiredDescription
sideStringYesTrade Direction
orderTypeStringYesTrade Type limit/market
forceStringYesOrder Type
priceStringNoLimit Order Price
quantityStringYesAmoun
clientOrderIdStringNoClient Order ID

Response:

{
    "code":"00000",
    "msg":"success",
    "data":{
        "resultList":[
            {
                "clientOrderId":"hgXjh89AsxleMSw",
                "orderId":"1001"
            }
        ]
    }
}

Cancel Order

Rate limit rule: 10 requests/1s

HTTP Request Cancel order

  • POST /api/spot/v1/trade/cancel-order

Request Parameter

ParametersTypeRequiredDescription
symbolStringYesSymbol :/products
orderIdStringYesOrder id array

Response:

{

  "code":"00000",
   "message":"success",
   "data":"1001"

}

Cancel Multiple Orders

Rate limit rule: 10 request/1s

HTTP Request Cancel multiple orders

  • POST /api/spot/v1/trade/cancel-batch-orders

Request Parameter

ParametersTypeRequiredDescription
symbolStringYesSymbol:/products
orderIdsString[]YesOrder id array

Response:

{

  "code":"00000",
   "message":"success",
    "data":[
    "1001",
    "1002"
    ]

}   

Get Order details

Rate limit rule: 10 request/1s

HTTP Request get order details by order id or client order id

  • POST /api/spot/v1/trade/orderInfo

Request Parameter

ParametersTypeRequiredDescription
symbolStringYesSymnol:/products
orderIdStringYesOrder id
clientOrderIdStringNoCustom order id

Response:

{
  "code":"00000",
  "message":"success",
"data":[{
  "accountId":"10012",
  "symbol":"btcusdt_spbl",
  "orderId":"2222222",
  "clientOrderId":"xxxxxxx",
  "price":"34245.12",
  "quantity":"1",  
  "orderType":"limit",
  "side":"buy",
  "status":"new",
  "fillPrice":"0",
  "fillQuantity":"0",
  "fillTotalAmount":"0",
  "cTime":"1622697148"
}]
}

Response Field

FieldDescription
accountIdaccount id
symbolCurrency pair name
orderIdOrder id
clientOrderIdCustom id
priceprice
quantityOrder quantity
orderTypeOrder type
sideOrder direction
statusstatus
fillPriceTransaction price
fillQuantityTransaction quantity
fillTotalAmountTotal transcation volume
cTimeCreated time

Get Pending Orders

Rate limit rule: 10 request/1s

HTTP Request Get unfilled and partially filled uncancelled orders

  • POST /api/spot/v1/trade/open-orders

Request Parameter

ParametersTypeRequiredDescription
symbolStringYesSymbol:/products

Response:

{
  "code":"00000",
  "message":"success",
"data":[{
  "accountId":"10012",
  "symbol":"btcusdt_spbl",
  "orderId":"2222222",
  "clientOrderId":"xxxxxxx",
  "price":"34829.12",
  "quantity":"1",  
  "orderType":"limit",
  "side":"buy",
  "status":"new",
  "fillPrice":"0",
  "fillQuantity":"0",
  "fillTotalAmount":"0",
  "cTime":"1622697148"
}]
}

Response Field

FieldDescription
accountIdAccount ID
symbolCurrency pair
orderIdorder id
clientOrderIdCustom id
priceOrder price
quantityOrder quantity
orderTypeOrder type
sideOrder direction
statusstatus
fillPriceTransaction price
fillQuantityTransaction quantity
fillTotalAmountTotal transcation volume
cTimeCreated time

Get Traded Order Record

Rate limit rule: 20 request/1s

HTTP Request Get all filled and cancelled orders

  • POST /api/spot/v1/trade/history

Request Parameter

参数名TypeRequiredDescription
symbolStringYesSymbol:/products
afterStringNouse orderId, the data before this orderId desc
beforeStringNouse orderId, the data after this orderId asc
limitIntegerNodefault 100, max. is 500

Response:

{
  "code":"00000",
  "message":"success",
"data":[{
  "accountId":"10012",
  "symbol":"btcusdt_spbl",
  "orderId":"2222222",
  "clientOrderId":"xxxxxxx",
  "price":"34982.12",
  "quantity":"1",  
  "orderType":"limit",
  "side":"buy",
  "status":"new",
  "fillPrice":"34982.12",
  "fillQuantity":"1",
  "fillTotalAmount":"34982.12",
  "cTime":"1622697148"
}]
}

Response Field

FieldDescription
accountIdAccount ID
symbolCurrency pair
orderIdOrder id
clientOrderIdCustom ID
priceOrder price
quantityOrder quantity
orderTypeOrder type
sideOrder direction
statusOrder status
fillPriceTransaction price
fillQuantityTransaction quantity
fillTotalAmountTotal transcation volume
cTimeCreated time

Get Transaction Details

Rate limit rule: 20 request/1s

HTTP Request get transaction detail history

  • POST /api/spot/v1/trade/fills

Request Parameter

ParametersTypeRequiredDescription
symbolStringYesSymbol:/products
orderIdStringNoOrder ID
afterStringNouse in orderId, the data before this orderId desc
beforeStringNouse in the orderId, the data after this orderId asc
limitIntegerNodefault 100, max. 500

Response:

{
  "code":"",
  "message":"",
  "data":[{
  "accountId":"1001",
  "symbol":"btcusdt_spbl",
  "orderId":"100021",
  "fillId":"102211",
  "orderType":"limit",
  "side":"buy",
  "fillPrice":"38293.12",
  "fillQuantity":"1",
  "fillTotalAmount":"38293.12",
  "cTime":"1622697148",
  "feeCcy":"btc",
  "fees":"0.0001"
}]
}

Response Field

FieldDescription
accountIdAccount ID
symbolCurrency pair
orderIdOrder id
fillIdTransaction ID
orderTypeOrder type
sideOrder direction
fillPriceTransaction price
fillQuantityTransaction quantity
fillTotalAmountTotal transaction volume
cTimeCreatied time
feeCcyCoin for transaction fee
feesTransaction fees

Common Error Codes

Error MessageError Codehttp status code
The request header “ACCESS_KEY” cannot be empty40001400
The request header “ACCESS_SIGN” cannot be empty40002400
The request header “ACCESS_TIMESTAMP” cannot be empty40003400
Invalid ACCESS_TIMESTAMP40005400
Invalid ACCESS_KEY40006400
Invalid Content_Type,please use“application/json”format40007400
Requested timestamp expired40008400
api verification failed40009400
Request is too frequent429429
The request header “ACCESS_PASSPHRASE” cannot be empty40011400
apikey/passphrase is incorrect40012400
User has been frozen40013400
Incorrect permissions40014400
System error40015400
The user must bind a mobile phone or Google authenticator40016400
Parameter verification failed40017400
Illegal IP request40018400

Spot Error Codes

Error MessageError Codehttp status code
Batch processing orders can only process up to 5040912400
OrderId or clientId must be passed one40913400
The contract configuration does not exist, please check the parameters40102400
Server upgrade, please try again later40200400
Client_oid length is not greater than 40, and cannot be Martian characters40305400
Wrong format40409400
Only check the data of the last three months40704400
Start time is greater than end time40707400
Parameter is empty40724400
Spot service return an error40725400

Websocket Market Streams

The base API endpoint is: https://api.WEEX.com

A User Data Stream listenKey is valid for 60 minutes after creation.

Doing a PUT on a listenKey will extend its validity for 60 minutes.

Doing a DELETE on a listenKey will close the stream and invalidate the listenKey.

Websocket baseurl: wss://wbs.WEEX.com/ws

User Data Streams are accessed at /ws?listenKey=listenKey
e.g.: wss://wbs.weex.com/ws?listenKey=pqia91ma19a5s61cv6a81va65sd099v8a65a1a5s61cv6a81va65sdf19v8a65a1

A single connection is only valid for 24 hours; expect to be disconnected at the 24-hour mark.

Each UID can apply for a maximum of 60 listen keys (excluding invalid listen keys).

Each listen key can support up to 5 websocket connections (which means each UID can apply for a maximum of 60 listen keys and 300 websocket links).


Listen Key

Create a ListenKey

Response:

{
  "listenKey": "pqia91ma19a5s61cv6a81va65sdf19v8a65a1a5s61cv6a81va65sdf19v8a65a1"
}

Permission: SPOT_ACCOUNT_R

HTTP Method:
POST /api/v3/userDataStream

Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent.

Request:

  • NONE

Query All ListenKeys

Response:

{
    "listenKey": [
        "c285bc363cfeac6646576b801a2ed1f9523310fcda9e927e509aaaaaaaaaaaaaa",
        "87cb8da0fb150e36c232c2c060bc3848693312008caf3acae73bbbbbbbbbbbb",
        "dc027517ebee2328b75268461a9df4d21addfac6ebebab8f5a6cccccccccccccc"
    ]
}

Permission: SPOT_ACCOUNT_R

HTTP Method:
GET /api/v3/userDataStream

Retrieve all valid listen keys.

Request:

  • NONE

Keep-alive a ListenKey

Response:

{
    "listenKey": "pqia91ma19a5s61cv6a81va65sdf19v8a65a1a5s61cv6a81va65sdf19v8a65a1"
}

HTTP Method:
PUT /api/v3/userDataStream

Keep alive a user data stream to prevent a timeout. User data streams will close after 60 minutes. It’s recommended to send a ping every 30 minutes.

Request:

NameTypeMandatoryDescription
listenKeySTRINGYES

Close a ListenKey

Response:

{
  "listenKey": "pqia91ma19a5s61cv6a81va65sdf19v8a65a1a5s61cv6a81va65sdf19v8a65a1"
}

HTTP Method:
DELETE /api/v3/userDataStream

Close out a user data stream.


Spot Account Update

The server will push an update of the account assets when the account balance changes.

Request:

{
  "method": "SUBSCRIPTION",
  "params": [
    "spot@private.account.v3.api"
  ]
}

Response:

{
    "c": "spot@private.account.v3.api",
    "d": {
        "a": "USDT",
        "c": 1678185928428,
        "f": "302.185113007893322435",
        "fd": "-4.990689704",
        "l": "4.990689704",
        "ld": "4.990689704",
        "o": "ENTRUST_PLACE"
    },
    "t": 1678185928435
}

Request:
spot@private.account.v3.api


Response Fields:

NameTypeDescription
djsonaccount updates
> astringasset
> clongchange time
> fstringfree balance
> fdstringfree changed amount
> lstringfrozen amount
> ldstringfrozen changed amount
> ostringchanged type
tlongeventTime

Spot Account Deals

Request:

{
  "method": "SUBSCRIPTION",
  "params": [
    "spot@private.deals.v3.api"
  ]
}

Response:

{
  "c": "spot@private.deals.v3.api",
  "d": {
    "p": "1.804",
    "v": "0.31",
    "a": "0.55924",
    "S": 1,
    "T": 1678901086198,
    "t": "5bbb6ad8b4474570b155610e30d960cd",
    "c": "",
    "i": "2dd9655f9fa2438fa1709510d7c1afd9",
    "m": 0,
    "st": 0,
    "n": "0.000248206380027431",
    "N": "MX"
  },
  "s": "MXUSDT",
  "t": 1661938980285
}

Request:
spot@private.deals.v3.api


Response Fields:

NameTypeDescription
djsondealsInfo
> Sinttradetype 1:buy 2:sell
> TlongtradeTime
> cstringclientOrderId
> istringorderId
> mintisMaker
> pstringprice
> stbyteisSelfTrade
> tstringtradeId
> vstringquantity
> astringdeals amount
> nstringcommission fee
> NstringcommissionAsset
sstringsymbol
tlongeventTime

Spot Account Orders

Request:

{
  "method": "SUBSCRIPTION",
  "params": [
    "spot@private.orders.v3.api"
  ]
}

Request:
spot@private.orders.v3.api


1. Limit/Market Orders

Response:

{
  "c": "spot@private.orders.v3.api",
  "d": {
    "A": 8.0,
    "O": 1661938138000,
    "S": 1,
    "V": 10,
    "a": 8,
    "c": "",
    "i": "e03a5c7441e44ed899466a7140b71391",
    "m": 0,
    "o": 1,
    "p": 0.8,
    "s": 1,
    "v": 10,
    "ap": 0,
    "cv": 0,
    "ca": 0
  },
  "s": "MXUSDT",
  "t": 1661938138193
}

Response Fields:

NameTypeDescription
djsonorderInfo
> AbigDecimalremainAmount
> OlongcreateTime
> Sinttradetype 1:buy 2:sell
> VbigDecimalremainQuantity
> abigDecimalamount
> cstringclientOrderId
> istringorderId
> mintisMaker
> ointLIMIT_ORDER(1), POST_ONLY(2), IMMEDIATE_OR_CANCEL(3), FILL_OR_KILL(4), MARKET_ORDER(5); STOP_LIMIT(100)
> pbigDecimalprice
> sintstatus 1:New order 2:Filled 3:Partially filled 4:Order canceled 5:Order filled partially, and then the rest of the order is canceled
> vbigDecimalquantity
>

ap | bigDecimal | avgPrice |
| > cv | bigDecimal | cumulativeQuantity |
| > ca | bigDecimal | cumulativeAmount |
| t | long | eventTime |
| s | string | symbol |


2. Stop Limit Order

Response:

{
  "c": "spot@private.orders.v3.api",
  "d": {
    "N": "USDT",
    "O": 1661938853715,
    "P": 0.9,
    "S": 1,
    "T": 1,
    "i": "f6d82e5f41d745f59fe9d3cafffd80b5",
    "o": 100,
    "p": 1.01,
    "s": "NEW",
    "v": 6
  },
  "s": "MXUSDT",
  "t": 1661938853727
}

Response Fields:

NameTypeDescription
djsonorderInfo
> NstringcommissionAsset
> OlongcreateTime
> PbigDecimaltriggerPrice
> Sinttradetype 1:buy 2:sell
> Tint0: GE(price is higher than triggerPrice) 1: LE(price is lower than triggerPrice)
> istringorderId
> ointorderType LIMIT_ORDER(1), POST_ONLY(2), IMMEDIATE_OR_CANCEL(3), FILL_OR_KILL(4), MARKET_ORDER(5); STOP_LIMIT(100)
> pbigDecimalprice
> sstringstate NEW, CANCELED, EXECUTED, FAILED
> vbigDecimalquantity
sstringsymbol
tlongeventTime

WEEX唯客官網:www.weex.com

你也可以在 CMCCoingecko非小號X(Twitter)YoutubeFacebookLinkedin微博 上關注我们,第一时间获取更多投資導航和福利活動!了解平台幣 WXT 最新資訊請訪問 WXT專區

在線諮詢:

WEEX唯客中文交流群:https://t.me/weex_group

WEEX唯客英文交流群:https://t.me/Weex_Global

讚! (5)
Previous 2024年 4月 9日 上午2:15
Next 2024年 4月 17日 上午3:38

相關推薦

  • WEEX Space回顧:Plasma零費用USDT能否挑戰波場霸權?

    9月26日,WEEX攜手新一代穩定幣清算網絡XPL Plasma舉辦了一場Space對話,主題圍繞著「Plasma穩定幣革命」展開。作為近期融資界的焦點,Plasma在今年完成了2,750萬美元融資,估值高達50億美元,背後不僅有Tether、Bitfinex的支持,也吸引了Peter Thiel等傳統資本的加持。這項計畫因其「零費用USDT+BTC安全+EVM相容」的創新定位,被視為可能改變穩定幣支付格局的基礎設施。本場Space嘉賓圍繞著融資邏輯、支付賽道潛力、波場競爭格局以及XPL代幣價值展開討論,帶來了一場深度解讀。 Plasma的50億美元估值與資本邏輯 在加密資本寒冬的大背景下,Plasma依然獲得50億美元估值,足見其賽道潛力。來賓一致認為,支付是區塊鏈最具確定性的兆級市場,而Plasma瞄準的痛點正是穩定幣在轉帳與清算環節中的高成本與低效率問題。Plasma的設計突破在於:用戶轉帳無需支付手續費,Gas由USDT本身承擔。這種創新降低了傳統用戶的使用門檻,直接切入穩定幣的最大應用場景—支付流通。正因如此,資本將Plasma視為下一代“金融基礎設施”,而非另一條公鏈。 Tether的策略轉型:從發行商到“數位美元央行” 如果說Plasma是技術突破,那麼它背後更深層的意義在於Tether的策略轉型。透過Plasma,Tether不再只是USDT的發行商,而是掌握了一個統一的清算層。這意味著它有機會在未來扮演類似「數位美元央行」的角色:既能掌握交易定價權,又能獲取長期收入來源。嘉賓指出,這一步棋讓Tether從“跟隨市場”升級為“制定規則”,不僅提升了金融地位,也為其擴張提供了製度性優勢。 零費用模式能否撼動波場? 目前,波場(TRON)承載了全球超過5兆美元的USDT交易量,其在穩定幣轉帳領域的霸主地位毋庸置疑。但Plasma的出現,為這一格局帶來挑戰。在Plasma模式下,用戶轉帳完全免費,且Gas由USDT本身支付,這種設計不僅降低了小額支付的摩擦,也可能讓高頻交易用戶和機構更快遷移。來賓認為,短期內Plasma難以取代波場,但長期潛力巨大,尤其是在合規和機構採用層面。 使用者體驗革命與XPL代幣邏輯 Plasma帶來的另一重意義是使用者體驗的革新。在Plasma網路中,使用者只需持有USDT即可完成轉帳和支付,體驗上更接近支付寶或微信支付的流暢感。對於尚未進入Web3的傳統用戶而言,這種門檻的降低有望帶來新的成長點。同時,Plasma原生代幣XPL的價值邏輯也備受關注。來賓指出,XPL除了治理和收益分享的功能外,其長期價值取決於網路能否真正承載大規模支付交易,而非僅依賴短期市場情緒。 穩定幣基礎設施之戰:Plasma vs Tron vs Solana 從競爭格局來看,波場的規模優勢、Solana的高性能依然不可忽視。但Plasma的零費用+合規定位+Tether直接賦能,使其在長期跑道中具備獨特優勢。嘉賓總結認為,Plasma的機會不在於和公鏈拼TPS,而在於為穩定幣量身打造的清算層,這使其有可能成為未來穩定幣支付的底層標準。本次WEEX Space的討論為產業帶來了重要啟示:穩定幣基礎設施的革命已然啟幕。 Plasma以零費用模式與Tether背書,預計在未來支付體系中扮演關鍵角色。同時,波場、Solana等競爭者的存在,也讓這場賽道之爭更具不確定性。作為主辦單位之一,WEEX將持續專注於穩定幣支付與區塊鏈合規化的發展,並透過空間對話、產業研究與用戶教育,為全球用戶提供前沿資訊與深度洞察。

    3天前
    59
  • WEEX即將上線Aster Inu (ASTERINU)!

    尊敬的WEEX用戶: Aster Inu(ASTERINU) 更多信息: 社區驅動的meme 代幣受到Aster 無縫跨鏈連接使命的啟發,將加密實用性與meme 文化融為一體。 官網 X賬號 交易手續費

    5天前
    34
  • 好友紅包功能上線公告

    1. 功能說明 為了增強您與好友之間的互動樂趣,WEEX隆重推出【好友紅包】功能!您現在可以輕鬆地使用數字貨幣向好友發送祝福,無論是慶祝佳節、表達感謝還是分享喜悅,都變得前所未有的便捷和有趣。 功能亮點 雙模式選擇:支持普通紅包和隨機紅包,滿足不同場景需求。 操作簡單:幾步點擊即可創建紅包,分享至聊天或朋友圈。 即時到賬:好友領取後,資金即時存入資金賬戶,安全高效。 趣味互動:用加密貨幣玩轉傳統習俗,提升社區活躍度。 2. 發紅包 進入紅包功能頁面(https://www.weex.com/zh-CN/redpacket/sendGifts) 發送紅包-點擊創建按鈕開始創建紅包 領取紅包-輸入紅包口令(支持一鍵粘貼)領取紅包 發放操作 1.選擇紅包類型 標準紅包-每人領取金額相同且由自己設置 隨機紅包-固定紅包金額,每人領取隨機金額 2.輸入紅包個數 3.輸入金額 標準紅包-輸入單人領取金額 隨機紅包-輸入紅包總金額 4.選擇幣種(默認USDT) 請注意可用餘額顯示 個性化設置 1.輸入你的祝福語(支持自定義) 2.選擇紅包封面(支持自定義) 3.高級設置(可選) 僅受邀人-您邀請的用戶可領取紅包 僅新用戶-24小時內新註冊用戶可領取紅包 *可同時選擇-您邀請的且註冊時間在24小時內的用戶可領取紅包 最終步驟:創建紅包按鈕 輸入資金密碼 (首次會提醒設置,保護您的資金安全) 紅包創建完成 可將圖片下載或截圖發送給好友,好友使用weex APP掃描二維碼即可領取 複製口令告訴好友,好友進入weex APP進入紅包功能頁面輸入口令即可領取 *紅包有效期24小時 3.領取紅包 · Weex APP 掃描二維碼直接領取紅包 · 進入紅包功能頁面- 領取欄輸入得到的或複制的口令- 領取紅包 規則說明 發紅包 資金支持: 您可以使用現貨賬戶中的任意幣種發放紅包,發放時相應資金將被凍結。 紅包類型: 可創建隨機紅包、普通紅包,並分享二維碼/口令給好友。 領紅包 好友領取: 好友通過您的分享二維碼或輸入口令即可領取,資金將實時存入其資金賬戶。 新用戶須知: 新用戶需完成註冊後才能領取紅包。 重要規則 有效期: 每個紅包自創建起24小時內有效,逾期未領完的資金將自動退回您的賬戶。 領取限制: · 每個紅包每人僅限領取一次。 · 為保障安全,系統會檢測異常領取行為,並可能對領取金額和次數進行限制。 溫馨提示 紅包的發放、領取均無需支付任何手續費。 請勿向不熟悉的用戶發送紅包,謹防詐騙。 本規則最終解釋權歸平台所有,如有疑問,請聯繫客服。 FAQ 平台紅包功能使用指南 Q1: 什麼是平台紅包? A: 平台紅包是允許您將賬戶中的數字貨幣作為禮物發送給好友,或領取他人發放的紅包禮物的功能。好友領取後,資金將直接進入他的平台賬戶。 Q2: 發紅包時,資金被凍結了是什麼意思?會影響交易嗎? A: 凍結是為了確保紅包金額有效。發放後,相應的資金會從您的可用餘額中扣除並鎖定。這部分被凍結的資金將無法用於交易或其他操作,直到紅包被領取完畢過期退回後,才會解凍回到您的可用餘額中。 Q3: 我可以撤回已經發出去的紅包嗎? A: 非常抱歉,紅包一旦生成並分享,無法手動撤回。如果您發錯了,可以等待24小時有效期過後,未領取的資金會自動退回到您的賬戶。 Q4: 我掃描紅包二維碼後,為什麼無法領取? A:無法領取可能有以下幾種原因,請您核對: 紅包已領完: 紅包金額已被全部領取。 您已領取過: 每個紅包每人只能領一次。 不符合發放者設置: 發放者可能設置了“僅限新用戶”或“僅限其邀請的好友”等條件。 紅包已過期: 紅包超過24小時有效期。 網絡或App問題: 請檢查網絡連接,或嘗試重啟App。 Q5: 領取到的資金在哪裡查看? A: 資金在領取成功後會實時存入您的資金賬戶。您可以在【資產】-【現貨賬戶】中查看相應幣種的餘額變化。 Q6: 發放或領取紅包有什麼限制嗎? A: 為了保障資金安全,平台設置了單紅包金額上限和單用戶每日發放次數上限。具體限額請以頁面提示為準。 Q7: 紅包退回後,資金退到哪裡了?為什麼沒看到? A: 過期退回的資金,會以原幣種的形式解凍,並返還至您的【現貨賬戶】 中。請注意查看現貨賬戶的餘額,而不是資金賬戶。 Q8: 紅包鏈接或口令洩露了怎麼辦? A: 紅包發放無定向性。下次發放時,建議使用“高級設置”功能限定領取範圍(如僅限受邀好友)。本次紅包只能等待其24小時後自動過期退還。

    6天前
    35
  • Hana Network(HANA)現已上線WEEX!

    尊敬的WEEX用戶: 充值:2025年9月29日20:00(UTC 8)正式開放 交易:2025年9月26日20:00(UTC 8)正式開放 提現:即將開放 立即交易:HANA/USDT Hana Network(HANA) 更多信息: Hana Network 由一支日本團隊於2022 年12 月推出,旨在構建新的界面,引導用戶進入加密貨幣領域,包括直播和交易平台。該項目的願景是為亞洲、非洲和其他地區的散戶用戶提供超休閒加密貨幣的入口,並服務於大型交易者。 2023 年,Hana Network 入選幣安孵化器孵化計劃,並已籌集總計900 萬美元的資金。該團隊正在分階段推出應用,逐步推出Hanafuda(一款休閒卡牌遊戲)、Capsule Shot(NFT)和Dipsy(直播)。 官網 X賬號 交易手續費

    6天前
    41
  • WEEX合約將上線YURU U本位合約- 9/27 10:00(UTC 8)

    很高興的宣布,WEEX合約將於2025年9月27日10:00(UTC 8)上線YURU U本位合約。 合約以美元穩定幣為計價單位,支持多種槓桿,以滿足不同投資者的需求。您可以通過網頁、APP進行交易,歡迎您體驗! 新增加的幣對包括: YURU/USDT 其他信息: WEEX 手續費 風險提示: 數字資產合約交易是高風險的創新產品,需要專業知識。請您理性判斷,審慎做出交易決策。 WEEX唯客團隊 註冊WEEX唯客 >>> 在Twitter上關注WEEX >>> 加入WEEX唯客社群 >>> 更多交易機會 >>> 【收錄平台】: CoinMarketCap | CryptoWisser.com | Coingecko | Coincarp – 感謝您對WEEX 的支持! – 聯絡我們: X | YouTube | Telegram | Medium | Facebook | LinkedIn | Blog 立即註冊WEEX賬戶: https://www.weex.com/register CoinMarketCap | Cryptowisser.com | Coingecko | Coincarp

    6天前
    38
  • Mira Network(MIRA)現已上線WEEX!

    尊敬的WEEX用戶: 充值:即將開放 交易:2025年9月26日21:00(UTC 8)正式開放 提現:即將開放 立即交易:MIRA/USDT Mira Network(MIRA) 更多信息: Mira 是一個去中心化的驗證網絡,旨在確保AI 輸出的可信度。 Mira 將AI 生成的內容轉化為可驗證的聲明,並在多個AI 模型之間使用區塊鏈共識,從而消除了人工驗證的必要性。這一突破使AI 能夠在醫療保健、金融和法律服務等高風險領域實現自主運行。 Mira 擁有超過100 萬用戶,涵蓋Klok 和Learnrite 等生態系統應用,正在為AI 革命構建至關重要的信任層。 官網 X賬號 交易手續費

    6天前
    36
內容目錄