AsterAster REST API

New Order

Send in a new order.

POST
/v1/aster/fapi/v1/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: BUYSELL
positionSide?enum<string>default: "BOTH"
Available options: BOTHLONGSHORT
type*enum<string>required
Available options: LIMITMARKETSTOPTAKE_PROFITSTOP_MARKETTAKE_PROFIT_MARKETTRAILING_STOP_MARKET
timeInForce?enum<string>
Available options: GTCIOCFOKGTX
quantity?string
reduceOnly?enum<string>
Available options: truefalse
price?string
newClientOrderId?string
stopPrice?string
closePosition?enum<string>
Available options: truefalse
activationPrice?string
callbackRate?string
workingType?enum<string>
Available options: MARK_PRICECONTRACT_PRICE
priceProtect?enum<string>
Available options: truefalse
newOrderRespType?enum<string>
Available options: ACKRESULT
recvWindow?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
}