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.

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

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

相關推薦

  • WEEX 2024 年度報告:用戶突破 500 萬,日均交易額超過 50 億美元,團隊規模達 500+

    2024 年對於 WEEX 而言,是成就非凡的一年。作為全球領先的加密貨幣交易平台,WEEX 始終專注於創新、安全與用戶賦能。這一堅定初心推動 WEEX 不斷攀登新的高峰。在新的一年,WEEX 將繼續致力於為全球用戶提供最優質的交易服務,重新定義加密交易的未來。 2024 年 WEEX 里程碑 用戶增長 150% WEEX 全球活躍用戶從 200 萬增長至 500 萬,日交易量突破 50 億美元,CoinMarketCap 排名躍升至前 12 名。如此強勁的增長,源自全球用戶的信任與認可。WEEX 提供超過 1,500 種交易對、多語言支持、頂級流動性、先進的安全措施及用戶友好的交易工具,確保全球用戶享有卓越的交易體驗。 全球團隊規模擴展至 500+ 經過一年的高速增長,WEEX 團隊規模超過 500 人,這一增長使 WEEX 能夠持續提升服務品質,推動技術與產品創新,全面滿足全球用戶日益多樣化的需求,進一步鞏固我們在加密貨幣交易領域的領導地位。 傳奇球星麥可·歐文擔任 WEEX 全球品牌大使 這一年,WEEX 很榮幸攜手足球傳奇巨星麥可爾·歐文,作為全球品牌大使。麥可爾·歐文的領導力和職業精神與 WEEX 追求卓越的使命高度契合。此次合作將進一步提升 WEEX 的國際形象,增強用戶信任,並推動平台在全球市場的持續發展。。 WEEX 交易對突破 1500+,平台幣 WXT 爆發式增長 384% WEEX 平台代幣 WXT 在 24 小時內飆升 101.03%,價格創下 0.0339 美元歷史新高,累計漲幅高達 384%,持有 WXT 的年化收益率更是達到 140%。與此同時,WEEX 平台合約及現貨交易對從 400 個擴展至 1500+,並以行業頂級流動性,持續為用戶提供優質的交易體驗。 1000 BTC 投資者保護基金,提升全球用戶信心 自 2021 年起,WEEX 設立 1000 BTC 投資者保護基金,為用戶資產提供充分的安全保障。同時,WEEX 在多個國際市場加速擴展業務,提供在地化服務和多語言支持,滿足全球用戶日益多樣化的需求,贏得廣泛信賴。 2 億美金計劃:攜手 KOL,共建市場領先跟單 Pro 2024 年,WEEX 投入 2 億美元,與 The Moon Show、Crypto Banter、Professor Crypto、Bleeding Crypto 等數萬名知名意見領袖(KOL)合作,其中超過 1,000 名 KOL 通過合作年收入突破 10 萬美元。同時,借助市場領先的跟單Pro,WEEX 用戶可輕鬆複製頂級交易者策略,助力用戶把握每一次盈利機會。 感恩支持與相伴,共啟 2025 新篇章 2024年,WEEX 的每一步成功都源於全球用戶、合作夥伴與社區的信任與支持。展望 2025,WEEX 將繼續推動變革: 期待 2025 年,與您攜手共創加密貨幣交易的新未來! 歡迎訪問 WEEX 官方網站,探索更多交易機會,開啟您的交易新旅程。

    27分鐘前
    9
  • 部分用戶登入異常公告(已解決)

    尊敬的WEEX用戶,您好! 目前由於系統維護升級,部分用戶可能會遇到Web端與App端登入異常的情況。技術團隊已全面介入,並正在進行緊急技術優化,以確保系統穩定性和更流暢的交易體驗。預計30分鐘內完成修復,請您耐心等待。 恢復完成後,我們將第一時間通知您。感謝您的體諒與支持。如有任何疑問,請隨時聯絡WEEX客戶支援團隊。 WEEX團隊敬上 – WEEX唯客團隊 WXT專區:https://www.weex.com/zh-CN/wxt WEEX導航頁:support.wx9oxo.info support.wxf7hm.info WEEX幫助中心:https://weexsupport.zendesk.com/hc/zh-cn 官方中文社群:https://t.me/weex_group 【收錄平台】 CoinMarketCap| 非小號Feixiaohao| Cryptowisser.com| Coingecko| Coincarp

    1小時前
    4
  • WEEX合約已上線TALENT、PIRATE、OPEN、AST、FIRE U本位合約- 1/15 17:00 UTC 8

    親愛的唯客用戶您好! WEEX合約已於2025年1月15日17:00 (UTC 8)上線TALENT、PIRATE、OPEN、AST、FIRE U本位合約。 合約以美元穩定幣為計價單位,支援多種槓桿,以滿足不同投資者的需求。您可以透過網頁、APP進行交易,歡迎您體驗 新增加的幣對包括: TALENT(Talent Protocol) PIRATE(Pirate Nation) OPEN(Open Custody Protocol) AST(Astroon) FIRE(Matr1x Fire) 如果您有任何問題或需要協助,我們專門的支援團隊會在此提供協助。 風險提示: 數位資產合約交易是高風險的創新產品,需要專業知識。請您理性判斷,審慎做出交易決策。 WEEX唯客團隊 導覽頁:http://support.wxvbpe.info/ http://support.wx7ylx.info/ WEEX幫助中心:https://weexsupport.zendesk.com/hc/zh-cn 官方中文社群:https://t.me/weex_group 【收錄平台】 CoinMarketCap 非小號feixiaohao Cryptowisser.com

    2小時前
    4
  • 下一個BGB? WXT幣價單日翻倍原因猜測

    上週六( 1 月11 日),就在 BTC 持續調整,許多山寨幣價格腰斬,投資者信心大幅受挫之際,當日傍晚,WEEX 唯客交易所平台幣 WEEX Token (WXT) 突然一柱擎天,15 分鐘內飆升 100%,從當日最低時的0.016 美元左右暴拉至 0.033 美元。 一時間,社區紛紛猜測,WEEX 發生了什麼事?是有什麼重磅消息要公佈嗎? 如今 4 天過去了,WXT 價格依舊維持在 0.031 美元之上,看來不是曇花一現的割韭菜,還真有可能憋著大招。而且,盤面成交量數據也支持這項猜測。 近期有大資金持續買進 WXT CMC 數據顯示,WXT 目前只上線了 WEEX 和 MEXC 兩家 CEX,其中 MEXC 貢獻了 80% 以上的交易量。 開啟 MEXC 交易頁面,可以看到拉盤前的 5 個交易日,WXT 有明顯放量。 1 月 6 – 10 日的成交量分別為 $1.642M、$2.684M、$3.509M、$3.273M 和 $3.009M,5 天累計成交 $14.117M,占到 WXT 拉盤前市值的 30% 以上。而 1 月 5 日 WXT 交易量僅 $0.159M,先前交易量最高的時候(2024 年 12 月 20 日)也才 $0.689M。 再看價格,1 月 6 – 10 日這 5 天 WXT 隨大市一起調整,分別上漲 0.95%、-5.52%、-1.01%、-2.08% 和 0.97%,整體上是下跌的。 價格盤整下跌,成交卻異常放量,而且是平時成交量的 10 多倍,顯示近期有大資金持續進場買進。這一點已經確定無疑,不然就不會有第 6 天的幣價單日翻倍。 問題是,大戶為何斥資上千萬美元持續買進 WXT?那就要看最近一段時間 WEEX 交易所及業界發生了什麼事。 從 WEEX 交易所本身來看,近期並無大事發生。搜了搜新聞和公告,簽約新的代言人 Michel Owen 早在一個月前就宣布了,WE-Launch 上線加速(賦能WXT)、上幣加快(合約交易對數量排名全球第二)、成交量爆發(Coingecko 衍生性商品交易所前五,CMC 衍生性商品前20,現貨前30),這些都是基本面利好,但屬漸進式實現的,不可能突然驅動幣價翻倍。 但是,當把目光移到業界時,筆者貌似窺到了「天機」。 WXT 要效法 BGB 大幅銷毀? 從平台幣板塊來看,近 1 個月最耀眼的明星幣無疑是 Bitget 的平台幣 BGB,從 12 月 4 日的 1.57 美元一路拉到了 12 月 27 日最高時的 8.5 美元,不到一個月拉了4.4 倍。那麼,BGB 發生了什麼事? 12 月 27 日謎底揭曉:Bitget 將銷毀 8 億枚 BGB,佔總供應量 40%。前一天,Bitget 也宣布將其原生代幣 Bitget Token(BGB)與 Bitget Wallet Token(BWB)合併,但這一點並不適用於 WXT,因為 WEEX 交易所暫無 Web3 產品。 那麼,WEEX 有沒有可能效法 Bitget 在近期宣布銷毀 WXT 呢?答案幾乎已經明牌了! 翻開 WXT 白皮書,第 9 頁赫然寫著:「WEEX 將定期使⽤平台利潤的⼀部分進⾏ WXT 的回購和永久銷毀,具體回購時間和數量將根據市場狀況和平台收入進⾏調整。 ⽬標是逐步減少總供應量至 10 億 WXT,以增強其稀缺性,保護持幣者的長期價值回報。」 WXT 於 2024 年 7 月正式上線,總供應量 100 億枚,「目標是逐步減少總供應量至 10 億 WXT」,意味著總共將銷毀 90%。 WEEX 承諾「將定期使⽤平台利潤的⼀部分進⾏ WXT 的回購和永久銷毀」,從去年 7 月上線至今,超過半年了,是不是該到一個「定期」的時間節點了? 再看 Coingecko 數據,WEEX 平台合約交易量從去年 9 月至今翻了一倍,合約持倉量翻了一倍不止,現貨交易量從去年 7 月至今翻了 5、6 倍,加上最近幾個月結束了現貨交易 0 手續費和熱門合約幣對 0 手續費促銷活動,平台的利潤無疑大幅增長甚至翻倍了,是不是到了該兌現回購銷毀承諾的時候了? 至於銷毀多少,就看 WEEX 的格局了。但既然是抄 Bitget 的作業,BGB 本次銷毀了 40%,估計 WXT 銷毀量也差不多,畢竟還有 90% 待銷毀,而越到後面回購成本越高。 雖然以上只是個人猜測,但應該有 80% 以上的確定度。否則,無法解釋 WXT 那詭異的單日翻倍和近期的大資金斥巨資買入。現在看來,這些買盤很有可能就是 WEEX 平台的回購作業。接下來就交給時間來驗證吧,最多一個月見分曉!

    4小時前
    10
  • 部分用戶登入異常公告

    尊敬的WEEX用戶,您好! 恢復完成後,我們將第一時間通知您。感謝您的體諒與支持。如有任何疑問,請隨時聯絡WEEX客戶支援團隊。 WEEX團隊敬上 – WEEX唯客團隊 WXT專區:https://www.weex.com/zh-CN/wxt WEEX導航頁:support.wx9oxo.info support.wxf7hm.info WEEX幫助中心:https://weexsupport.zendesk.com/hc/zh-cn 官方中文社群:https://t.me/weex_group 【收錄平台】 CoinMarketCap| 非小號Feixiaohao| Cryptowisser.com| Coingecko| Coincarp

    4小時前
    7
  • WEEX合約將上線SILLY、APEPE、TEL、COOK、KMD U本位合約- 1/15 14:00 UTC 8

    親愛的唯客用戶您好! WEEX合約將於2025年1月14日14:00 (UTC 8)上線SILLY、APEPE、TEL、COOK、KMD U本位合約。 合約以美元穩定幣為計價單位,支援多種槓桿,以滿足不同投資者的需求。您可以透過網頁、APP進行交易,歡迎您體驗 新增加的幣對包括: SILLY(Silly Dragon) APEPE(Ape and Pepe) TEL(Telcoin) COOK(mETH Protocol) KMD(Komodo) 如果您有任何問題或需要協助,我們專門的支援團隊會在此提供協助。 風險提示: 數位資產合約交易是高風險的創新產品,需要專業知識。請您理性判斷,審慎做出交易決策。 WEEX唯客團隊 導覽頁:http://support.wxvbpe.info/ http://support.wx7ylx.info/ WEEX幫助中心:https://weexsupport.zendesk.com/hc/zh-cn 官方中文社群:https://t.me/weex_group 【收錄平台】 CoinMarketCap 非小號feixiaohao Cryptowisser.com

    6小時前
    9
目錄