Apidocument

Imm Market REST API Documentation

Welcome to the ImmE 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://immexchange.osiztechnologies.in/api

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

API Docs

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://immexchange.osiztechnologies.in/api/getMarketHistory/BTC_ETH" 
                     
                                
// Example valid response
                               {
                                "status": "1",
                                "result": {
                                    "pair": "BTC_ETH",
                                    "transaction_history": [
                                        {
                                            "datetime": "2019-05-20 09:13:27",,
                                            "type": "increase",
                                            "price": "0.41",
                                            "amount": "1",
                                            "from_cur": "BTC",
                                            "to_cur": "ETH",
                                            "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://immexchange.osiztechnologies.in/api/createOrder


Parameters:

  • order(string) - limit / market/stoprder.
  • type(string) - buy / sell
  • pair(string) - BTC_USDT
  • 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://immexchange.osiztechnologies.in/api/openBuyorders


Parameters:

  • pair (string) BTC_ETH.

Response:

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

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

POST https://immexchange.osiztechnologies.in/api/opensellOrders


Parameters:

  • pair (string) - BTC_ETH.

Response:

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

This endpoint returns the all currency balances.

GET https://immexchange.osiztechnologies.in/api/getAccountbalance


Parameters:

  • No params

Response:

    {
        "status": 1,
        "data": {
            "BTC": "994.7",
            "ETH": "1000.0588",
            "USDT": 1000,
            "TEACH": 1000,
            "TYC": 1000,
            "TEX": 1000,
            "EUR": 10000,
            "WAVES": 1000
        }
    } 

This endpoint returns the particular currency balances.

POST https://immexchange.osiztechnologies.in/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://immexchange.osiztechnologies.in/api/getFilledOrder


Parameters:

  • pair (string) - BTC_ETH

Response:

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

This endpoint returns a list of existing deposit history.

POST https://immexchange.osiztechnologies.in/api/getDeposithistory


Parameters:

  • No params

Response:

    {
        "status": "1",
        "Deposit_history": [
            {
                "currency": "EUR",
                "transaction_id": "ttttt",
                "amount": "15000",
                "proof": "http://Immexchange.osiztechnologies.in/public/
                 images/deposit_proof/Imm64KaEOcIMG_20190521_152233_8155917430561766792.jpg",
                "datetime": "2019-05-21 10:22:36",
                "status": "Confirmed",
                "type": "fiat"
            },
        ]
     } 

This endpoint returns a list of existing withdraw history.

POST https://immexchange.osiztechnologies.in/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://immexchange.osiztechnologies.in/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://immexchange.osiztechnologies.in/api/returnTicker


Parameters:

  • No params

Response:

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