Rekeningku Public API

General notes

API detail

Transaction Activity

Returns an array of transaction activity by spesific coin id, month, and year

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Content-Type: application/x-www-form-urlencoded" -d "coinid={{COIN_ID}}&bulan={{MONTH}}&tahun={{YEAR}}" "https://id.rekeningku.com/api/activitytrans"
POST https://id.rekeningku.com/api/activitytrans HTTP/1.1
Host: 
Content-Type: application/x-www-form-urlencoded
Content-Type: application/x-www-form-urlencoded

coinid={{COIN_ID}}&bulan={{MONTH}}&tahun={{YEAR}}
Content-Typeapplication/x-www-form-urlencoded
coinid {{COIN_ID}}
Transaction activity by spesific coin.
bulan {{MONTH}}
bulan = month, you can fill with number of month (ex: 2)
tahun {{YEAR}}
tahun = year, you can fill with year (ex: 2019)
[
    [
        1571134064, // timestamp
        0, // transaction type (0 == "buy", 1 == "sell")
        119057000, // price (idr)
        22637676, // total transaction (idr)
        0.19014149525017 // total transaction (coin)
    ],
    [
        1571134064,
        0,
        119053000,
        1251588,
        0.010512864018546
    ],
    [
        1571134064,
        0,
        119052000,
        1310827,
        0.011010541612069
    ]
]

Chart

Returns an array of chart data by spesific coin, period, and chart type.

curl -X GET "https://id.rekeningku.com/api/chart?id={{COIN_ID}}&f={{CHART_PERIOD}}&t={{CHART_TYPE}}"
GET https://id.rekeningku.com/api/chart?id={{COIN_ID}}&f={{CHART_PERIOD}}&t={{CHART_TYPE}} HTTP/1.1
Host: 
id {{COIN_ID}}
Chart data by spesific coin.
f {{CHART_PERIOD}}
f = period, you can fill with minute unit (ex: 30).
t {{CHART_TYPE}}
t = type, you can fill with 1 (line) or 2 (candle).
[
    [
        1571047440, // timestamp
        118236000, // open price
        118451000, // close price
        118236000, // low price
        118451000, // high price
        0.8159674865600853, // volume (coin)
        96568708.04207599 // volume (idr)
    ],
    [
        1571049000,
        118451000,
        118327000,
        118307000,
        118451000,
        3.4654067561370714,
        410347960.2720551
    ],
    [
        1571050800,
        118327000,
        118104000,
        118104000,
        118377000,
        1.3529514708094041,
        159956098.89999992
    ]
]

Bid/Ask

The term bid and ask (also known as bid and offer) refers to a two-way price quotation that indicates the best price at which a security can be sold and bought at a given point in time.

Bid/Ask by Coin

Returns an bid/ask by coin id.

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Content-Type: application/x-www-form-urlencoded" -d "code={{COIN_ID}}" "https://id.rekeningku.com/api/bidaskpercoin"
POST https://id.rekeningku.com/api/bidaskpercoin HTTP/1.1
Host: 
Content-Type: application/x-www-form-urlencoded
Content-Type: application/x-www-form-urlencoded

code={{COIN_ID}}
Content-Typeapplication/x-www-form-urlencoded
code {{COIN_ID}}
Bid/Ask by spesific coin.
{
    "bid": 118725000,
    "ask": 118727000
}

All Bid/Ask

Returns an bid/ask of all coins.

curl -X GET "https://id.rekeningku.com/api/bidask"
GET https://id.rekeningku.com/api/bidask HTTP/1.1
Host: 
[
    {
        "accid": 1, // coin id
        "code": "BTC", // coin code
        "changepct": 0.41527115261003, // change percentage
        "bid": 118725000,
        "ask": 118727000
    },
    {
        "accid": 2,
        "code": "BCH",
        "changepct": 0.15581177937052,
        "bid": 3209000,
        "ask": 3214000
    },
    {
        "accid": 16,
        "code": "BSV",
        "changepct": 0.16220600162206,
        "bid": 1235000,
        "ask": 1236000
    }
]

Price

Prices

Returns an prices of all coins.

