Error
A valid request URL is required to generate request examples{
"order": {
"orderId": "<order-id>",
"clientOrderId": "q-20270115-000123",
"instrumentId": "<instrument-id>",
"side": "BUY",
"type": "LIMIT",
"price": {
"units": "105",
"decimals": 0
},
"quantity": {
"units": "2",
"decimals": 0
},
"requestedQuantity": {
"units": "2",
"decimals": 0
},
"acceptedQuantity": {
"units": "2",
"decimals": 0
},
"filledQuantity": {
"units": "1",
"decimals": 0
},
"remainingQuantity": {
"units": "1",
"decimals": 0
},
"cancelledQuantity": {
"units": "0",
"decimals": 0
},
"reductionReason": null,
"status": "PARTIALLY_FILLED",
"cancelReason": null,
"createdAtMs": "1800000000500",
"updatedAtMs": "1800000004000",
"filledAtMs": null,
"cancelledAtMs": null
},
"duplicate": true,
"serverTimeMs": "1800000000510"
}{
"order": {
"orderId": "<order-id>",
"clientOrderId": "q-20270115-000123",
"instrumentId": "<instrument-id>",
"side": "BUY",
"type": "LIMIT",
"price": {
"units": "105",
"decimals": 0
},
"quantity": {
"units": "2",
"decimals": 0
},
"requestedQuantity": {
"units": "2",
"decimals": 0
},
"acceptedQuantity": {
"units": "2",
"decimals": 0
},
"filledQuantity": {
"units": "1",
"decimals": 0
},
"remainingQuantity": {
"units": "1",
"decimals": 0
},
"cancelledQuantity": {
"units": "0",
"decimals": 0
},
"reductionReason": null,
"status": "PARTIALLY_FILLED",
"cancelReason": null,
"createdAtMs": "1800000000500",
"updatedAtMs": "1800000004000",
"filledAtMs": null,
"cancelledAtMs": null
},
"duplicate": false,
"serverTimeMs": "1800000000510"
}{
"error": "INVALID_PRICE",
"message": "…"
}{
"error": "INVALID_API_KEY",
"message": "…"
}{
"error": "TRADING_DISABLED",
"message": "…"
}{
"error": "UNKNOWN_INSTRUMENT",
"message": "…"
}{
"error": "IDEMPOTENCY_CONFLICT",
"message": "…"
}{
"error": "RISK_LIMIT",
"message": "…",
"limit": "MAX_OPEN_EXPOSURE"
}{
"error": "RATE_LIMITED",
"message": "Too many requests. Retry after the indicated delay."
}{
"error": "INTERNAL",
"message": "…"
}Trading
Place order
Place a good-till-cancelled limit order. Requires mm:trade and trading to be available for your account. The full quantity is accepted or the order is refused; D1 never resizes an order. A refused order creates nothing. Fills from the placement are on /executions when the response arrives.
If the result is unknown (timeout, network error, 5xx), resend the identical request with the same clientOrderId. Never re-send the same intent under a new clientOrderId.
Guide: Orders, Trading Rules.
Error
A valid request URL is required to generate request examples{
"order": {
"orderId": "<order-id>",
"clientOrderId": "q-20270115-000123",
"instrumentId": "<instrument-id>",
"side": "BUY",
"type": "LIMIT",
"price": {
"units": "105",
"decimals": 0
},
"quantity": {
"units": "2",
"decimals": 0
},
"requestedQuantity": {
"units": "2",
"decimals": 0
},
"acceptedQuantity": {
"units": "2",
"decimals": 0
},
"filledQuantity": {
"units": "1",
"decimals": 0
},
"remainingQuantity": {
"units": "1",
"decimals": 0
},
"cancelledQuantity": {
"units": "0",
"decimals": 0
},
"reductionReason": null,
"status": "PARTIALLY_FILLED",
"cancelReason": null,
"createdAtMs": "1800000000500",
"updatedAtMs": "1800000004000",
"filledAtMs": null,
"cancelledAtMs": null
},
"duplicate": true,
"serverTimeMs": "1800000000510"
}{
"order": {
"orderId": "<order-id>",
"clientOrderId": "q-20270115-000123",
"instrumentId": "<instrument-id>",
"side": "BUY",
"type": "LIMIT",
"price": {
"units": "105",
"decimals": 0
},
"quantity": {
"units": "2",
"decimals": 0
},
"requestedQuantity": {
"units": "2",
"decimals": 0
},
"acceptedQuantity": {
"units": "2",
"decimals": 0
},
"filledQuantity": {
"units": "1",
"decimals": 0
},
"remainingQuantity": {
"units": "1",
"decimals": 0
},
"cancelledQuantity": {
"units": "0",
"decimals": 0
},
"reductionReason": null,
"status": "PARTIALLY_FILLED",
"cancelReason": null,
"createdAtMs": "1800000000500",
"updatedAtMs": "1800000004000",
"filledAtMs": null,
"cancelledAtMs": null
},
"duplicate": false,
"serverTimeMs": "1800000000510"
}{
"error": "INVALID_PRICE",
"message": "…"
}{
"error": "INVALID_API_KEY",
"message": "…"
}{
"error": "TRADING_DISABLED",
"message": "…"
}{
"error": "UNKNOWN_INSTRUMENT",
"message": "…"
}{
"error": "IDEMPOTENCY_CONFLICT",
"message": "…"
}{
"error": "RISK_LIMIT",
"message": "…",
"limit": "MAX_OPEN_EXPOSURE"
}{
"error": "RATE_LIMITED",
"message": "Too many requests. Retry after the indicated delay."
}{
"error": "INTERNAL",
"message": "…"
}Authorizations
Body
application/json
Response
Duplicate: this clientOrderId already has an order with the same terms. Nothing new was created.