This API does not require authorization and is available through GET and POST request.

In general, the URL for accessing the API is as follows: https://binapex.com/api/{api_name}?{api_params} where api_name is API name being requested, and api_params is for incoming request parameters (if necessary).

GetMarketSummaries

Parameters

ParameterRequiredDescription
format required If "Short", the output will be only basic information.

Request

https://binapex.com/api/GetMarketSummaries

Response

  {
    "messages": "", 
    "result": [
        {
            "PrevDay": "3759.7095", 
            "Last": "3832.55804228", 
            "isLeverage": 1, 
            "MarketName": "BTC-USD", 
            "Low": "3681.455", 
            "isToken": 0, 
            "Volume": "24.00411263", 
            "fee": "0.00200000", 
            "MarketNameLong": "Bitcoin", 
            "High": "3937.47613344", 
            "BaseVolume": "87479.79937224"
        }, {
            "PrevDay": "127.7565", 
            "Last": "140.32975529", 
            "isLeverage": 1, 
            "MarketName": "ETH-USD", 
            "Low": "127.4295", 
            "isToken": 0, 
            "Volume": "62.26929758", 
            "fee": "0.00200000", 
            "MarketNameLong": "Ethereum", 
            "High": "142.76363583", 
            "BaseVolume": "6401.67652641"
        }
    ],
    "success": true
  }
  
GetMarketHistory

Parameters

ParameterRequiredDescription
market Required Market name (BTC-USD) for which market history needs to be generated.

Request

https://binapex.com/api/GetMarketHistory?pair=BTC-USD

Response

  {
    "messages": "", 
    "result": [
        {
        "Id": 237037, 
        "FillType": "PARTIAL_FILL", 
        "OrderType": "SELL", 
        "TimeStamp": 1545809473, 
        "Price": "0.00009945", 
        "Total": "0", 
        "Quantity": "36636.32412965"
        }, {
        "Id": 237036, 
        "Self": "", 
        "FillType": "PARTIAL_FILL", 
        "OrderType": "SELL", 
        "TimeStamp": 1545809472, 
        "Price": "0.00009945", 
        "Total": "0", 
        "Quantity": "40792.0324509"
        },
    ], "success": true
  }
  
GetTradePairChart

Parameters

ParameterRequiredDescription
market required Market for which the graph data is generated.
dataRange required ID of the displayed interval (1 day, 2 days, 1 week, 2 weeks, 3 months, 6 months data).
dataGroup required ID of the data grouping interval (15 minutes, 30 minutes, 1 hour, 2 hours, 4 hours, 12 hours, 1 day, 1 week).
timeStamp optional Unix time stamp from which data is generated.

Request

https://binapex.com/api/GetTradePairChart?market=BTC-USD&dataRange=2&dataGroup=1

Response

  {
    "messages": "", 
    "result": {
        "BTC-USD": [
            [1543220100, "3930.50258608", "4054.84943184", "4054.84943184", "4006.05504742", "0.00000004", "4030.45223963"], 
            [1543221900, "3950.72492011", "4005.49624283", "4005.49624283", "3978.31195656", "0.00000004", "3991.90409969"], ...
        ]
    }, 
    "success": true
  }
  

User Authorisation requests

To access this API, an authorisation is required and POST method must be used.

URL – the following address must be used: https://api.exmo.com/v1/{api_name} where api_name is API method name.

Authorization is performed by sending the following headers to the server:

Key — a public key, can be found in user profile settings.
(example: K-7cc97c89aed2a2fd9ed7792d48d63f65800c447b)

Sign — POST data (param=val&param1=val1), signed by private key using HMAC-SHA512 method, private key also can be found in user profile settings.

In addition, all request should contain a required nonce parameter with incremental market value (>0). This value should not be repeated or decreased in terms of user.

User Data

UserApiKeysGet

Parameters

ParameterRequiredDescription
market Required Market name (BTC-USD) for which market history needs to be generated.

Request

https://binapex.com/api/UserApiKeysGet

