Webhooks

Exchanges or wallets need to implement a few webhook API endpoints for Legend Pay to call when some specific events happen.

For security reasons, you platforms MUST set an IP Address Whitelist, to make sure only LG's servers can access your APIs. LG team will provide our IP address list to you before your service goes live.

You also need to set a token-based API authentication, every API request should be sent with the token (in the header typically).

Read this part to get more details.

https://ex.legendtrading.com/reference/webhooks-en

APIs you need to build

  1. Balance API - /balances

  2. Trade Initiation Notify API - /trade-notify (required)

  3. Trade Execution Notify API - /trade-execute (required)

  4. KYC Status Change API - /kys-status (optional)