post
https://exchange.com/api/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!"
}