Public API

This API does not require the use of authorization and is available using a GET request.

In general, the URL for accessing the API is as follows https://igt-crypto.net/api/public/{api_name}?{api_params} where api_name is the name of the API that is being accessed and api_params are the incoming parameters request (if necessary)

Description of methods:
List of deals for currency pair
Method name: trades
Request Type: GET
Incoming parameters: pair - one or more comma-separated currency pairs (example BTC_USD, BTC_EUR)
Example of use: https://igt-crypto.net/api/public/trades?pair=BTC_USD
Return value:
{
  "BTC_USD": [
    {
      "trade_id": 3,
      "type": "sell",
      "price": "100",
      "quantity": "1",
      "amount": "100",
      "date": 1435488248
    }
  ]
}
Description of fields:
trade_id - transaction ID
type - transaction type
price - transaction price
quantity - number of transaction
amount - transaction amount
date - date and time of the transaction in Unix format
Order book for currency pair
Method name: order-book
Request Type: GET
Incoming parameters:
pair - one or more comma-separated currency pairs (example BTC_USD, BTC_EUR)
Example of use: https://igt-crypto.net/ api/public/order-book/?pair=BTC_USD
Return value:
{
  "BTC_USD": {
    "ask_quantity": "3",
    "ask_amount": "500",
    "ask_top": "100",
    "bid_quantity": "1",
    "bid_amount": "99",
    "bid_top": "99",
    "ask": [[100,1,100],[200,2,400]],
    "bid": [[99,1,99]]
  }
}
Description of fields:
ask_quantity - volume of all sell orders
ask_amount - amount of all sell orders
ask_top - minimum sale price
bid_quantity - volume of all purchase orders
bid_amount - amount of all purchase orders
bid_top - maximum purchase price
bid - list of 100 purchase orders, where each row is a price, quantity and amount
ask - list of 100 sell orders, where each row is a price, quantity and amount
Statistics of prices and trading volumes by currency pairs
Method name: ticker
Request Type: GET
Incoming parameters: Absent
Example of use: https://igt-crypto.net/ api/public/ticker
Return value:
{
  "BTC_USD": {
    "buy_price": "589.06",
    "sell_price": "592",
    "last_trade": "591.221",
    "high": "602.082",
    "low": "584.51011695",
    "avg": "591.14698808",
    "vol": "167.59763535",
    "vol_curr": "99095.17162071",
    "updated": 1470250973
  }
}
Description of fields:
high - maximum transaction price in 24 hours
low - minimum transaction price in 24 hours
avg - average transaction price for 24 hours
vol - volume of all transactions in 24 hours
vol_curr - amount of all transactions in 24 hours
last_trade - last transaction price
buy_price - current maximum purchase price
sell_price - current minimum sale price
updated - update date and time
Exchange Currency List
Method name: currency
Request Type: GET
Incoming parameters: Absent
Example of use: https://igt-crypto.net/ api/public/currency
Return value:
["USD","EUR","BTC","LTC"]

Private API

Authorization is required to access this API and you must use the POST method.

In general, the URL for accessing the API is as follows https://igt-crypto.net/api/v1/private/{api_name} where api_name is the name of the API that is being accessed

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

X-Access-Token — Token, you need to take the user profile settings (example: 9TQDSBmIqocf9GLReKgVMDxpQlZ3iNnl)

X-Access-Sign — POST data (param=val&param1=val1), signed by the private key using the HMAC-SHA512 method, the private key must also be taken in the user profile settings

