/trade-notify

LP notifies the partner platform when a trade has been initiated. If it was a buy trade, the platform should return a wallet address of the asset. For example, if the user purchased 1 BTC, you return a BTC wallet address. If it was a sell trade, the exchange freezes the asset and wait for the trade execution result.交易发生时,LP通知交易所。如果用户买币,交易所需要返回用户拥有的该币种的钱包地址。例如用户买入1 BTC,交易所返回该用户的BTC钱包地址;如果用户卖币,交易所冻结用户的币,并等待交易结果,以决定下一步操作。

Response : Buy crypto, return the wallet address to receive crypto from Legend
买币: (返回充币地址)

{
	"message":"success",
	"data": {
		"message": "Notification received.",
		"uid": "d58e3582afa99040e27b92b13c8f2280",
		"asset": "BTC",
		"deposit_address": "1CK6KHY6MHgYvmRQ4PAafKYDrg1ejbH1cE" 
	}
}

Response: Sell crypto
卖币:

{
  "message":"success",
    "data":{
      "message": "Notification received and assets locked."
    }
}

Error: (if failed to freeze user assets)
错误返回:

{
     “error”:"Failed to lock assets!"
}
Query Params
string
Defaults to d58e3582afa99040e27b92b13c8f2280
string
Defaults to 987ddf77-a9ad-4bd3-a1f5-bc07ea1e7216

uuid format - uuid格式

string
Defaults to started

This has to be 'started' - 交易状态只能是 启动 “started”

string
Defaults to BTCUSD

Trading pair - 交易对 如 BTCUSD, ETHEUR, LTCSGD

string
Defaults to sell

buy or sell

string
Defaults to 1

quantity of the crypto asset - 数字货币数量 如pair为BTCUSD,这里的值是1,代表 1 BTC

string
Defaults to 6000

price - 成交价格

string
Defaults to 2020-03-16T11:27:13.675962Z

trade time - 交易发起时间 格式: “%Y-%m-%dT%H:%M:%S”.

string
Defaults to 50

Trade value in fiat - 法币的金额 如pair为BTCUSD,这里的值是50,代表 $50

string

原样返回之前存的reference数据。

string

取值:null或者auto_trade, null或者无该参数表示普通交易,auto_trade表示字段转换交易。

Headers
string
Defaults to sdfdsf2233

API key assigned by the exchange - 交易所分配的API Key

Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json