Coinlocally Docs
API Document
API Document
  • Introduction
    • API Basic Information
    • HTTP Error Codes
    • General Information
    • Limits
    • Endpoint Security Type
    • Signature Authentication
    • Timing Security
    • SIGNED Endpoint Example
  • Changelog
  • Spot
    • Public
    • Market
    • Trade
    • Account
  • Futures
    • Public
    • Market
    • Trade
    • Account
  • Margin
  • Withdraw
  • WebSocket
    • Spot
    • Futures
  • Official SDK
  • Enums
  • Error
  • FAQ
Powered by GitBook
On this page
  1. Futures

Account

PreviousTradeNextMargin

Last updated 17 days ago

Get Futures Account Information

get

Retrieve detailed futures account balance and position information.

Security Type: USER_DATAWeight: 1 (IP/UID)

Header parameters
X-CH-SIGNstringRequired

Signature

X-CH-APIKEYstringRequired

Your API-key

X-CH-TSintegerRequired

Timestamp

Responses
200
Successfully retrieved account information.
application/json
get
GET /fapi/v1/account HTTP/1.1
Host: futuresopenapi.coinlocally.com
X-CH-SIGN: text
X-CH-APIKEY: text
X-CH-TS: 1
Accept: */*
200

Successfully retrieved account information.

{
  "account": [
    {
      "marginCoin": "USDT",
      "accountNormal": 999.5606,
      "accountLock": 23799.5017,
      "partPositionNormal": 9110.7294,
      "totalPositionNormal": 0,
      "achievedAmount": 4156.5072,
      "unrealizedAmount": 650.6385,
      "totalMarginRate": 0,
      "totalEquity": 99964804.56,
      "partEquity": 13917.8753,
      "totalCost": 0,
      "sumMarginRate": 873.4608,
      "positionVos": [
        {
          "contractId": 1,
          "contractName": "E-BTC-USDT",
          "contractSymbol": "BTC-USDT",
          "positions": [
            {
              "id": 13603,
              "uid": 10023,
              "contractId": 1,
              "positionType": 2,
              "side": "BUY",
              "volume": 69642,
              "openPrice": 11840.2394,
              "avgPrice": 11840.3095,
              "closePrice": 12155.3005,
              "leverageLevel": 24,
              "holdAmount": 7014.2111,
              "closeVolume": 40502,
              "pendingCloseVolume": 0,
              "realizedAmount": 8115.9125,
              "historyRealizedAmount": 1865.3985,
              "tradeFee": -432.0072,
              "capitalFee": 2891.2281,
              "closeProfit": 8117.6903,
              "shareAmount": 0.1112,
              "freezeLock": 0,
              "status": 1,
              "ctime": "2020-12-11T17:42:10",
              "mtime": "2020-12-18T20:35:43",
              "brokerId": 21,
              "marginRate": 0.2097,
              "reducePrice": 9740.8083,
              "returnRate": 0.3086,
              "unRealizedAmount": 2164.5289,
              "openRealizedAmount": 2165.0173,
              "positionBalance": 82458.2839,
              "settleProfit": 0.4883,
              "indexPrice": 12151.1175,
              "keepRate": 0.005,
              "maxFeeRate": 0.0025
            }
          ]
        }
      ]
    }
  ]
}