NAV Navbar
shell

Introduction

Welcome to the {{APP_NAME}} API! You can use our API to access {{APP_NAME}} API endpoints, which can get information on such as Orders, Markets, etc.

We have language bindings in Shell! You can view code examples in the dark area to the right.

Bid/Ask

All Bid/Ask

curl --location --request GET 'https://{{API_URL}}/v2/bidask'

The above command returns JSON structured like this:

[
  {
    "accid": 1, // account id
    "code": "BTC",
    "changepct": 3.1335238873009, // change percentage
    "bid": 126333000,
    "ask": 126355000
  },
  {
    "accid": 2,
    "code": "BCH",
    "changepct": 6.6058763931104,
    "bid": 5253000,
    "ask": 5261000
  },
  {
    "accid": 16,
    "code": "BSV",
    "changepct": 0.52421367948078,
    "bid": 4025000,
    "ask": 4027000
  }
]

This endpoint retrieves bid/ask of all coins.

HTTP Request

GET https://{{API_URL}}/v2/bidask

Bid/Ask by Coin

curl --location --request POST 'https://{{API_URL}}/v2/bidaskpercoin' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'code=1'

The above command returns JSON structured like this:

{
  "bid": 126354000,
  "ask": 126413000
}

This endpoint retrieves bid/ask by coin id.

HTTP Request

POST https://{{API_URL}}/v2/bidaskpercoin

Headers

Key Value
Content-Type application/x-www-form-urlencoded

Body

Key Description
code Bid/Ask by spesific coin (coin id).

Price

Prices

curl --location --request GET 'https://{{API_URL}}/v2/price'

The above command returns JSON structured like this:

[
  {
    "n": "Bitcoin", // coin name
    "id": 1,
    "cd": "BTC", // coin code
    "c": 126323000, // close price
    "tt": 0, // last transaction type (0 = buy, 1 = sell)
    "h": 127386000, // high price
    "l": 120912000, // low price
    "o": 122588000, // open price
    "v": 62853788527, // volume
    "cp": 3.0467908767579 // change percentage
  },
  {
    "n": "Bitcoin Cash",
    "id": 2,
    "cd": "BCH",
    "c": 5278000,
    "tt": 1,
    "h": 5320000,
    "l": 4927000,
    "o": 4946000,
    "v": 10579304856,
    "cp": 6.7124949454104
  }
]

This endpoint retrieves prices of all coins.

HTTP Request

GET https://{{API_URL}}/v2/price

Price

curl --location --request GET 'https://{{API_URL}}/v2/price/1'

The above command returns JSON structured like this:

{
  "n": "Bitcoin",
  "id": 1,
  "cd": "BTC",
  "c": 126288000,
  "tt": 1,
  "h": 127386000,
  "l": 120912000,
  "o": 122653000,
  "v": 62898383249,
  "cp": 2.9636454061458
}

This endpoint retrieves price of spesific coin.

HTTP Request

GET https://{{API_URL}}/v2/price

Order Books

Order Book All

curl --location --request GET 'https://{{API_URL}}/v2/orderbookall?id=1'

The above command returns JSON structured like this:

{
  // buy/bids
  "b": [
    [
      41157.71609468, // total transaction (idr)
      126366000, // price (idr)
      0.00032570245235807 // total transaction (coin)
    ],
    [351108, 126364000, 0.002778544522174]
  ],
  // sell/asks
  "s": [
    [
      16530.317642238, // total transaction (idr)
      126443000, // price (idr)
      0.0001307333552845 // total transaction (coin)
    ],
    [354207, 126450000, 0.002801162514828]
  ]
}

This endpoint retrieves all order books by spesific coin.

HTTP Request

GET https://{{API_URL}}/v2/orderbookall

URL Parameters

Param Description
id Order books by spesific coin (coin id).

Order Book

curl --location --request GET 'https://{{API_URL}}/v2/orderbook?id=1'

The above command returns JSON structured like this:

{
  // buy/bids
  "b": [
    [
      429967, // total transaction (idr)
      126468000, // price (idr)
      0.0033998086472467 // total transaction (coin)
    ],
    [192101, 126464000, 0.0015190172697368]
  ],
  // sell/asks
  "s": [
    [
      2100116.9999999, // total transaction (idr)
      126472000, // price (idr)
      0.016605390916566 // total transaction (coin)
    ],
    [111571.40024685, 126476000, 0.0008821547190522]
  ]
}

This endpoint retrieves 40 data order books by spesific coin.

HTTP Request

GET https://{{API_URL}}/v2/orderbook

URL Parameters

Param Description
id Order books by spesific coin (coin id).

General Settings

Settings

curl --location --request GET 'https://{{API_URL}}/v2/settings'

The above command returns JSON structured like this:

{
  "levelstatus": 0,
  "withdraw_fee": [1],
  "periodfiat": ["1 days"],
  "min_withdraw": 50000,
  "min_withdraw_fee": 25000,
  "max_withdraw": [300000000],
  "min_deposit": 50000,
  "deposit_fee": 0,
  "matic_send": 0,
  "smsfee": 500,
  "min_deposit_fee": 0,
  "interval_timer": 30000,
  "maintenance": 0,
  "maintenance_note": "Sampai dengan 04:00",
  "pctmarketprice": 30,
  "minprice": 30000
}