curl -X GET "https://id.rekeningku.com/api/price"
GET https://id.rekeningku.com/api/price HTTP/1.1
Host: 
[
    {
        "n": "Bitcoin", // coin name
        "id": 1, // coin id
        "cd": "BTC", // coin code
        "c": 118937000, // close price
        "h": 120102000, // high price
        "l": 117416000, // low price
        "o": 118236000, // open price
        "v": 39292428501, // volume (idr)
        "cp": 0.5928820325450793, // change percentage
        "tt": 0 // transaction type (0 == "buy", 1 == "sell")
    },
    {
        "n": "Bitcoin Cash",
        "id": 2,
        "cd": "BCH",
        "c": 3214000,
        "h": 3292000,
        "l": 3190000,
        "o": 3209000,
        "v": 2474068087,
        "cp": 0.1558117793705204,
        "tt": 1
    },
    {
        "n": "Bitcoin SV",
        "id": 16,
        "cd": "BSV",
        "c": 1235000,
        "h": 1238000,
        "l": 1217000,
        "o": 1233000,
        "v": 1166824205,
        "cp": 0.16220600162206003,
        "tt": 0
    }
]

Price

Returns an price of spesific coin.

curl -X GET "https://id.rekeningku.com/api/price/{{COIN_ID}}"
GET https://id.rekeningku.com/api/price/%7B%7BCOIN_ID%7D%7D HTTP/1.1
Host: 
{
    "n": "Bitcoin", // coin name
    "id": 1, // coin id
    "cd": "BTC", // coin code
    "tt": 0, // transaction type (0 == "buy", 1 == "sell")
    "c": 118937000, // close price
    "h": 120102000, // high price
    "l": 117416000, // low price
    "o": 118236000, // open price
    "v": 39292428501, // volume (idr)
    "cp": 0.59288203254508 // change percentage
}

Order Books

Order Book

Returns an array of order books by spesific coin.

curl -X GET "https://id.rekeningku.com/api/orderbook?id={{COIN_ID}}&total=25"
GET https://id.rekeningku.com/api/orderbook?id={{COIN_ID}}&total=25 HTTP/1.1
Host: 
id {{COIN_ID}}
Order Books by spesific coin.
total 25
Total show data.
{
    "b": [ // buy/bids
        [
            96569, // total transaction (idr)
            119114000, // price (idr)
            0.00081072753832463 // total transaction (coin)
        ],
        [
            4111841,
            119095000,
            0.034525723162181
        ],
        [
            24791026,
            119049000,
            0.20824220279045
        ]
    ],
    "s": [ // sell/asks
        [
            154142500, // total transaction (idr)
            119143000, // price (idr)
            1.2937604391362 // total transaction (coin)
        ],
        [
            3681935,
            119146000,
            0.030902715995501
        ],
        [
            23566522,
            119151000,
            0.19778702654615
        ]
    ]
}

Order Book All

Returns an array of order books by spesific coin.

curl -X GET "https://id.rekeningku.com/api/orderbookall?id={{COIN_ID}}"
GET https://id.rekeningku.com/api/orderbookall?id={{COIN_ID}} HTTP/1.1
Host: 
id {{COIN_ID}}
Order books by spesific coin.
{
    "b": [ // buy/bids
        [
            4147132, // total transaction (idr)
            116407000, // price (idr)
            0.035626139321518 // total transaction (coin)
        ],
        [
            5637296,
            116398000,
            0.04843121015825
        ],
        [
            107550167.52,
            116387000,
            0.92407371544932
        ]
    ],
    "s": [ // sell/asks
        [
            8444957, // total transaction (idr)
            116416000, // price (idr)
            0.072541205676196 // total transaction (coin)
        ],
        [
            2472761,
            116420000,
            0.021240001717918
        ],
        [
            181099167,
            116422000,
            1.5555407654911
        ]
    ]
}

Coin

Coins

Returns an array of coins list in Rekeningku.

curl -X GET "https://id.rekeningku.com/api/coins"
GET https://id.rekeningku.com/api/coins HTTP/1.1
Host: 
{
    "result": [
        {
            "id": 1, // coin id
            "accountcode": "BTC", // coin code
            "accountname": "Bitcoin", // coin name
            "ico": 0, // ico
            "discount": 0, // discount
            "takerfee": 0.3, // taker fee
            "minsend": 0.001, // minimal send coin
            "maxsend": 1.5, // maximal send coin
            "sendfee_internal": 0, // send coin fee to internal address
            "sendfee_external": 0.0005, // send coin fee to external address
            "smsfee": 0.0001, // sms fee
            "logo": "https://images.rekeningku.com/accounts/btc.png", // logo coin
            "digits": 3, // coin digit
            "decimals": 8, // coin decimal
            "enablesendfund": 1, // enable send fund status
            "enablebuy": 1, // enable buy status
            "enablesell": 1 // enable sell status
        },
        {
            "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.rekeningku.com/accounts/bch.png",
            "digits": 3,
            "decimals": 8,
            "enablesendfund": 1,
            "enablebuy": 1,
            "enablesell": 1
        },
        {
            "id": 16,
            "accountcode": "BSV",
            "accountname": "Bitcoin SV",
            "ico": 0,
            "discount": 0,
            "takerfee": 0.3,
            "minsend": 0.05,
            "maxsend": 25,
            "sendfee_internal": 0,
            "sendfee_external": 0.0005,
            "smsfee": 0.003,
            "logo": "https://images.rekeningku.com/accounts/bsv.png",
            "digits": 3,
            "decimals": 8,
            "enablesendfund": 1,
            "enablebuy": 1,
            "enablesell": 1
        }
    ]
}

