Account

GET /personal

Retrieve balances and other account information. Requires a valid API key sent with the x-api-key header.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • code integer

      Response code

    • msg string

      Diagnostic message

    • result object

      Request result

      Hide result attributes Show result attributes object
      • email string

        Account email

      • verification_level string

        Account verification level

      • withdrawal_allowance number

        Account 24H withdraw limit

      • deposit_addresses array[object]

        Active deposit addresses

        Deposit address information

        Hide deposit_addresses attributes Show deposit_addresses attributes object
        • address string

          Deposit address

        • assets array[string]

          Assets supported for the address

      • actions object

        Timestamps for recent account actions

        Hide actions attributes Show actions attributes object
        • latest_deposit number

          Timestamp for most recent deposit

        • latest_withdrawal number

          Timestamp for most recent withdrawal

        • latest_trade number

          Timestamp for most recent trade

        • latest_cancellation number

          Timestamp for most recent order cancellation

        • creation_time number

          Timestamp for account creation

      • permissions object

        Account permissions

        Hide permissions attributes Show permissions attributes object
        • trading_enabled boolean
        • deposit_enabled boolean
        • withdraw_enabled boolean
        • login_enabled boolean
        • api_enabled boolean
      • balances object

        Account balances

        Hide balances attribute Show balances attribute object
        • ETH object

          ETH balance

          Hide ETH attributes Show ETH attributes object
          • free number

            Available ETH balance

          • locked number

            ETH balance in use for open orders

          • withdrawn number

            ETH balance in use for pending withdrawals

          • pnl number

            ETH P&L. This number is updated every time you close an ETH-related position.

          • margin number

            ETH position margin.

          • fees number

            Fees paid since account creation.

  • 503 application/json

    Error

    Hide response attributes Show response attributes object
    • code integer
    • msg string
    • result object
GET /personal
curl \
 --request GET 'https://api.testnet.everstrike.io/personal' \
 --header "x-api-key: $API_KEY"
Response examples (200)
{
  "code": 200,
  "msg": "null",
  "result": {
    "email": "johndoe@gmail.com",
    "actions": {
      "latest_order": 1551128358789,
      "latest_trade": 1551128359583,
      "creation_time": 1550996999633,
      "latest_deposit": 1551120600024,
      "latest_withdrawal": 1551127794037,
      "latest_cancellation": 1550996999633
    },
    "balances": {
      "BTC": {
        "pnl": 0,
        "fees": 0,
        "free": 0,
        "locked": 0,
        "margin": 0,
        "withdrawn": 0
      },
      "ETH": {
        "pnl": 0,
        "fees": 0,
        "free": 0.05007,
        "locked": 0.02225,
        "margin": 0.01,
        "withdrawn": 0
      }
    },
    "permissions": {
      "api_enabled": true,
      "login_enabled": true,
      "deposit_enabled": true,
      "trading_enabled": true,
      "withdraw_enabled": true
    },
    "deposit_addresses": [
      {
        "assets": [
          "ETH",
          "DAI",
          "MKR",
          "ONT",
          "MAN",
          "USDT"
        ],
        "address": 826725522658159800000000000000000000000000000000
      },
      {
        "assets": [
          "BTC"
        ],
        "address": "n4JEw3aZXVFuiT48eDcG9MnGALjLRiAKe8"
      }
    ],
    "trading_allowance": 249996.9004300637,
    "verification_level": "UNVERIFIED",
    "withdrawal_allowance": 249998.6069348601
  }
}
Response examples (503)
{
  "code": 503,
  "msg": "Invalid request",
  "result": {}
}