This endpoint retrieves general settings data of {{APP_NAME}} Apps.

HTTP Request

GET https://{{API_URL}}/v2/settings

Ads

Ads (Banner)

curl --location --request GET 'https://{{API_URL}}/v2/ads'

The above command returns JSON structured like this:

[
  {
    "url": "https://www.example.com/",
    "alt": "Diskon Biaya ANA 50%",
    "img": "https://images.example.com/1.jpeg"
  }
]

This endpoint retrieves ads (banner) of {{APP_NAME}}.

HTTP Request

GET https://{{API_URL}}/v2/ads

Coins

Coins

curl --location --request GET 'https://{{API_URL}}/v2/coins'

The above command returns JSON structured like this:

{
  "result": [
    {
      "id": 1,
      "accountcode": "BTC",
      "accountname": "Bitcoin",
      "ico": 0,
      "discount": 0,
      "takerfee": 0.3,
      "minsend": 0.001,
      "maxsend": 2,
      "sendfee_internal": 0,
      "sendfee_external": 0.0005,
      "smsfee": 5.0e-5,
      "logo": "https://images.example.com/btc.png",
      "digits": 3,
      "decimals": 8,
      "enablesendfund": 1,
      "enablebuy": 1,
      "enablesell": 1
    },
    {
      "id": 2,
      "accountcode": "BCH",
      "accountname": "Bitcoin Cash",
      "ico": 0,
      "discount": 0,
      "takerfee": 0.3,
      "minsend": 0.02,
      "maxsend": 15,
      "sendfee_internal": 0,
      "sendfee_external": 0.0005,
      "smsfee": 0.001,
      "logo": "https://images.example.com/bch.png",
      "digits": 3,
      "decimals": 8,
      "enablesendfund": 1,
      "enablebuy": 1,
      "enablesell": 1
    }
  ]
}

This endpoint retrieves {{APP_NAME}} coins list.

HTTP Request

GET https://{{API_URL}}/v2/coins

Activity Transaction

Activity Transaction

curl --location --request POST 'https://{{API_URL}}/v2/activitytrans' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'coinid=1' \
--data-urlencode 'bulan=1' \
--data-urlencode 'tahun=2020'

The above command returns JSON structured like this:

[
  [
    1580285076, // timestamp
    1, // transaction type (0 == "buy", 1 == "sell")
    126457000, // price (idr)
    745817, // total transaction (idr)
    0.0058977913440932 // total transaction (coin)
  ],
  [1580285076, 1, 126512000, 400190839, 3.1632638722018]
]

This endpoint retrieves transaction activity by spesific coin id, month, and year.

HTTP Request

POST https://{{API_URL}}/v2/activitytrans

Headers

Key Value
Content-Type application/x-www-form-urlencoded

Body

Key Description
coinid Transaction activity by spesific coin (coin id).
bulan bulan = month, you can fill with number of month (ex: 2).
tahun tahun = year, you can fill with year (ex: 2019).

Chart

Chart

curl --location --request GET 'https://{{API_URL}}/v2/chart?id=1&f=d'

The above command returns JSON structured like this:

[
  [
    1580164200, // timestamp
    121391000, // open price
    121042000, // close price
    120837000, // low price
    121391000, // high price
    11.517042583131294, // volume (coin)
    1394035264.0979247 // volume (idr)
  ],
  [
    1580166000,
    121042000,
    121488000,
    120867000,
    121488000,
    13.381651234711937,
    1622243438.0012197
  ]
]

This endpoint retrieves chart data by spesific coin, period, and chart type.

HTTP Request

GET https://{{API_URL}}/v2/chart

URL Parameters

Param Description
id Chart data by spesific coin (coin id).
f f = period, you can fill with unit of minutes like 5, 15, 30, 60 (1h), 1440 (1d), 10080 (1w) or 43200 (1m).

Banks

Banks

curl --location --request GET 'https://{{API_URL}}/v2/banks'

The above command returns JSON structured like this:

[
  {
    "id": "50ba809f3f9292c3b04506c451cd2a10",
    "bankname": "Anglomas Internasional Bank",
    "status": "1"
  },
  {
    "id": "9e582f477f5c44bf968b3ab0fd287c95",
    "bankname": "Bank Aceh",
    "status": "1"
  }
]

This endpoint retrieves {{APP_NAME}} banks support.

HTTP Request

GET https://{{API_URL}}/v2/banks

Our Banks

Our Banks

curl --location --request GET 'https://{{API_URL}}/v2/ourbanks'

The above command returns JSON structured like this:

[
  {
    "bankname": "Bank BCA",
    "id": "b286d862f19f768881a880b02f7a3458",
    "bankid": "b286d862f19f768881a880b02f7a3458",
    "bankbranch": "Graha Paramita, Jakarta",
    "bankaccountname": "PT {{APP_NAME}} Dotcom Indonesia",
    "bankaccountnumber": "5020818818"
  }
]

This endpoint retrieves {{APP_NAME}} banks.

HTTP Request

GET https://{{API_URL}}/v2/ourbanks