Advanced Configurations

Languages - lang

lang (optional)

  • By default en.
  • ISO 639 language codes, en, zh-CN, zh-TW.
<legend-trade lang="zh-CN"></legend-trade>

langs (optional)

  • By default "", displaying all available languages.
  • pass in serialized JSON string.
  • ["en", "zh-TW", "fr", "de"]
<legend-trade langs="[&#34;en&#34;,&#34;zh-TW&#34;,&#34;fr&#34;,&#34;de&#34;]"></legend-trade>

no-langs (optional)

  • By default false, displaying the language menu。
<legend-trade no-langs></legend-trade>

Pre-fill an order - request-for-quotation (optional)

Some exchanges have a prince quote page before users enter our service page.
You may want to pass over the data set by the user to our service, including the trading asset, amount, fiat, payment method, etc., then we'll pre-fill in our UI for the user, which is convenient for the user to proceed.

  • pass in serialized JSON string.
  • required data fields: crypto, amount, fiat and payment.
  • payment can be set as deposit or credit_card.

Example

  • {"crypto":"ETH","amount":"5050","fiat":"EUR","payment":"deposit"}
<legend-trade request-for-quotation="{&#34;crypto&#34;:&#34;ETH&#34;,&#34;amount&#34;:&#34;5050&#34;,&#34;fiat&#34;:&#34;EUR&#34;,&#34;payment&#34;:&#34;deposit&#34;}"></legend-trade>

CustomEvent includes event.data