AsterAster REST API

Account Information V4

Get current account information (v4)

GET
/v1/aster/fapi/v4/account

Authorization

Web3Auth
Authorization<token>

Web3 authentication using user, signer, nonce, and signature parameters

In: header

Query Parameters

recvWindow?integer
timestamp*integerrequired
nonce*stringrequired

Microsecond timestamp

user*stringrequired

Ethereum address

signer*stringrequired

Signer Ethereum address

signature*stringrequired

Ethereum signature

Response Body

application/json

curl -X GET "https://api.hypereth.io/v1/aster/fapi/v4/account?timestamp=0&nonce=string&user=string&signer=string&signature=string"
{
  "feeTier": 0,
  "canTrade": true,
  "canDeposit": true,
  "canWithdraw": true,
  "updateTime": 0,
  "totalInitialMargin": "string",
  "totalMaintMargin": "string",
  "totalWalletBalance": "string",
  "totalUnrealizedProfit": "string",
  "totalMarginBalance": "string",
  "totalPositionInitialMargin": "string",
  "totalOpenOrderInitialMargin": "string",
  "totalCrossWalletBalance": "string",
  "totalCrossUnPnl": "string",
  "availableBalance": "string",
  "maxWithdrawAmount": "string",
  "assets": [
    {
      "accountAlias": "string",
      "asset": "string",
      "balance": "string",
      "crossWalletBalance": "string",
      "crossUnPnl": "string",
      "availableBalance": "string",
      "maxWithdrawAmount": "string",
      "marginAvailable": true,
      "updateTime": 0
    }
  ],
  "positions": [
    {
      "entryPrice": "string",
      "marginType": "string",
      "isAutoAddMargin": "string",
      "isolatedMargin": "string",
      "leverage": "string",
      "liquidationPrice": "string",
      "markPrice": "string",
      "maxNotionalValue": "string",
      "positionAmt": "string",
      "symbol": "string",
      "unRealizedProfit": "string",
      "positionSide": "string",
      "updateTime": 0
    }
  ]
}