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.
Endpoints
https://apstage.proxy.kiiex.io/aphttps://alphaprod.proxy.kiiex.io/apSwap Workflow example
Prerequisites
Step-by-step
API endpoints
Authenticate your User via API
Create Deposit
Body
assetManagerIdintegerOptional
accountIdintegerOptional
assetIdintegerOptional
assetNamestring · nullableOptional
amountnumberOptional
omsIdintegerOptional
requestCodestring · nullableOptional
requestIPstring · nullableOptional
requestUserintegerOptional
requestUserNamestring · nullableOptional
operatorIdintegerOptional
StatusintegerOptional
feeAmtnumberOptional
updatedByUserintegerOptional
updatedByUserNamestring · nullableOptional
ticketNumberintegerOptional
depositInfostring · nullableOptional
createdTimestampstring · date-timeOptional
lastUpdateTimestampstring · date-timeOptional
commentsstring · nullableOptional
attachmentsstring · nullableOptional
Responses
200
Deposit ticket creation result
application/json
post
/CreateDepositTicket200
Deposit ticket creation result
Get Account Balances
Get Current Rate
Create a SWAP
Body
InstrumentIdintegerOptional
OMSIdintegerOptional
AccountIdintegerOptional
TimeInForceintegerOptional
ClientOrderIdintegerOptional
OrderIdOCOintegerOptional
UseDisplayQuantitybooleanOptional
SideintegerOptional
quantitynumberOptional
OrderTypeintegerOptional
PegPriceTypeintegerOptional
LimitPricenumberOptional
PostOnlybooleanOptional
Responses
200
Order status
application/json
post
/SendOrder200
Order status
Get SWAP status
Body
omsIdintegerOptional
accountIdintegerOptional
instrumentIdintegerOptional
tradeIdintegerOptional
orderIdintegerOptional
userIdintegerOptional
startTimestampintegerOptional
endTimestampintegerOptional
depthintegerOptional
startIndexintegerOptional
executionIdintegerOptional
Responses
200
List of executed trades
application/json
post
/GetTradesHistory200
List of executed trades
Create a Withdrawal
Body
OMSIdintegerOptional
AccountIdintegerOptional
ProductIdintegerOptional
AmountnumberOptional
feeAmountnumberOptional
TemplateFormobjectOptional
TemplateTypestringOptional
Responses
200
Withdrawal request result
application/json
post
/CreateWithdrawTicket200
Withdrawal request result
Check Withdrawal status
Last updated