Overview
Direct Deposit enables your platform to offer a "Fiat Account" to your customers where they can easily deposit fiat money and buy crypto assets. This is an "Advanced" integration, because you will need to design/build the KYC and trade UI by yourself.
Legend Gateway provides all the needed REST APIs to support every step in the user flow.


Requirements
For security and compliance reasons
- You must provide a unique
user_idto identify each user from your platform. - You must provide
user-ip(IP address) in the header of all API calls.
This user_id can be encrypted by your own encryption algorithm, and ideally not longer than 20 characters.
For example:
encrypted_user_id = sha1(user_id+salt)
为了保证安全合规,请注意以下要求:
-
所有 API 的header 中都需要传入user-ip字段,值取自实际用户的实际ip。
目的是用来检查用户的ip是否是高风险国家的ip,如果是高风险国家或地区的ip则不允许进行交易和访问某些服务。
注意:是实际使用用户ip,非交易所服务器ip。 -
用户uid
通过特定算法将交易所用户表的User ID(主键) 加密后,提供给Legend,作为在OTC平台的唯一用户标识。必须是每个用户唯一、不重复。该ID长度最好不超过20字符。
交易所可以自行决定使用不可逆加密算法。
例如
encrypted_user_id = sha1(user_id+salt)
注意: SaaS中的APP_UID是这个uid再次使用Legend加密后得到的字符串。
