Skip to main content

5. Create order

Create order

This interface is used to create an order. You can create an order with up to 5 receiving addresses.

POST
/openapi/order/place
Request
NameTypeRequiredDescription
exchange_modestringyesExchange mode [ float | fixed ]
from_abbrstringyesCoin name
from_chainstringyesChain name
from_quantityfloatyesQuantity (minimum: 1e-8)
to_addressarrayyesReceiving Address list
to_abbrstringyesReceive coin name
to_addressstringyesReceiving Address
to_chainstringyesReceiving chain name
to_group_ratiofloatyesReceiving group ratio( value>0 or value<= 1 )
to_ratiofloatyesReceiving ratio ( value>0 or value<= 1 )

Request

{
"exchange_mode": "float",
"from_abbr": "ARB",
"from_chain": "Arbitrum",
"from_quantity": 100,
"to_address": [
{
"to_abbr": "ETH",
"to_address": "************",
"to_chain": "Arbitrum",
"to_group_ratio": 1,
"to_ratio": 1
}
]
}
Response
NameTypeDescription
codeintBusiness status code
dataobjectData Objects
addressstringWallet Address
order_nostringOrder number
query_codestringQuery code
msgstringBusiness message

Example Response

{
"code": 0,
"msg": "success",
"data": {
"order_no": "XUcQdnSg",
"address": "TXf94kgP9HuVHr1bRLmHaL1hVPbUYipDGh",
"query_code": "3XXNCL8PXZX6"
}
}