Stablecoin FX Quick Start
This guide explains how to swap any stablecoin using our Kii API. It covers retrieving balances, checking the current exchange rate, sending the order and verifying execution.
Requirements to be able to trade stablecoins on Kii, via dashboard or API:
Have a user
Have an account level 1 at least (to upgrade from level 0 to level 1, you need to complete our KYC verification inside your user settings)
Have balances on any stablecoin
Endpoints
Staging URL :
https://apstage.proxy.kiiex.io/apProd URL :
https://alphaprod.proxy.kiiex.io/apSwap Workflow example
For this example will assume a goal and specify what to do in order, also we'll provide you with all the endpoints related to each step. The goal is:
Swap USDT → COPM using a market order.
Prerequisites
These are the prerequisites for the step-by-step guide.
Create your Kii account:
Go to https://kiiex.io/ and click on login, and create your user
You can also follow our guide on Set up your Kii Account
Update your account from level 0 to level 1 by following our KYC flow to be able to swap
Create your trader API Key on our panel to follow the next steps
Step-by-step
These are the steps to fully create a swap and withdraw it:
Authenticate your user via api
Create a USDT deposit. If you have already created a deposit, check your current balance
Get the current COPM/USDT rate
Create market order (buy COPM)
Verify order was filled
Get trade details (swap info)
Confirm the new COPM balance using the get account positions endpoint
Create a COPM withdrawal, it could be to another wallet or to your bank account
Check your COPM withdrawal status
How do I perform the swap workflow using the API?
API endpoints
Authenticate your User via API
Create Deposit
Deposit ticket creation result
Deposit ticket creation result
Get Account Balances
Get Current Rate
Create a SWAP
Order status
Order status
Get SWAP status
List of executed trades
List of executed trades
Create a Withdrawal
Withdrawal request result
Withdrawal request result
Check Withdrawal status
Last updated