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

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

相關推薦

  • WEEX唯客一周大事記:加密貨幣市場熱門動態與活動回顧[11/29-12/6]

    WEEX唯客作為全球領先的加密貨幣交易所,為用戶帶來最新的市場動態和精彩活動。以下是本週的亮點總結,幫助您掌握加密市場趨勢並參與我們的精彩活動! 市場表現亮點 本週,以下幣種成為市場的焦點: 這些數據充分顯示了市場的波動性,也提醒投資者保持警惕,利用WEEX提供的工具制定合理的交易策略。 本週活動亮點 WEEX通過多樣化的活動讓交易更有趣,激勵用戶探索更多機會。 WEEX全球實力持續提升 WEEX不僅提供頂級交易服務,還憑藉卓越表現贏得全球用戶的信賴。 選擇WEEX的理由 加入WEEX,立即開啟您的財富自由之路!

    1天前
    24
  • Andy (Andy)現貨即將上線!

    尊敬的WEEX用戶, 我們很榮幸地宣布,Andy即將在WEEX上線。詳情如下: 儲值時間:2024年12月9日14:00 (UTC 8) 交易時間:2024年12月10日14:00 (UTC 8) 提現時間:2024年12月11日14:00 (UTC 8) 【Andy (Andy) 簡介】 小心癲癇發作,SOL 上的癲癇病就在這裡! SOL 上的超有機邪教具有癲癇發作的不良影響。 官方網站 | X | Telegram | CA 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天前
    16
  • 小幣種交易賽

    親愛的WEEX用戶: 活動時間:2024年12月6日00:00 – 2024年12月12日18:59 (UTC 8) 參與資格:所有WEEX 用戶 獲獎資格:報名參與活動,且活動期間合約累積交易量≥ 30,000 USDT 活動幣對:USDT本位永續合約: DOGE、SOL、SUI、PNUT、1000PEPE、WLD、XLM、BANANA、ADA、WIF 動態獎金池:根據所有報名參賽用戶的合約總交易量解鎖不同獎金池,詳情如下: 合約交易量(USDT) 400,000,000 800,000,000 1,800,000,000 3,500,000,000 獎金池($) 5,000 10,000 25,000 50,000 獎勵規則: 點選「立即報名」參與活動,【交易量排名賽】將瓜分價值$50,000總獎池,【個人損益排名賽】也將發放代幣獎勵。具體規則如下: 【交易量排名賽】獎勵規則 排名 瓜分總獎金池比例 1 35% 2 25% 3 10% 4 5% 5 3% 6 2% 7 – 10 均分5% 11 – 20 均分5% 21 – 35 均分5% 36 – 60 均分5% 註:只有當最高一檔獎金池解鎖時,以上獎勵將全部解鎖 【盈虧額排名賽】 獎勵規則 排名 獎勵 1 9 SOL 2 200 WIF 3 200 WIF 4 200 WIF 5 129 PNUT 6 129 PNUT 7 129 PNUT 8 129 PNUT 9 129 PNUT 10 129 PNUT 活動說明: 1.有效用戶:每位參與者必須達到至少30,000 USDT的合約總交易量才有資格分享獎池(未達到要求的參與者將無法獲得獎金),30,000 USDT 交易量要求僅可參與最終排名,不參與任何獎勵); 2.活動期間,每位用戶在報名後產生的交易量(0手續費、0% Maker的交易幣對所產生的交易量均除外),將被計入活動的總交易量; 3.活動期間合約交易量= 開倉交易量平倉交易量;只計算貢獻手續費的合約交易量; 4. 交易量排行榜前3名,每人將額外獲得一套客製球衣; 5.非實體獎勵將在活動結束後7個工作天內發放,符合獎勵的用戶會自動發放至WEEX帳戶; 6.若代幣獎勵因其他不可抗力等因素,導致無法正常發放,將視情況把獎勵折算為等值DOGE代幣或USDT代幣發放; 7. 小幣種價格受市場行情影響,所以目前排行榜上的獎勵數量僅供參考,我們會根據活動結束時的幣價,發放對應數量的代幣獎勵; 8.對於涉及大規模註冊、惡意使用、欺詐行為、非法活動、欺詐或其他有害目的的活動,WEEX嚴格審查並保留取消參與和獎勵的權利; 9.WEEX保留修改或變更條件的權利,包括但不限於取消、延長、終止或暫時中止活動、資格標準和標準、獲獎者的選擇和數量以及措施的持續時間; 10.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

    2天前
    20
  • 川普提名Paul Atkins為SEC主席,對加密貨幣的影響分析

    川普週三在其Truth Social平台上宣布了一系列提名人選,表示:“我很高興提名Paul Atkins為下一任SEC主席。”他稱讚Atkins為“公認的常識性法規領導者”,並指出他“認識到數位資產和其他創新對讓美國變得比以往任何時候都更偉大至關重要」。 幾小時後,比特幣價格突破10萬美元大關。目前,BTC市值達到1.95兆美元,在全球資產類別中排名第七,僅與市值排名第六的Google相差10%的漲幅。 Paul Atkins出任SEC主席對加密貨幣的意義 人事即政策。自2021年以來,由加里·根斯勒(Gary Gensler)領導的SEC對加密貨幣採取了強硬態度。加密貨幣產業希望下一任主席能創造一個更具吸引力的環境,以便在區塊鏈上進行創新。 Gensler的任期還有兩個月,他已宣布將於1月20日川普就職日中午卸任。 Atkins的任命將代表SEC在即將離任的拜登政府領導下,對加密貨幣的態度有重大轉變。川普在Truth Social上宣布提名Atkins後,BTC在短短一小時內上漲超過1000美元,顯示出加密社群對這一消息的積極反應。 Atkins在共和黨商界享有盛譽,現為金融服務諮詢集團Patomak Global Partners的創辦人兼CEO。 2017年,他加入了加密貨幣倡導組織Token Alliance,並擔任聯合主席,致力於捍衛比特幣及其他數位貨幣,反對SEC對加密產業的監管。 在Patomak Global Partners網站上的個人簡介中,Atkins提到自2017年以來一直擔任Token Alliance的聯合主席,致力於為數位資產發行和交易平台製定最佳實踐。 今年4月,Atkins在聯邦黨人協會活動上表示,加密貨幣缺乏明確的監管是SEC需要解決的「根本問題」。Atkins被視為加密貨幣的支持者,而川普的任命標誌著新政府將對加密貨幣提供更深入的支持。 加州民主黨眾議員布拉德·謝爾曼(Brad Sherman)表示:“Atkins可能會認為加密貨幣不是證券,因此從事加密貨幣交易的交易所不應被視為證券交易所。” Atkins為加密相關客戶提供服務,包括交易所和希望將數位貨幣融入其業務的公司。在與數位商會(Digital Chamber)合作的過程中,他幫助制定了一套監管加密貨幣的最佳實踐。 Atkins曾在川普第一任期內以經濟顧問小組成員身分與他合作,該小組還包括貝萊德CEO拉里·芬克(Larry Fink)。 加密社群對Paul Atkins任命的反應 在川普發布任命Atkins為SEC主席後,Coinbase首席法律長Paul Grewal在X平台上祝賀Atkins,表示: 我們讚賞Atkins致力於平衡監管美國證券市場,並期待他在SEC發揮新的領導作用。這是非常必要的,而且來得再快也不為過。 專注於數位證券的金融科技公司Securitize創辦人兼CEO Carlos Domingo在Morning Brief節目中討論了Atkins對加密貨幣的意義。他表示,Securitize團隊對Atkins出任SEC主席的可能性“非常興奮”,稱他是一位“支持數位資產、對行業非常了解的人”。 Domingo預計,在Atkins的領導下,加密貨幣監管將有一個更「協作的框架」。他指出,目前框架下存在許多不確定性,包括哪個監管機構負責監管加密產業的不同部分。 川普翻轉對加密貨幣的態度,任命Atkins將兌現他對加密貨幣遊說團體的重要承諾。曾經看不起加密貨幣的川普,現在呼籲建立國家戰略性比特幣儲備,並承諾將美國打造成加密貨幣的「世界之都」。 在競選過程中,川普努力爭取加密貨幣社群的支持,承諾推出一系列支持加密貨幣的政策,包括建立「國家戰略比特幣儲備」。他也與家人共同創立了World Liberty Financial,一家交易加密貨幣的新公司。 川普曾承諾在他執政的「第一天」就解僱拜登政府的SEC主席Gary Gensler,而Gensler已宣布將於明年1月20日主動離職。 NPR報告稱,2024年聯邦選舉中近一半的企業支出來自加密貨幣支持者,部分原因是對拜登監管制度的不滿。川普當選後,比特幣一路飆升,顯示加密貨幣市場對新的「讓美國再次偉大」政策的熱情高漲。

    2天前
    40
  • WEEX現貨下架FREE MCEN交易對

    親愛的唯客用戶您好! 2024/12/05 15:00 (UTC 8) FREE2024/12/06 15:00 (UTC 8) MCEN請您於下架時間點前,將現貨兌換至USDT或其他現貨,避免下架後系統自動兌換之動作下架時間點前,不影響此現貨之提幣業務*風險提示:區塊鏈交易是具有高市場風險的活動,在可能帶來巨大收益的同時,也可能為您帶來巨大的虧損。過往收益並不代表未來回報,劇烈的價格波動可能會導致您的虧損。此處提供的資訊不應被視為投資建議,所有交易策略均由您自行決定並自擔全部風險。對於您因操作交易而可能引起的任何損失,唯客不承擔任何責任。參考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

    2天前
    55
  • $SPX 首發獨家交易風暴活動,高達10480 SPX可瓜分!

    📅 活動時間:2024年12月5日15:00 至2024年12月18日15:00(UTC 8) 🚀 上線時間: 上線時間: 12/7 16:00(UTC 8) 交易對: SPX/USDT 🎉活動一:階梯儲值&交易獎勵-瓜分 5,200 SPX 所有在現貨充值和交易SPX 的用戶都有資格在活動期間按等級解鎖獎勵。 獎勵結構: 階梯 淨儲值 累積交易量 獎勵 Tier 1 ≥ 170 SPX ≥ 340 SPX 單人5 SPX Tier 2 ≥ 340 SPX ≥ 860 SPX 單人13 SPX Tier 3 ≥ 860 SPX ≥ 1,720 SPX 單人50 SPX 備註: • 每位使用者只能根據其最高合格階梯獲取一個獎勵等級。 • 獎勵以先到先得的原則分配,直到獎金池用完為止。 🎉活動二:交易比賽——瓜分 4,200 SPX 活動期間現貨買入交易量≥ 170 SPX的用戶,將根據活動期間SPX總交易量及排名瓜分 4,200 SPX獎勵池。 獎勵結構: 排名 獎勵 1 1,000 SPX 2 800 SPX 3 500 SPX 4 – 10 平分1000 SPX(按比例分享) 備註: • 所有其他符合資格的參與者:根據交易量按比例分享 900 SPX 。 • 交易量相同的情況下,先達到的用戶排名較高。 *額外獎勵: 1000 SPX 早鳥獎勵 幸運抽獎 • 每日抽獎:每天交易量≥860 SPX 的用戶將參加每日抽獎,贏取200 SPX。每天5名得獎者。 獎勵說明: 本期活動要求KYC。 活動交易幣對僅限於活動幣對,其他交易對不計入。 獎勵將於活動結束後7日內發放,請留意帳戶額度。 請注意,我們的獎勵以當下的幣值為基準,可能會因市場波動而改變。 如有批量註冊、惡意刷量、作弊、非法、欺詐或其他有害目的相關行為,WEEX將嚴格審核並取消參與資格和獲獎資格; WEEX保留隨時決定修改或更改活動條款和條件的權利,不再另行通知,包括但不限於:取消、延長、終止、或暫停此活動,所有參與者均應受修訂條款的約束; 本活動最終解釋權歸WEEX所有,如有疑問,請聯絡線上客服。 – 感謝您對WEEX 的支持! X | 電報 | Medium | 臉書|領英|部落格 立即註冊WEEX 帳戶: https://www.weex.com/register (收錄平台): CoinMarketCap| 非小號| Cryptowisser.com| 幣虎| Coincarp 祝您在WEEX 上交易愉快!

    2天前
    19
目錄