Create Order
Place an order against a market ad.
HTTP Request
- POST
/api/v3/fiat/merchant/order/deal
Required Permission: P2P Deal Order
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| advNo | string | yes | Ad ID |
| amount | BigDecimal | no | Purchase amount (for buy orders) |
| tradableQuantity | BigDecimal | no | Purchase quantity (for sell orders) |
| userConfirmPaymentId | long | conditional | User payment account ID. Required when acting as Taker to sell crypto (specifies receiving account). Optional when buying. |
| userConfirmPayMethodId | long | conditional | Payment method type ID. Required when acting as Taker to buy crypto (selects counterparty's payment method). Not needed when selling. |
Response Parameters
| Name | Type | Description |
|---|---|---|
| data | string | Order number (advOrderNo) |
Response
{
"code": 0,
"msg": "success",
"data": "d1375750128856004608"
}