Orders
Order management
Places a new order for the authenticated account.
Security: Requires both XApiKey (header) and Ed25519Sig (query) via the global security requirement. The signature is computed over the request query string (including timestamp and any other parameters you send).
Parameter rules (enforced server-side):
LIMIT: requiresquantity,price, andtimeInForce;stopPricenot allowed.MARKET: requiresquantity;price,timeInForce,stopPricenot allowed.STOP_LOSS: requiresquantityandstopPrice;priceandtimeInForcenot allowed.STOP_LOSS_LIMIT/TAKE_PROFIT_LIMIT: requirequantity,price,stopPrice, andtimeInForce.
Examples (query-string style):
LIMIT BUY:
symbol=PLEX-HBAR&side=BUY&type=LIMIT&timeInForce=GTC&quantity=1.5&price=1800.00×tamp=1724952745123MARKET SELL:
symbol=WBTC-USDC&side=SELL&type=MARKET&quantity=0.05×tamp=1724952745123STOP_LOSS_LIMIT BUY:
symbol=WBTC-USDC&side=BUY&type=STOP_LOSS_LIMIT&timeInForce=GTC&quantity=0.01&price=65000.00&stopPrice=64000.00×tamp=1724952745123
Ed25519 signature of payload
Trading pair symbol
WETH-USDCPattern: ^[A-Z0-9_]+-[A-Z0-9_]+$Order side
Supported order types. LIMIT requires price, quantity, and timeInForce. MARKET requires quantity. STOP_LIMIT requires stopPrice and quantity. *_LIMIT types require price, stopPrice, quantity, and timeInForce.
Applied to LIMIT and *_LIMIT orders.
Order quantity. Required for LIMIT, MARKET, STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT_LIMIT
1.5Price for LIMIT and *_LIMIT orders.
1800Optional client-assigned ID (must be unique per account)
myorder-001Pattern: ^[A-Za-z0-9._-]{1,36}$Trigger price for STOP/TAKE_PROFIT orders
64000Order accepted
Bad Request — invalid combination (e.g., LIMIT without price/timeInForce, or extra params for MARKET)
Unauthorized — missing/invalid API key or signature
Forbidden — credentials valid but not allowed to trade
Request Timeout — upstream or placement timeout
Too Many Requests — rate limit exceeded
Server error
POST /api/v1/order?symbol=text&side=BUY&type=LIMIT HTTP/1.1
Host: aincent.com
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"symbol": "PLEX-HBAR",
"orderId": "123456789012345",
"clientOrderId": "myorder-001",
"transactTime": 1724952746123
}Deletes an existing order for the authenticated account.
Security: Requires both XApiKey (header) and Ed25519Sig (query) via the global security requirement. The signature is computed over the request query string (including timestamp and any other parameters you send).
Ed25519 signature of payload
Trading pair symbol
PLEX-HBARPattern: ^[A-Z0-9_]+-[A-Z0-9_]+$Server-assigned order ID (if combined with origClientOrderId, must refer to same order)
26a911ff-f546-eaaf-4b22-e57657b57571Original client-assigned order ID (optional if orderId is set)
myorder-001Pattern: ^[A-Za-z0-9._-]{1,36}$New client-assigned order ID (optional)
cancelOrder1Pattern: ^[A-Za-z0-9._-]{1,36}$Order canceled
Bad Request — invalid combination (e.g., mismatched orderId and origClientOrderId)
Unauthorized — missing/invalid API key or signature
Forbidden — credentials valid but not allowed to cancel orders
Request Timeout — upstream or placement timeout
Too Many Requests — rate limit exceeded
Server error
DELETE /api/v1/order?symbol=PLEX-HBAR HTTP/1.1
Host: aincent.com
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"symbol": "PLEX-HBAR",
"origClientOrderId": "myorder-001",
"orderId": "26a911ff-f546-eaaf-4b22-e57657b57571",
"clientOrderId": "canceledOrder1",
"transactTime": 1724952746123,
"price": "0.01234567",
"origQty": "100.00000000",
"executedQty": "25.00000000",
"cumulativeQuoteQty": "0.30864175",
"status": "CANCELED",
"timeInForce": "GTC",
"type": "LIMIT",
"side": "BUY",
}
Last updated