AsterAster REST API

Change Margin Type

Change user's margin type of specific symbol market.

POST
/v1/aster/fapi/v1/marginType

Authorization

HmacSha256
AuthorizationBearer <token>

HMAC SHA256 signature authentication for v1 endpoints

In: header

Request Body

application/x-www-form-urlencoded

symbol*stringrequired
marginType*enum<string>required
Available options: ISOLATEDCROSSED
recvWindow?integer
timestamp*integerrequired

Response Body

application/json

curl -X POST "https://api.hypereth.io/v1/aster/fapi/v1/marginType" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'symbol=string&marginType=ISOLATED'
{
  "code": 0,
  "msg": "string"
}