Create investment order
pionex_earn_dual_investCreates a Dual Investment order on Pionex using a product ID, base currency, and one amount field; fetch current profit first because stale values are rejected.
Instructions
Create investment order
Creates a new Dual Investment order. Requires Earn permission. Weight: 1.
Provide either baseAmount (invest in base currency) or currencyAmount (invest in investment currency), not both.
Workflow: Call
GET /api/v1/earn/dual/pricesfirst to obtain the currentprofitvalue, then pass it unchanged to this endpoint. Theprofitfield must match the live price — a stale or mismatched value will be rejected.
Example request body:
{
"base": "BTC",
"productId": "BTC-USDXO-260402-68000-P-USDT",
"clientDualId": "my-order-001",
"currencyAmount": "100",
"profit": "0.0039"
}Example response:
{
"result": true,
"data": {
"clientDualId": "my-order-001",
"state": "CONFIRMED"
},
"timestamp": 1775027817297
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base currency | |
| profit | No | Expected yield rate. Must match the current price from `/prices`. | |
| productId | No | Product ID to invest in | |
| baseAmount | No | Investment amount in base currency (e.g. BTC). Mutually exclusive with `currencyAmount`. | |
| clientDualId | No | Client-assigned order ID used as an idempotency key. Recommended to avoid duplicate orders. | |
| currencyAmount | No | Investment amount in investment currency (e.g. USDT). Mutually exclusive with `baseAmount`. |