Response

  {
    "messages": "", 
    "result": [
        {
            "id": 20, 
            "isActive": 0, 
            "LastUpdate": "2018-12-20 08:35:42", 
            "Key": "ywSs/3X3Rcdgsdf37vGIcc0a11d7AV36659l10Ouq2RZ7cs5tc19UmIvlXped/Q2342+xlzFIGEqZGR/fCehpQ==", 
            "Sign": "WT8Y0u2115fto8MNzqce"
        }, {
            "id": 9, 
            "isActive": 0, 
            "LastUpdate": "2018-12-11 10:40:18", 
            "Key": "dTN3vUP323WJ6ssfEZjtI7tT/GicyNey0yT/n59QDiha13JDqaSbY854YGDPW6g3ITK5v9fuH1231v6EkxKosA==", 
            "Sign": "hJoavT23zrdxreXuWJRy"
        }
    ], 
    "success": true
  }
  
UserOrderList

Parameters

ParameterRequiredDescription
complete optional if "Y" – only executed orders displayed, otherwise only opened unexecuted orders displayed.
limit optional The number of displayed values.
page optional The number, starting from which records are provided, is calculated as page*limit.

Request

https://binapex.com/api/UserOrderList

Response

  
  
UserWallet

Request

https://binapex.com/api/UserWallet

Response

  {
    "messages": "", 
    "result": [
        {
            "available": "9359.077922117943680000000000", 
            "fund": "9359.077922137943680000000000", 
            "MarketName": "USD", 
            "userId": 1
        }, {
            "available": "0.177497980000000000000000", 
            "fund": "0.177497980000000000000000", 
            "MarketName": "BTC", 
            "userId": 1
        }
    ], "success": true
  }
  
DepositeHistory

Request

https://binapex.com/api/DepositeHistory

Response

  {
    "messages": "", 
    "result": [
        {
            "Name": "BTC", 
            "Created": 1545738217, 
            "TimeStamp": 1545742682, 
            "IsComplete": 1, 
            "Access": 0, 
            "Valid": 0, 
            "TransactionId": "21af3e4f2cef66b3b772145a9bb89f16a2be745a59353752ebffb675da380f7a", 
            "Quantity": "0.00010000", 
            "Status": 0, 
            "Fee:": "0E-8", 
            "Address": "32rmSxEu4k9CcCoNE3pQYYYjdLHvaoMEdR", 
            "Id": 1, 
            "IsActive": 1
        }
    ], 
    "success": true
  }
  
WithdrawHistory

Request

https://binapex.com/api/WithdrawHistory

Response

  {
    "messages": "", 
        "result": [
            {
                "Name": "BTC", 
                "Created": 1545739237, 
                "TimeStamp": 1545747242, 
                "IsComplete": 1, 
                "Access": 0, 
                "Valid": 0, 
                "TransactionId": "003ee5c316ed24e770c92c819176e3f846b7818871da2d06e5a523cacc3ed235", 
                "Quantity": "0.00010000", 
                "Status": 1, 
                "Fee:": "0E-8", 
                "Address": "1pd52nsiF1q3nf9tWYeTKKP69k5i13QoL", 
                "Id": 2, 
                "IsActive": 1
            }
        ], 
        "success": true
  }
  

Order Management

OrderCreate

Parameters

ParameterRequiredDescription
pair required Market, where order is created (e.g. BTC-USD).
quantity required Order quantity
price required Order price
type required Order type (Buy or Sell)
l_stop optional Stop, price when the current order is canceled and a new one is placed with quantity l_amount and price l_limit.
l_limit optional The quantity at which the new order will be placed when the price reaches l_stop.
l_amount optional The quantity at which the new order will be placed when price reaches l_stop.
is_leverage optional 1 - for margin trading, otherwise regular trading.
leverage optional Margin trade leverage.

Request

Response

  
  
OrderCancel

Parameters

ParameterRequiredDescription
order_id required Order ID for closing

Request

Response

  
  

Margin Trading

GetUserPosition

Request

Response

  
  
ClosePositions

Parameters

ParameterRequiredDescription
position_id required Position ID
price required Closing price

Request

Response

  
  
ChangeMargin

Parameters

ParameterRequiredDescription
position required Position ID
margin required New margin value for position.

Request

Response

  
  
Crypto currency signals