NAV Navbar
shell
  • Auth
  • Balance
  • Trade
  • Orders
  • History
  • Auth

    /user/login

    Request:

    curl --request POST \
      --url 'https://crp.is:8182/user/login' \
      --data 'PublicKey={PublicKey}&password={password}&2fa_pin=404279' \ 
    

    Response:

    {
        "success": true,
        "result": {
            "user_session": {
                "user": {
                    "id": "61fca6e6-bdb1-4fff-ae5e-f688b496f29f",
                    "name": "John",
                    "status": "active",
                    "lang": "en"
                },
                "session": {
                    "id": "0f3b3417-65e8-4a81-879e-629f969500a0"
                }
            },
            "auth_token": "2ad69fa0-e796-4587-8308-289725cd9fae"
        }
    }
    

    Sign in to system

    Parameters:

    Parameter Requirements Type Description
    PublicKey required string PublicKey
    password required string Password
    2fa_pin optional integer Pin

    /user/logout

    Request:

    curl --request POST \
      --url 'https://crp.is:8182/user/logout' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
        "success": true,
        "result": "logout success"
    }
    

    Sign out from system

    Balance

    /user/balance

    Request:

    curl --request GET \
      --url 'https://crp.is:8182/user/balance' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
      "success": true,
      "result": {
        "allbalance": [
          {
            "id": 12,
            "currency": {
              "id": 12,
              "name": "crp",
              "fullname": "Utopia Crypton",
              "appname": "crypton",
              "icon": "crp",
              "round": 8,
              "deposit_fee": 0,
              "deposit_min": 5,
              "withdraw_fee": 0,
              "withdraw_fee_pro": 0.1,
              "withdraw_min": 5,
              "address_size": 64,
              "min_fee": 1e-8,
              "enable": true,
              "show": true
            },
            "reserve": 0,
            "balance": 161.7769
          },
          {
            "id": 14,
            "currency": {
              "id": 14,
              "name": "usdt",
              "fullname": "Tether USD (TRC-20)",
              "appname": "tether",
              "icon": "usdt",
              "round": 8,
              "deposit_fee": 1,
              "deposit_min": 1,
              "withdraw_fee": 1,
              "withdraw_fee_pro": 0,
              "withdraw_min": 5,
              "address_size": 34,
              "min_fee": 1e-8,
              "enable": true,
              "show": true
            },
            "reserve": 0,
            "balance": 0.815
          },
          {
            "id": 17,
            "currency": {
              "id": 17,
              "name": "uusd",
              "fullname": "Utopia USD",
              "appname": "uusd",
              "icon": "uusd",
              "round": 8,
              "deposit_fee": 0,
              "deposit_min": 1,
              "withdraw_fee": 0,
              "withdraw_fee_pro": 0.1,
              "withdraw_min": 1,
              "address_size": 64,
              "min_fee": 1e-8,
              "enable": true,
              "show": true
            },
            "reserve": 0,
            "balance": 0.1399599
          },
          {
            "id": 16,
            "currency": {
              "id": 16,
              "name": "dai",
              "fullname": "DAI (ERC-20)",
              "appname": "dai",
              "icon": "dai",
              "round": 8,
              "deposit_fee": 10,
              "deposit_min": 10,
              "withdraw_fee": 10,
              "withdraw_fee_pro": 0,
              "withdraw_min": 10,
              "address_size": 42,
              "min_fee": 1e-8,
              "enable": true,
              "show": true
            },
            "reserve": 0,
            "balance": 0
          }
        ],
        "user_id": "09ce1d98-b4f9-4a7a-a03f-62131cdf9955"
      }
    }
    

    Get all user balances

    Trade

    /market/buy

    Request:

    curl --request POST \
      --url 'https://crp.is:8182/market/buy' \
      --data 'pair=crp_usdt&amount=1&price=0.22' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
        "success": true,
        "result": {
            "success": true,
            "order_id": 4374156,
            "daemon_id": 5878746
        }
    }
    

    Buy currency

    Parameters:

    Parameter Requirements Type Description
    pair required string Currency Pair
    amount required float Amount
    price required float Price

    /market/sell

    Request:

    curl --request POST \
      --url 'https://crp.is:8182/market/sell' \
      --data 'pair=crp_usdt&amount=1&price=0.22' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
        "success": true,
        "result": {
            "success": true,
            "order_id": 4374435,
            "daemon_id": 5879155
        }
    }
    

    Sell currency

    Parameters:

    Parameter Requirements Type Description
    pair required string Currency Pair
    amount required float Amount
    price required float Price

    /market/hold

    Request:

    curl --request POST \
      --url 'https://crp.is:8182/market/hold' \
      --data 'order_id=4374156' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
        "success": true,
        "result": {
            "success": true,
            "order_id": 4374156,
            "daemon_id": 5879306
        }
    }
    

    Hold or Unhold order

    Parameters:

    Parameter Requirements Type Description
    order_id required integer Order ID

    /market/cancel

    Request:

    curl --request POST \
      --url 'https://crp.is:8182/market/cancel' \
      --data 'order_id=4374156' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
        "success": true,
        "result": {
            "success": true,
            "order_id": 4374156,
            "daemon_id": 5879530
        }
    }
    

    Cancel the specified order

    Parameters:

    Parameter Requirements Type Description
    order_id required integer Order ID

    /market/pairs

    Request:

    curl --request GET \
      --url 'https://crp.is:8182/market/pairs' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
      "success": true,
      "result": {
        "pairs": [
          {
            "pair": {
              "pair_id": 25,
              "pair": "crp_usdt",
              "pair_show": "CRP / USDT",
              "group": "crp",
              "visible": true,
              "enable": true,
              "round_deal_amount": 3,
              "round_deal_price": 4,
              "min_amount": 1,
              "min_price": 0.001,
              "max_price": 100
            },
            "data_market": {
              "open": 0.1744,
              "close": 0.1752,
              "high": 0.1766,
              "low": 0.1553,
              "volume": 67044.815,
              "value": 11346.6402207,
              "volume_usd": 0,
              "rate": 0.46,
              "date_now": 1634566376377
            }
          },
          {
            "pair": {
              "pair_id": 26,
              "pair": "uusd_dai",
              "pair_show": "UUSD / DAI",
              "group": "crp",
              "visible": true,
              "enable": true,
              "round_deal_amount": 4,
              "round_deal_price": 4,
              "min_amount": 1,
              "min_price": 0.1,
              "max_price": 2
            },
            "data_market": {
              "open": 0.995,
              "close": 0.995,
              "high": 0.995,
              "low": 0.995,
              "volume": 58.1949,
              "value": 57.9039255,
              "volume_usd": 0,
              "rate": 0,
              "date_now": 1634566376380
            }
          },
          {
            "pair": {
              "pair_id": 27,
              "pair": "crp_uusd",
              "pair_show": "CRP / UUSD",
              "group": "crp",
              "visible": true,
              "enable": true,
              "round_deal_amount": 3,
              "round_deal_price": 4,
              "min_amount": 1,
              "min_price": 0.001,
              "max_price": 100
            },
            "data_market": {
              "open": 0.165,
              "close": 0.177,
              "high": 0.177,
              "low": 0.165,
              "volume": 2199.148,
              "value": 385.034892,
              "volume_usd": 0,
              "rate": 7.27,
              "date_now": 1634566376383
            }
          }
        ]
      }
    }
    

    Get trading pairs list

    /market/panel

    Request:

    curl --request POST \
      --url 'https://crp.is:8182/market/panel' \
      --data 'pair=crp_usdt' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
      "success": true,
      "result": {
        "book_sell": [
          {
            "price": 0.1752,
            "amount": 1555,
            "value": 272.436
          },
          {
            "price": 0.1774,
            "amount": 225.051,
            "value": 39.9240474
          },
          {
            "price": 0.1775,
            "amount": 1000,
            "value": 177.5
          },
          {
            "price": 0.18,
            "amount": 31.886,
            "value": 5.73948
          },
          {
            "price": 0.185,
            "amount": 145,
            "value": 26.825
          },
          {
            "price": 0.186,
            "amount": 3000,
            "value": 558
          },
          {
            "price": 0.193,
            "amount": 431,
            "value": 83.183
          },
          {
            "price": 0.195,
            "amount": 1263,
            "value": 246.285
          },
          {
            "price": 0.2,
            "amount": 2084.717,
            "value": 416.9434
          },
           "price": 0.2666,
            "amount": 2500,
            "value": 666.5
          },
          {
            "price": 0.27,
            "amount": 1600,
            "value": 432
          },
          {
            "price": 0.2777,
            "amount": 1000,
            "value": 277.7
          },
          {
            "price": 0.28,
            "amount": 2000,
            "value": 560
          },
          {
            "price": 0.2888,
            "amount": 1000,
            "value": 288.8
          },
          {
            "price": 0.29,
            "amount": 5000,
            "value": 1450
          },
          {
            "price": 0.2999,
            "amount": 1000,
            "value": 299.9
          },
          {
            "price": 0.3,
            "amount": 26511.389,
            "value": 7953.4167
          },
          {
            "price": 0.3089,
            "amount": 704,
            "value": 217.4656
          },
          {
            "price": 0.31,
            "amount": 3084,
            "value": 956.04
          },
          {
            "price": 0.3111,
            "amount": 1000,
            "value": 311.1
          },
          {
            "price": 0.33,
            "amount": 3738,
            "value": 1233.54
          },
          {
            "price": 0.345,
            "amount": 1738,
            "value": 599.61
          },
          {
            "price": 0.35,
            "amount": 4869,
            "value": 1704.15
          },
          {
            "price": 0.37,
            "amount": 467,
            "value": 172.79
          },
          {
            "price": 0.4,
            "amount": 8597.054,
            "value": 3438.8216
          },
          {
            "price": 0.45,
            "amount": 11500.4,
            "value": 5175.18
          },
          {
            "price": 0.5,
            "amount": 10,
            "value": 5
          },
          {
            "price": 0.7,
            "amount": 10,
            "value": 7
          },
          {
            "price": 0.8,
            "amount": 10000,
            "value": 8000
          },
          {
            "price": 0.9,
            "amount": 50,
            "value": 45
          },
          {
            "price": 1,
            "amount": 505.784,
            "value": 505.784
          },
          {
            "price": 1.56,
            "amount": 5.879,
            "value": 9.17124
          },
          {
            "price": 1.7,
            "amount": 220,
            "value": 374
          },
          {
            "price": 1.8,
            "amount": 220,
            "value": 396
          },
          {
            "price": 4.5,
            "amount": 2000,
            "value": 9000
          },
          {
            "price": 5,
            "amount": 2829.703,
            "value": 14148.515
          },
          {
            "price": 6,
            "amount": 50,
            "value": 300
          },
          {
            "price": 8,
            "amount": 50,
            "value": 400
          },
          {
            "price": 9,
            "amount": 50,
            "value": 450
          },
          {
            "price": 10,
            "amount": 50,
            "value": 500
          }
        ],
        "book_buy": [
          {
            "price": 0.17,
            "amount": 45012,
            "value": 7652.04
          },
          {
            "price": 0.1579,
            "amount": 29623,
            "value": 4677.4717
          },
          {
            "price": 0.1578,
            "amount": 3107,
            "value": 490.2846
          },
          {
            "price": 0.1577,
            "amount": 5800,
            "value": 914.66
          },
          {
            "price": 0.155,
            "amount": 52678.998,
            "value": 8165.24469
          },
          {
            "price": 0.142,
            "amount": 5,
            "value": 0.71
          },
          {
            "price": 0.141,
            "amount": 1,
            "value": 0.141
          },
          {
            "price": 0.14,
            "amount": 95,
            "value": 13.3
          },
          {
            "price": 0.136,
            "amount": 20,
            "value": 2.72
          },
          {
            "price": 0.1304,
            "amount": 4894.04,
            "value": 638.182816
          },
          {
            "price": 0.13,
            "amount": 1399,
            "value": 181.87
          },
          {
            "price": 0.12,
            "amount": 2985.149,
            "value": 358.21788
          },
          {
            "price": 0.101,
            "amount": 11,
            "value": 1.111
          },
          {
            "price": 0.1,
            "amount": 250,
            "value": 25
          },
          {
            "price": 0.0805,
            "amount": 39542,
            "value": 3183.131
          },
          {
            "price": 0.08,
            "amount": 300,
            "value": 24
          },
          {
            "price": 0.07,
            "amount": 10000,
            "value": 700
          },
          {
            "price": 0.06,
            "amount": 16,
            "value": 0.96
          },
          {
            "price": 0.02,
            "amount": 203,
            "value": 4.06
          },
          {
            "price": 0.012,
            "amount": 110,
            "value": 1.32
          },
          {
            "price": 0.01,
            "amount": 20180,
            "value": 201.8
          }
        ],
        "volumes": {
          "sell": 114909.856,
          "buy": 27236.224686
        },
        "time": 1634566427079,
        "cur": "crp",
        "ecur": "usdt",
        "pair": "crp_usdt"
      }
    }
    

    Get order book by trade pair

    Parameters:

    Parameter Requirements Type Description
    pair required string Trading Pair

    /market/curlist

    Request:

    curl --request GET \
      --url 'https://crp.is:8182/market/curlist' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
      "success": true,
      "result": {
        "crp": {
          "id": 12,
          "name": "crp",
          "fullname": "Utopia Crypton",
          "appname": "crypton",
          "icon": "crp",
          "round": 8,
          "deposit_fee": 0,
          "deposit_min": 5,
          "withdraw_fee": 0,
          "withdraw_fee_pro": 0.1,
          "withdraw_min": 5,
          "address_size": 64,
          "min_fee": 1e-8,
          "enable": true,
          "show": true
        },
        "dai": {
          "id": 16,
          "name": "dai",
          "fullname": "DAI (ERC-20)",
          "appname": "dai",
          "icon": "dai",
          "round": 8,
          "deposit_fee": 10,
          "deposit_min": 10,
          "withdraw_fee": 10,
          "withdraw_fee_pro": 0,
          "withdraw_min": 10,
          "address_size": 42,
          "min_fee": 1e-8,
          "enable": true,
          "show": true
        },
        "usdt": {
          "id": 14,
          "name": "usdt",
          "fullname": "Tether USD (TRC-20)",
          "appname": "tether",
          "icon": "usdt",
          "round": 8,
          "deposit_fee": 1,
          "deposit_min": 1,
          "withdraw_fee": 1,
          "withdraw_fee_pro": 0,
          "withdraw_min": 5,
          "address_size": 34,
          "min_fee": 1e-8,
          "enable": true,
          "show": true
        },
        "uusd": {
          "id": 17,
          "name": "uusd",
          "fullname": "Utopia USD",
          "appname": "uusd",
          "icon": "uusd",
          "round": 8,
          "deposit_fee": 0,
          "deposit_min": 1,
          "withdraw_fee": 0,
          "withdraw_fee_pro": 0.1,
          "withdraw_min": 1,
          "address_size": 64,
          "min_fee": 1e-8,
          "enable": true,
          "show": true
        }
      }
    }
    

    Get currencies list

    Orders

    /orders

    Request:

    curl --request GET \
      --url 'https://crp.is:8182/orders?status=open&task=sell' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
      "success": true,
      "result": {
        "allorders": [],
        "paginator": {
          "count": 0,
          "page": 1,
          "limit": 30
        },
        "filters": [
          "crp_usdt",
          "uusd_dai",
          "crp_uusd"
        ],
        "my_order_count": 0
      }
    }
    

    Get orders list

    Parameters:

    Parameter Requirements Type Description Values
    status optional string Order type open/close/cancel/hold
    task optional string Task buy/sell

    /orders/history

    Request:

    curl --request POST \
      --url 'https://crp.is:8182/orders/history' \
      --data 'order_id=3747944' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
        "success": true,
        "result": {
            "order": {
                "order_id": 3747944,
                "amount": 1,
                "price": 3,
                "value": 3,
                "orig_value": 3,
                "date_reg": 1527883807109,
                "task": "sell",
                "status": "open",
                "orig_amount": 1,
                "cur": "crp",
                "ecur": "usdt",
                "price_executed": 0,
                "value_executed": 0
            },
            "history": [],
            "pair": {
                "cur": "crp",
                "ecur": "usdt"
            }
        }
    }
    

    Get orders history

    Parameters:

    Parameter Requirements Type Description
    order_id required integer Order ID

    History

    /history/trade

    Request:

    curl --request GET \
      --url 'https://crp.is:8182/history/trade?pair=crp_usdt' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
      "success": true,
      "result": {
        "items": [
          {
            "record_id": "f914ea5d-32ae-4eac-a5e0-e94d55f7b4a7",
            "record_type": "buy",
            "price": 0.1752,
            "amount": 1,
            "value": 0.1752,
            "created_at": 1634566302532
          },
          {
            "record_id": "960e225d-b188-4ed4-83dc-0b95f10f5364",
            "record_type": "buy",
            "price": 0.1751,
            "amount": 88.679,
            "value": 15.5276929,
            "created_at": 1634565672831
          },
          {
            "record_id": "40406630-a5b5-46b9-be9b-3fca1542decb",
            "record_type": "sell",
            "price": 0.169,
            "amount": 8586.632,
            "value": 1451.140808,
            "created_at": 1634554947815
          },
          {
            "record_id": "1bcee356-a7ba-43b2-94f6-8b7bd23dbb1b",
            "record_type": "sell",
            "price": 0.169,
            "amount": 3000,
            "value": 507,
            "created_at": 1634551253518
          },
          {
            "record_id": "0adc95b5-bb61-49f4-bc1a-df0b5f0a4b2a",
            "record_type": "sell",
            "price": 0.169,
            "amount": 460.674,
            "value": 77.853906,
            "created_at": 1634550138853
          },
          {
            "record_id": "13de1ab7-101a-4c6a-adca-338ac7ab6ab5",
            "record_type": "sell",
            "price": 0.169,
            "amount": 2900,
            "value": 490.1,
            "created_at": 1634549356588
          },
          {
            "record_id": "b5ffa869-6395-49d5-8aab-415f1fc55f6f",
            "record_type": "sell",
            "price": 0.169,
            "amount": 10000,
            "value": 1690,
            "created_at": 1634548812735
          },
          {
            "record_id": "ef815572-fc58-4b84-ace8-f2f40f2a116c",
            "record_type": "sell",
            "price": 0.169,
            "amount": 4000,
            "value": 676,
            "created_at": 1634548756917
          },
          {
            "record_id": "b5e04fea-5892-43c3-996a-25fbfb2c6862",
            "record_type": "sell",
            "price": 0.169,
            "amount": 2000,
            "value": 338,
            "created_at": 1634548739156
          }
        ],
        "pair": {
          "cur": "crp",
          "ecur": "usdt"
        }
      }
    }
    

    Get trading history by pairs

    Parameters:

    Parameter Requirements Type Description
    pair required string Trading Pair

    /history

    Request:

    curl --request POST \
      --url 'https://crp.is:8182/history' \
      --data 'type=trade' \ 
      --cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
    

    Response:

    {
        "success": true,
        "result": {
            "items": [
                {
                    "record_type": "buy",
                    "order_id": 98457,
                    "order_user": "998dea8c-a616-48e4-890f-9c420f3431ed",
                    "price": 0.004,
                    "amount": 0.01,
                    "value": 0.00004,
                    "cur": "crp",
                    "ecur": "usdt",
                    "pair": "crp_usdt",
                    "val": "crp",
                    "val_balance": 0.498999,
                    "fee": 0.000001,
                    "created_at": 1528153037692
                },
                {
                    "record_type": "sell",
                    "order_id": 98456,
                    "order_user": "998dea8c-a616-48e4-890f-9c420f3431ed",
                    "price": 0.004,
                    "amount": 0.01,
                    "value": 0.00004,
                    "cur": "crp",
                    "ecur": "usdt",
                    "pair": "crp_usdt",
                    "val": "usdt",
                    "val_balance": 0.1000441,
                    "fee": 1e-7,
                    "created_at": 1528153037686
                }
            ]
        }
    }
    

    Get operations history

    Parameters:

    Parameter Requirements Type Description Values
    type required string History Type profile/trade/billing
    from_id optional string (uuid) Pagination offset
    record_type optional string Billing operation type (only for billing) payment/comission/withdraw or combined
    currency optional string Currency (only for billing type)