Coin

Returns an spesific coin in Rekeningku.

curl -X GET "https://id.rekeningku.com/api/coins?coinid={{COIN_ID}}"
GET https://id.rekeningku.com/api/coins?coinid={{COIN_ID}} HTTP/1.1
Host: 
coinid {{COIN_ID}}
{
    "result": [
        {
            "id": 1, // coin id
            "accountcode": "BTC", // coin code
            "accountname": "Bitcoin", // coin name
            "ico": 0, // ico
            "discount": 0, // discount
            "takerfee": 0.3, // taker fee
            "minsend": 0.001, // minimal send coin
            "maxsend": 1.5, // maximal send coin
            "sendfee_internal": 0, // send coin fee to internal address
            "sendfee_external": 0.0005, // send coin fee to external address
            "smsfee": 0.0001, // sms fee
            "logo": "https://images.rekeningku.com/accounts/btc.png", // logo coin
            "digits": 3, // coin digit
            "decimals": 8, // coin decimal
            "enablesendfund": 1, // enable send fund status
            "enablebuy": 1, // enable buy status
            "enablesell": 1 // enable sell status
        }
    ]
}

Websocket

Trade

Trade Channel send a message data of prices, price and activity transaction from all coins.

URL
wss://id.rekeningku.com/stream
Channel Name (Topic)
trade

Messages on this channel look like this:
[
    {
        a: 237050,
        b: 236570,
        c: "BNB", // coin code
        category: "trade", // channel name
        cl: 237050, // close price
        cp: -7.9167152235559, // change percentage
        d: 1, 
        h: 257950, // high price
        i: 24,
        l: 232470, // low price
        n: "Binance Coin", // coin name
        o: 257430, // open price
        t: [ // activity transaction
            [
                1571911124,  // timestamp
                1, // transtype (0 == "buy", 1 == "sell")
                237050, // price (idr)
                178641, // total transaction (idr)
                0.75360050622232 // total transaction (coin)
            ]
        ],
        u: 4,
        v: 716293730 // volume
    }
]

Order Books

Order Books Channel send a message data of order books from spesific coin.

URL
wss://id.rekeningku.com/stream
Channel Name (Topic)
order{{COIN_ID}}

Messages on this channel look like this:
[
    {
        "category": "order1",
        "i": 1,
        "bs": {
            "b": [ // buy/bids
                [
                    2179011, // total transaction (idr)
                    107090000, // price (idr)
                    0.020347474087216 // total transaction (coin)
                ],
                [
                    1605675,
                    107064000,
                    0.014997338040798
                ],
                [
                    2694817,
                    107043000,
                    0.02517508851583
                ]
            ],
            "s": [ // sell/asks
                [
                    482805.97725073, // total transaction (idr)
                    107290000, // price (idr)
                    0.0045000091084978 // total transaction (coin)
                ],
                [
                    302785.45531921,
                    107346000,
                    0.0028206496312784
                ],
                [
                    2157975,
                    107473000,
                    0.020079229201753
                ]
            ]
        }
    }
]

Chart

Chart Channel send a message data of chart from spesific coin and period.

URL
wss://id.rekeningku.com/stream
Channel Name (Topic)
chart{{COIN_ID}}_{{CHART_PERIOD}}

Messages on this channel look like this:
[
    {
        "category": "chart1_60",
        "i": 1,
        "c": [
            [
                1571911200, // timestamp
                107105000, // open price
                106931000, // close price
                106931000, // low price
                107105000, // high price
                0.0753482791000104, // volume (coin)
                8063811 // volume (idr)
            ]
        ]
    }
]