Onboarding information for Arbitrageurs, Algo, Convergence and Pro-Traders
The EMDX team created this guide to help market makers, liquidity providers, and arbitrageurs get started. Please read the entire document before beginning any integration steps.
To get access to EMDX's API repository and perpetual API, fill out the form with the information requested and the team will contact you with the access. Remember to specify whether you want to interact with mainnet, testnet, or both, as the access tokens differ.
EMDX has three types of endpoints:
- Read only: This type of endpoint enables the trader to obtain information about the pairs, markets, funding, and so on. For example: - All
/marketsendpoints - All
/traderendpoints - All
- Transaction creation: This type of endpoints returns all the data needed to sign and send the transaction. For example: -
- Transaction broadcast: This is the endpoint
/transaction/send. This route broadcasts the signed transaction to the blockchain.
This example is based on the BTC/USDC pair in testnet. In order to get started you need to have a testnet API token and authenticate on the Authorize section in Swagger. The execution endpoints like allowance or open/close position returns all the data needed to sign and broadcast the transaction. You can check an example of signing a transaction here.
EMDX developed a set of scripts to help users on-boarding the API usage. For this tutorial, we will use the JS example, but the same scripts are available in Python: