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.
Customizations
The widget is easily customizable according to your needs using the following parameters.
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.
Token Listing
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.
Widget Integration
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.
Initialization
We have several integration options for the widget: using a script(recommended) or an iframe.
Integration via script (recommended)
Copy and paste this code into your web-page's head.