Overview


To start the process to use the widget, please complete this form.

Easytrade widget is very "easy" to use. One step to buy, two steps to sell. You do not have to deposit, withdraw, wrap ethers (eg. WETH) or buy a token to pay fees. Dexdex platform and smart contract will take care of all those steps for you.

Our trading widget can be embedded in any website interested in offering their users the possibility to instantly purchase tokens. Check our our beta version https://easytrade.io

  • Easy to install: only one line of javascript is needed to install and configure the widget.

  • Highly configurable: among other things, it can be configured to trade one token or many, to enable buy, sell or both operations.

  • Wallet to wallet: funds are never hold in the smart contract

  • It works with any wallet, mobile or desktop

Demo video



Installation


To embed the widget into your site, request a WIDGET ID by completing this form and insert the following line in your website:

<script 
  src="https://trade-widget.dexdex.io/widget.js" 
  data-dexdex-id="[WIDGET ID]">
</script>

Widget options

data-operations

To configure the widget to only buy, sell or both operations, set the attribute with the value "buy", "sell" or "both" respectively.

Optional, default is "both"

data-tokens

To limit the widget to trade only one token, set the attribute with the token address. To limit it to a set of tokens, set the attribute with the tokens' addresses separated by comma.

Optional, all tokens by default

target

It is possible to render the widget in a specific element by configuring this attribute with the element id.

Optional

Example 1

Widget that allows users to only buy tokens.

<script 
  src="https://trade-widget.dexdex.io/widget.js" 
  data-dexdex-id="794be1c0-883a-4aa9-abb0-222ee53b9b6a"
  data-operations="buy">
</script>

Example 2

Widget that allows users to buy or sell a specific token.

<script 
  src="https://trade-widget.dexdex.io/widget.js" 
  data-dexdex-id="794be1c0-883a-4aa9-abb0-222ee53b9b6a"
  data-tokens="0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359">
</script>

Example 2

Widget that will render in a specific element and allows to buy or sell two tokens.

<script 
  src="https://trade-widget.dexdex.io/widget.js" 
  data-dexdex-id="794be1c0-883a-4aa9-abb0-222ee53b9b6a"
  data-operations="both"
  data-tokens="0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359,0x7e9e431a0b8c4d532c745b1043c7fa29a48d4fba"
  target="myelement">
</script>
<div id="myelement"></div>


Open Source


The widget's code is fully opensource. You can access the Github repository via this link.