/trade-execute

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!"
}
Query Params
string
Defaults to d58e3582afa99040e27b92b13c8f2280
string
Defaults to 987ddf77-a9ad-4bd3-a1f5-bc07ea1e7216

uuid format - uuid格式

string
Defaults to succeeded

succeeded or failed

string
Defaults to BTCUSD

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

string
Defaults to buy

buy or sell

string
Defaults to 2
string

Trade executed time - 交易完成时间 格式: “%Y-%m-%dT%H:%M:%S”.

string

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

string

支付方式默认不开启, card 信用卡/借记卡,balance 余额

Headers
string
Defaults to sfdsfd2198333

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