Account Information

This information is only to show in the user account in our Bartertrade exchange only.

Account Information [User Data]

URL: https://exchange.bartertrade.io/api/v1/getfrozenbalance

Method: POST

Attributes:

api_key – (string) – Key to access the user’s data

Header :

  • API-keys are passed into the Rest API via the 'Authorization' header.

  • API-keys and secret-keys are case sensitive.

  • SIGNED secret key, iat and exp with JWT signature.

How to create token?

Example :

let payload =

{ iat: seconds, (UNIX time 10 digit) exp: seconds_exp, (UNIX time 10 digit) secretkey: secretkey };

let token = jwt.sign( payload, secretkey );

headers: { 'Authorization': token, 'Content-Type': 'application/json', },

Body:

{ 
  "api_key":"your api key"
}

Response:

{
  "status": true,
  "list": [
    {
      "coin": "BART",
      "balance": "1000.00000000000000000000",
      "inorder": "0.00000000000000000000",
      "available": "1000.00000000000000000000"
    },
    {
      "coin": "USDT",
      "balance": "1000.00000000000000000000",
      "inorder": "0.00000000000000000000",
      "available": "1000.00000000000000000000"
    }
  ],
  "marketprices": [
    {
      "btc_price": 0.0001927,
      "usd_price": 3.693,
      "updated_date": "2020-12-06T08:30:00.874Z",
      "_id": "5c0784ec1db0d029101c2348",
      "coin": "OMG",
      "__v": 0
    },
    {
      "btc_price": 0.00001801,
      "usd_price": 0.3449,
      "updated_date": "2020-12-06T08:30:00.874Z",
      "_id": "5c0784ec1db0d029101c2349",
      "coin": "WAN",
      "__v": 0
    },
    {
      "btc_price": 0.0009341,
      "usd_price": 17.91,
      "updated_date": "2020-12-06T08:30:00.874Z",
      "_id": "5c0784ec1db0d029101c234a",
      "coin": "NEO",
      "__v": 0
    },
    {
      "btc_price": 0.0001555,
      "usd_price": 2.98,
      "updated_date": "2020-12-06T08:30:00.872Z",
      "_id": "5c0784ec1db0d029101c234b",
      "coin": "EOS",
      "__v": 0
    },
    {
      "btc_price": 0.00000338,
      "usd_price": 0.06469,
      "updated_date": "2020-12-06T08:30:00.875Z",
      "_id": "5c0784ec1db0d029101c234c",
      "coin": "EVE",
      "__v": 0
    },
    {
      "btc_price": 0.00000104,
      "usd_price": 0.0006002,
      "updated_date": "2020-12-06T08:30:00.875Z",
      "_id": "5c0784ec1db0d029101c234d",
      "coin": "TFD",
      "__v": 0
    },
    {
      "btc_price": "0.0000030",
      "usd_price": "0.032",
      "updated_date": "2019-01-21T12:15:04.777Z",
      "_id": "5c0784ec1db0d029101c234e",
      "coin": "BART",
      "__v": 0
    },
    {
      "btc_price": 0.00000268,
      "usd_price": 0.05132,
      "updated_date": "2020-12-06T08:30:00.874Z",
      "_id": "5c0784ec1db0d029101c234f",
      "coin": "DRGN",
      "__v": 0
    },
    {
      "btc_price": 3e-8,
      "usd_price": 0.0001104,
      "updated_date": "2019-01-24T09:00:04.451Z",
      "_id": "5c0784ec1db0d029101c2350",
      "coin": "CNN",
      "__v": 0
    },
    {
      "btc_price": 0.00000124,
      "usd_price": 0.004408,
      "updated_date": "2019-01-24T09:00:04.451Z",
      "_id": "5c0784ec1db0d029101c2351",
      "coin": "LND",
      "__v": 0
    },
    {
      "btc_price": 0.00000123,
      "usd_price": 0.00438,
      "updated_date": "2019-01-24T09:00:04.451Z",
      "_id": "5c0784ec1db0d029101c2352",
      "coin": "PAL",
      "__v": 0
    },
    {
      "btc_price": 0.00000114,
      "usd_price": 0.004071,
      "updated_date": "2019-01-24T09:00:04.452Z",
      "_id": "5c0784ec1db0d029101c2353",
      "coin": "ZCO",
      "__v": 0
    },
    {
      "btc_price": 0.00000367,
      "usd_price": 0.07027,
      "updated_date": "2020-12-06T08:30:00.875Z",
      "_id": "5c0784ec1db0d029101c2354",
      "coin": "EFX",
      "__v": 0
    },
    {
      "btc_price": 0.00000156,
      "usd_price": 0.02986,
      "updated_date": "2020-12-06T08:30:00.875Z",
      "_id": "5c0784ec1db0d029101c2355",
      "coin": "MSP",
      "__v": 0
    },
    {
      "btc_price": 1,
      "usd_price": 19148.49,
      "updated_date": "2020-12-06T08:30:00.875Z",
      "_id": "5c0784ec1db0d029101c2356",
      "coin": "BTC",
      "__v": 0
    },
    {
      "btc_price": 0.03119,
      "usd_price": 597.29,
      "updated_date": "2020-12-06T08:30:00.875Z",
      "_id": "5c0784ec1db0d029101c2357",
      "coin": "ETH",
      "__v": 0
    },
    {
      "btc_price": 0.00003181,
      "usd_price": 0.6097,
      "updated_date": "2020-12-06T08:30:00.875Z",
      "_id": "5c0784ec1db0d029101c2358",
      "coin": "XRP",
      "__v": 0
    },
    {
      "btc_price": 0.00435,
      "usd_price": 83.3,
      "updated_date": "2020-12-06T08:30:00.875Z",
      "_id": "5c0784ec1db0d029101c2359",
      "coin": "LTC",
      "__v": 0
    },
    {
      "btc_price": 0.01488,
      "usd_price": 284.99,
      "updated_date": "2020-12-06T08:30:00.876Z",
      "_id": "5c0784ec1db0d029101c235a",
      "coin": "BCH",
      "__v": 0
    },
    {
      "btc_price": 0.00005214,
      "usd_price": 1,
      "updated_date": "2020-12-06T08:30:00.876Z",
      "_id": "5c0784ec1db0d029101c235b",
      "coin": "TUSD",
      "__v": 0
    },
    {
      "btc_price": 0.00000406,
      "usd_price": 0.01446,
      "updated_date": "2019-01-24T09:00:04.451Z",
      "_id": "5c3de761d89178985cc6fc5f",
      "coin": "RISE",
      "__v": 0
    },
    {
      "btc_price": "0.0002821",
      "usd_price": "1.01",
      "updated_date": "2019-01-24T09:00:04.453Z",
      "_id": "5d26fd694313a92acbe6b5db",
      "coin": "USDT",
      "__v": 0
    }
  ]
}

Last updated

Was this helpful?