LP notifies the platform when a trade has been executed.
-
Buy trade: if the trade executed successfully, the exchange confirms it's received the notice. LP will send coins to the wallet address previously provided by /trade-notify response.
-
Sell trade: if the trade executed successfully, the exchange move the frozen crypto assets from the user's wallet to LG's wallet at the exchange. The user will have a fiat balance. LP will send a wire to user's bank account, and withdraw the crypto assets from the exchange once every week.
If failed, unfreeze the crypto assets and return to the user.
交易执行后,LP将交易结果通知交易所。
买币:交易成功,交易所确认收到通知,Legend会往trade-notify返回的钱包地址给用户打币;
卖币:交易成功,将币从用户账号移到Legend的交易所账号下。失败则解锁用户的币。
Response : buy crypto
买币:
{
"message":"success",
"data":{
"message": "Notification received."
}
}Response: sell crypto
卖币:
{
"message":"success",
"data":{
"message": "Notification received and assets transferred."
}
}Error:
错误:
{
"error":"Failed to transfer assets!"
}