For the complete documentation index, see llms.txt. This page is also available as Markdown.

πŸ–₯️Widget

How to use our exchange widget with your project

Using our widget is the easiest way to integrate our service. It can be integrated with just a few lines of codes, and remains highly customizable with our available Parameters and customization.

Here are the three differents ways to integrate our widget:

iFrame

To integrate our exchange service as an iFrame, add the following code in the HTML part of the target web page:

<iframe allow="usb; ethereum; clipboard-write; payment; microphone; camera" src="https://widget.mtpelerin.com/?_ctkn=YOURINTEGRATIONKEY" title="Mt Pelerin crypto exchange widget"></iframe>

To customize the content of the interface, please refer to the list of available parameters in Parameters and customization.

To integrate our exchange service as a popup / modal window on your website, first add the following code in the HTML part of the target web page:

<script src="https://widget.mtpelerin.com/mtp-widget.js"></script>

Then call the following JavaScript function to open the modal:

showMtpModal(
    { 
        _ctkn: 'YOURINTEGRATIONKEY',
        type: 'popup',
        ... and other parameters
    }
);

To customize the content of the interface, please refer to the list of available parameters in Parameters and customization.

The easiest and fastest way to let your users buy our service is to redirect them to our widget, which doesn't require an integration key (it's self-serve).

Direct links can still be used with all the parameters documented in Parameters and customization and with our Revenue sharing program.

Direct link to "Buy" tab: https://widget.mtpelerin.com/?_ctkn=954139b2-ef3e-4914-82ea-33192d3f43d3&type=direct-link&tabs=buy,sell,swap&tab=buy

Direct link to "Sell" tab: https://widget.mtpelerin.com/?_ctkn=954139b2-ef3e-4914-82ea-33192d3f43d3&type=direct-link&tabs=buy,sell,swap&tab=sell

Direct link to "Swap" tab: https://widget.mtpelerin.com/?_ctkn=954139b2-ef3e-4914-82ea-33192d3f43d3&type=direct-link&tabs=buy,sell,swap&tab=swap

You can add parameters to the URLs above to customize what is displayed of the widget, please refer to the list of available parameters in Parameters and customization.

Last updated