AsterAster REST API
New Order
Send in a new order.
Authorization
HmacSha256 AuthorizationBearer <token>
HMAC SHA256 signature authentication for v1 endpoints
In: header
Request Body
application/x-www-form-urlencoded
symbol*stringrequired
side*enum<string>required
Available options:
BUYSELLpositionSide?enum<string>default: "BOTH"
Available options:
BOTHLONGSHORTtype*enum<string>required
Available options:
LIMITMARKETSTOPTAKE_PROFITSTOP_MARKETTAKE_PROFIT_MARKETTRAILING_STOP_MARKETtimeInForce?enum<string>
Available options:
GTCIOCFOKGTXquantity?string
reduceOnly?enum<string>
Available options:
truefalseprice?string
newClientOrderId?string
stopPrice?string
closePosition?enum<string>
Available options:
truefalseactivationPrice?string
callbackRate?string
workingType?enum<string>
Available options:
MARK_PRICECONTRACT_PRICEpriceProtect?enum<string>
Available options:
truefalsenewOrderRespType?enum<string>
Available options:
ACKRESULTrecvWindow?integer
timestamp*integerrequired
Response Body
application/json
curl -X POST "https://api.hypereth.io/v1/aster/fapi/v1/order" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'symbol=string&side=BUY&type=LIMIT'{
"clientOrderId": "string",
"cumQty": "string",
"cumQuote": "string",
"executedQty": "string",
"orderId": 0,
"avgPrice": "string",
"origQty": "string",
"price": "string",
"reduceOnly": true,
"side": "string",
"positionSide": "string",
"status": "string",
"stopPrice": "string",
"closePosition": true,
"symbol": "string",
"timeInForce": "string",
"type": "string",
"origType": "string",
"activatePrice": "string",
"priceRate": "string",
"updateTime": 0,
"workingType": "string",
"priceProtect": true
}