Apidocument

Daybeex Market REST API Documentation

Welcome to the Daybeex Market REST API documentation. This API (Application Programming Interface) will allow you to access the functionality of this exchange by means of HTTP requests, making integration with your own applications possible.


Connecting to the API

You can access the API at the following url:

https://daybeex.com/api

You are permited to make up to 20 requests a minute.

Usage

In order to use a public API method, you must make an HTTP request to the appropriate endpoint for that particular method, sending the appropriate GET or POST parameters for that method. You can also send them in the PAYLOAD of the request in JSON format.

Here are a few basic usage examples:

# Example request using CURL on the command line
                                curl "https://daybeex.com/api/getMarketHistory/BTC_TRY" 
                     
                                
// Example valid response
                               {
                                "status": "1",
                                "result": {
                                    "pair": "BTC_TRY",
                                    "transaction_history": [
                                        {
                                            "datetime": "2019-05-20 09:13:27",,
                                            "type": "increase",
                                            "price": "0.41",
                                            "amount": "1",
                                            "from_cur": "BTC",
                                            "to_cur": "TRY",
                                            "sell_fee": 0.000123,
                                            "buy_fee": 0.02,
                                            "sellordertype": "limit",
                                            "buyordertype": "market"
                                        },
                                    }
                                }
                                
// Example error response
                                 {"errors":[{"status":"0","message":"invalid pairs"}]}

Private API Methods

These methods cannot be accessed without an account or API key and secret key, Needed parameters(api_key,api_secret).


This endpoint used to make a orders.

POST https://daybeex.com/api/createOrder


Parameters:

  • order(string) - limit / market/stoprder.
  • type(string) - buy / sell
  • pair(string) - BTC_TRY
  • price(float) - Trade Price
  • stopprice(float) - Stop Price

Response:

    {
        "status": "success",
        "message": "order placed",
        "response": {
            "active": {
                "amount": "5",
                "price": "1",
                "total": "5",
                "datetime": "2019-05-22 10:09",
                "id": "A-900npUhckX9IaNgyzzOZk3pAR0v4S8kXkqD1AGjbI",
                "type": "Sell",
                "ordertype": "Limit"
            }
        }
    }

This endpoint returns a list of existing exchange open buy order books.

POST https://daybeex.com/api/openBuyorders


Parameters:

  • pair (string) BTC_TRY.

Response:

    {
        "status": "1",
        "openOrders": [
            {
                "amount": "1",
                "type": "buy",
                "price": "0.42",
                "total": "0.42",
                "from_cur": "BTC",
                "to_cur": "TRY"
            }
        ]
    }

This endpoint returns a list of existing exchange open sell order books.

POST https://daybeex.com/api/opensellOrders


Parameters:

  • pair (string) - BTC_TRY.

Response:

    {  "status": "1",
        "openOrders": [
            {
                "amount": "1",
                "type": "sell",
                "price": "50",
                "total": "50",
                "from_cur": "BTC",
                "to_cur": "TRY"
            }
        ]
    }

This endpoint returns the all currency balances.

GET https://daybeex.com/api/getAccountbalance


Parameters:

  • No params

Response:

    {
        "status": 1,
        "data": {
            "BTC": "994.7",
            "ETH": "1000.0588",
            "TRY": 1000,
           
        }
    } 

This endpoint returns the particular currency balances.

POST https://daybeex.com/api/getCurrencybalance


Parameters:

  • currency (string) - BTC

Response:

    {
        "status": "1",
        "data": {
            "currencyname": "Bitcoin",
            "Available balance": "993.7"
        }
    }

This endpoint returns a list of existing exchange order books and their respective order placement limits.

POST https://daybeex.com/api/getFilledOrder


Parameters:

  • pair (string) - BTC_TRY

Response:

    {
        "status": "1",
        "getfilledorders": [
            {
                "datetime": "10:02:44",
                "type": "increase",
                "price": "50",
                "amount": "1",
                "from_cur": "BTC",
                "to_cur": "TRY",
                "sell_fee": 0.015,
                "buy_fee": 0.02,
                "sellordertype": "limit",
                "buyordertype": "limit"
            },
        ]
    } 

This endpoint returns a list of existing deposit history.

POST https://daybeex.com/api/getDeposithistory


Parameters:

  • No params

Response:

    {
        "status": "1",
        "Deposit_history": [
            {
                "currency": "TRY",
                "transaction_id": "ttttt",
                "amount": "15000",
                "proof": "",
                "datetime": "2019-05-21 10:22:36",
                "status": "Confirmed",
                "type": "fiat"
            },
        ]
     } 

This endpoint returns a list of existing withdraw history.

POST https://daybeex.com/api/getWithdrawhistory


Parameters:

  • No params

Response:

    {
        "status": "1",
        "Withdraw_history": [
            {
                "id": "PA_obgJA0ilVGNel0MnsNcPKPWrI-oRKDsjsrnV495Q",
                "currency": "BTC",
                "transaction_id": "",
                "amount": "3",
                "fee": "0.003",
                "address": "3Dc1mYtWVWmLDaFv8ExmTVRGVwDfCGaYEM",
                "datetime": "2019-05-20 11:26:47",
                "status": "Pending",
                "type": "crypto"
            },
            ]
        }

This endpoint used to cancle the particular orders.

POST https://daybeex.com/api/closeOrder


Parameters:

  • order_id (string) - 1

Response:

    {
        "status": "1",
        "Cancel amount": "5.00000000",
        "Orderid": "A-900npUhckX9IaNgyzzOZk3pAR0v4S8kXkqD1AGjbI",
        "message": "Order cancelled successfully"
    }

Public API Methods

These methods can be accessed without an account or API key.


Returns statistics about the current state of the exchange.

GET https://daybeex.com/api/returnTicker


Parameters:

  • No params

Response:

    {
        "status": 1,
        "data": [
            {
                "first_currency": "BTC",
                "second_currency": "TRY",
                "last_market_price": "0.41000000",
                "lowestaskprice": "0.20000000",
                "highestbidprice": "0.41000000",
                "volume": "4.9700"
            },]}