Description of methods:
User balance
Method name: balance
Request Type: POST
Incoming parameters: Absent
Example of use: https://igt-crypto.net/api/v1/private/balance
Return value:
{
  "status": 1
  "data":
    {
      "usd": 66.00,
      "eur": 0,
      "btc": 0.9600000000,
      "xrp": 0,
      "ltc": 0,
      "eth": 0,
      "bch": 0
    }
}
Description of fields:
status - response status
data - array of balances, where the key is the currency, and the value is the sum of the balance in this currency
Transaction list
Method name: transaction-list
Request Type: POST
Incoming parameters:
page - (optional) sampling page, default is 100 entries
Example of use: https://igt-crypto.net/api/v1/private/transaction-list
Return value:
{
  "status": 1
  "data":[
        {
          "order_id": 1164,
          "from": btc,
          "to": usd,
          "gave": 0.0200000000,
          "got": 155.1756000000,
          "fee": 0.7744000000,
          "created_at": 2019-06-13 17:21:04,
          "type": market,
          "operation": sell,
          "status": done
        }
    ]
}
Description of fields:
order_id - application id
from - returned currency
to - currency received
gave - gave the amount
got - got the amount
fee - commission
created_at - application creation date
type - type of application
operation - type of transaction
status - application status
Active orders
Method name: active-orders
Request Type: POST
Incoming parameters:
page - (optional) sampling page, default is 100 entries
Example of use: https://igt-crypto.net/api/v1/private/active-orders
Return value:
{
  "status": 1
  "data":[
        {
          "order_id": 1165,
          "from": btc,
          "to": usd,
          "gave": 0.0200000000,
          "got": 155.1756000000,
          "fee": 0.7744000000,
          "created_at": 2019-06-13 17:21:04,
          "type": limit,
          "operation": sell,
          "status": progress
        }
    ]
}
Description of fields:
order_id - application id
from - returned currency
to - currency received
gave - gave the amount
got - got the amount
fee - commission
created_at - application creation date
type - type of application
operation - type of transaction
status - application status
Order Status
Method name: order-status
Request Type: POST
Incoming parameters:
id - (required parameter) order identifier
Example of use: https://igt-crypto.net/api/v1/private/order-status
Return value:
{
  "status": 1
  "data":
        {
          "order_id": 1165,
          "from": btc,
          "to": usd,
          "gave": 0.0200000000,
          "got": 155.1756000000,
          "fee": 0.7744000000,
          "created_at": 2019-06-13 17:21:04,
          "type": limit,
          "operation": sell,
          "status": progress
        }
}
Description of fields:
order_id - application id
from - returned currency
to - currency received
gave - gave the amount
got - got the amount
fee - commission
created_at - application creation date
type - type of application
operation - type of transaction
status - application status
Cancel order
Method name: cancel-order
Request Type: POST
Incoming parameters:
id - (required parameter) order identifier
Example of use: https://igt-crypto.net/api/v1/private/cancel-order
Return value:
{
  "status": 1
  "data":
        {
          "result": true
        }
}
Description of fields:
result - the result of the application
Cancel all orders
Method name: cancel-all-orders
Request Type: POST
Incoming parameters: Absent
Example of use: https://igt-crypto.net/api/v1/private/cancel-all-orders
Return value:
{
  "status": 1
  "data":[
            {
              "1158": true
            }
        ]
}
Description of fields:
data - The array of canceled orders, where the key is the ticket identifier, and the value is the result of the action
Buy limit order
Method name: buy-limit
Request Type: POST
Incoming parameters:
pair - (required parameter) currency pair
price - (required) price
count - (required) quantity
Example of use: https://igt-crypto.net/api/v1/private/buy-limit
Return value:
{
  "status": 1
  "data":
        {
          "id": 1166
        }
}
Description of fields:
id - claim identifier
Sell ​​limit order
Method name: sell-limit
Request Type: POST
Incoming parameters:
pair - (required parameter) currency pair
price - (required) price
count - (required) quantity
Example of use: https://igt-crypto.net/api/v1/private/sell-limit
Return value:
{
  "status": 1
  "data":
        {
          "id": 1166
        }
}
Description of fields:
id - claim identifier
Buy market order
Method name: buy-market
Request Type: POST
Incoming parameters:
pair - (required parameter) currency pair
count - (required) quantity
Example of use: https://igt-crypto.net/api/v1/private/buy-market
Return value:
{
  "status": 1
  "data":
        {
          "id": 1166
        }
}
Description of fields:
id - claim identifier
Sell ​​market order
Method name: sell-market
Request Type: POST
Incoming parameters:
pair - (required parameter) currency pair
count - (required) quantity
Example of use: https://igt-crypto.net/api/v1/private/sell-market
Return value:
{
  "status": 1
  "data":
        {
          "id": 1166
        }
}
Description of fields:
id - claim identifier
Output request history
Method name: withdrawal-history
Request Type: POST
Incoming parameters: Absent
Example of use: https://igt-crypto.net/api/v1/private/withdrawal-history
Return value:
{
  "status": 1
  "data":[
            {
              "id": 4,
              "currency": btc,
              "address": 32SeVfRzxKygQWRaFsj3DsCtqg7rwtMmvw,
              "amount": 0.1000000000,
              "fee": 0.02,
              "hash": null
            }
        ]
}
Description of fields:
id - claim identifier
currency - bid currency
address - address of the recipient
amount - bid amount
fee - commission
hash - transaction hash
Request for output BTC
Method name: btc-withdrawal
Request Type: POST
Incoming parameters:
amount - (required) withdrawal amount
address - (required parameter) recipient's address
Example of use: https://igt-crypto.net/api/v1/private/btc-withdrawal
Return value:
{
  "status": 1
  "data":
        {
          "id": 5
        }
}
Description of fields:
id - claim identifier
Request for output LTC
Method name: ltc-withdrawal
Request Type: POST
Incoming parameters:
amount - (required) withdrawal amount
address - (required parameter) recipient's address
Example of use: https://igt-crypto.net/api/v1/private/ltc-withdrawal
Return value:
{
  "status": 1
  "data":
        {
          "id": 5
        }
}
Description of fields:
id - claim identifier
Request for output ETH
Method name: eth-withdrawal
Request Type: POST
Incoming parameters:
amount - (required) withdrawal amount
address - (required parameter) recipient's address
Example of use: https://igt-crypto.net/api/v1/private/eth-withdrawal
Return value:
{
  "status": 1
  "data":
        {
          "id": 5
        }
}
Description of fields:
id - claim identifier
Request for output BCH
Method name: bch-withdrawal
Request Type: POST
Incoming parameters:
amount - (required) withdrawal amount
address - (required parameter) recipient's address
Example of use: https://igt-crypto.net/api/v1/private/bch-withdrawal
Return value:
{
  "status": 1
  "data":
        {
          "id": 5
        }
}
Description of fields:
id - claim identifier
Request for output EUR
Method name: eur-withdrawal
Request Type: POST
Incoming parameters:
amount - (required) withdrawal amount
iban - (required) recipient iban
bankSwiftCode - (required parameter) swift code of the recipient
Example of use: https://igt-crypto.net/api/v1/private/eur-withdrawal
Return value:
{
  "status": 1
  "data":
        {
          "id": 5
        }
}
Description of fields:
id - claim identifier
BTC address
Method name: btc-address
Request Type: POST
Incoming parameters: Absent
Example of use: https://igt-crypto.net/api/v1/private/btc-address
Return value:
{
  "status": 1
  "data":
        {
          "address": 3NkJKHTk7AM21rfUCSa9RFemgUNFNceks6
        }
}
Description of fields:
address - user purse to replenish
LTC address
Method name: ltc-address
Request Type: POST
Incoming parameters: Absent
Example of use: https://igt-crypto.net/api/v1/private/ltc-address
Return value:
{
  "status": 1
  "data":
        {
          "address": 3NkJKHTk7AM21rfUCSa9RFemgUNFNceks6
        }
}
Description of fields:
address - user purse to replenish
ETH address
Method name: eth-address
Request Type: POST
Incoming parameters: Absent
Example of use: https://igt-crypto.net/api/v1/private/eth-address
Return value:
{
  "status": 1
  "data":
        {
          "address": 3NkJKHTk7AM21rfUCSa9RFemgUNFNceks6
        }
}
Description of fields:
address - user purse to replenish
BCH address
Method name: bch-address
Request Type: POST
Incoming parameters: Absent
Example of use: https://igt-crypto.net/api/v1/private/bch-address
Return value:
{
  "status": 1
  "data":
        {
          "address": 3NkJKHTk7AM21rfUCSa9RFemgUNFNceks6
        }
}
Description of fields:
address - user purse to replenish
Data to replenish SEPA (eur)
Method name: eur-address
Request Type: POST
Incoming parameters: Absent
Example of use: https://igt-crypto.net/api/v1/private/eur-address
Return value:
{
  "status": 1
  "data":
        {
          "bankCode": 777555333,
          "accountNumber": 777555333
        }
}
Description of fields:
bankCode - Bank code
accountNumber - Account number