Widget
Empower Your Users to Buy & Sell Crypto Directly From Your Platform
Last updated
Empower Your Users to Buy & Sell Crypto Directly From Your Platform
Last updated
Orion Widget is an application that can be added to any web page or dApp that allows people to place swaps using Orion's CEX and DEX liquidity by simply connecting their own wallet. Rather than having projects build out trading features or use up resources with SDKs, Orion Widget is the quickest and easiest way to provide token accessibility to any ecosystem. It is a simple UI integration allowing developers and platform hosts to implement the widget with hardly any coding needed.
The widget is easily customizable according to your needs using the following parameters.
If your project token isn’t one of the hundreds listed on Orion, we may use your token liquidity from any one of our 11 liquidity sources to be sure your token is supported.
Fill out the application found at orion.xyz to receive a Partner ID by email along with the instructions below. Be sure to store the email and your number for your records. Here are the simple steps to add the Orion widget to your platform.
We have several integration options for the widget: using a script (recommended) or an iframe.
Copy and paste this code into your web-page's head.
Use your Partner ID and paste this code to your web-page where you'd like the widget to be placed.
The full widget parameters object and widget customizations.
Example #1: single widget instance integrated using the script method on a page
Example #2: multiple widget instances integrated using the script method on a page
Use your Partner ID and insert an iframe in any section of your app.
You can easily customize the widget according to your needs using the following options:
The value of the src
attribute of an iframe can look like this:
Example: a single widget instance integrated using the iframe method on a page
Parameter | Description |
---|---|
defaultTheme
Allows to specify the default color style of the widget. Light and dark themes available. For example, defaultTheme=dark
.
assetFrom
Allows to specify an asset that will be available for sale by default. For example, assetFrom=ORN
.
assetTo
Allows to specify an asset that will be available for purchase by default. For example, assetTo=USDT
.
allowedAssets
Allows to specify a list of assets available for selection. For example, allowedAssets=USDT,BNB,ORN,ETH
.
amount
Allows to specify the amount of the asset available for sale by default. For example, amount=10
.
feeAsset
Allows to specify the default fee asset. Available assets for commission: ORN, BNB, USDT. For example, feeAsset=ORN
.