Auth
/user/login
Request:
curl --request POST \
--url 'https://crp.is:8182/user/login' \
--data 'PublicKey=FF6486D362C7E1033922771CF2D4F4B7969982F5B960BC5CB374BA978D703700&password=securepass&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/ticker
Request:
curl --request GET \
--url 'https://crp.is:8182/market/ticker' \
--data '' \
--cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
Response:
{
"success": true,
"result": [
{
"pair": "btc_usdt",
"cur": "btc",
"ecur": "usdt",
"base_id": 19,
"quote_id": 14,
"last_price": 63949.99,
"quote_volume": 53295.1795314,
"base_volume": 0.82691,
"ack": 64028.66,
"bid": 63841,
"enable": true
},
{
"pair": "xmr_usdt",
"cur": "xmr",
"ecur": "usdt",
"base_id": 18,
"quote_id": 14,
"last_price": 161.56,
"quote_volume": 12092.93503,
"base_volume": 75.153,
"ack": 161.34,
"bid": 161.13,
"enable": true
},
{
"pair": "crp_usdt",
"cur": "crp",
"ecur": "usdt",
"base_id": 12,
"quote_id": 14,
"last_price": 0.4056,
"quote_volume": 178833.6460564,
"base_volume": 439778.451,
"ack": 0.4062,
"bid": 0.4054,
"enable": true
},
{
"pair": "uusd_dai",
"cur": "uusd",
"ecur": "dai",
"base_id": 17,
"quote_id": 16,
"last_price": 1.01,
"quote_volume": 0,
"base_volume": 0,
"ack": 1.01,
"bid": 0,
"enable": true
},
{
"pair": "crp_uusd",
"cur": "crp",
"ecur": "uusd",
"base_id": 12,
"quote_id": 17,
"last_price": 0.4,
"quote_volume": 48.752587,
"base_volume": 121.640978,
"ack": 0.4397,
"bid": 0.4,
"enable": true
},
{
"pair": "uusd_usdt",
"cur": "uusd",
"ecur": "usdt",
"base_id": 17,
"quote_id": 14,
"last_price": 1.0047,
"quote_volume": 11932.2676161,
"base_volume": 11939.746,
"ack": 1.0047,
"bid": 0.996,
"enable": true
}
]
}
Ticker
/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/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
},
],
"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
}
],
"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=billing&record_type=payment,withdraw¤cy=crp&compress_fee=true' \
--cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
Response:
{
"success": true,
"result": {
"items": [
{
"record_type": "withdraw",
"cur": "crp",
"amount": 1,
"balance": 168.829674,
"payment_id": 1078,
"tx_id": "06AMVUDIUZM4E",
"status": "success",
"address": "25AF52D024749A053E4105B2AC5C2B10FC623D5DA14DE102BA6114213722248C",
"created_at": 1719833421559,
"aml": 0,
"fee": 0.001
},
{
"record_type": "payment",
"cur": "crp",
"amount": 4.995,
"balance": 169.829674,
"payment_id": 1278,
"tx_id": "02GRLO7DF8W71",
"status": "paid",
"address": "",
"created_at": 1719581830783,
"aml": 0,
"fee": 0
},
]
}
}
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) | |
compress_fee | optional | bool | If the value is false: The commission entry is inserted separately on a separate line (only for billing type) | true/false |
Billing
/billing/addresses/new
Request:
curl --request POST \
--url 'https://crp.is:8182/billing/addresses/new' \
--data 'cur=uusd' \
--cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
Response:
{
"success": true,
"result": {
"address": "0DC0051A5F51A60768726B5AAC3821E1DFF1BC565ED80F6B3A9257217FED0FAC",
"destination_tag": "100027",
"currency": {
"id": 31,
"name": "uusd",
"fullname": "UUSD",
"appname": "uusd",
"icon": "uusd",
"round": 8,
"wallet": "utopia",
"deposit_fee": 0,
"deposit_min": 1,
"withdraw_fee": 0,
"withdraw_fee_pro": 0.1,
"withdraw_min": 0.1,
"address_size": 64,
"min_fee": 1e-8,
"enable": true,
"show": true
}
}
}
Get new address for deposit
Parameters:
Parameter | Requirements | Type | Description |
---|---|---|---|
cur | required | string | Currency |
Some currencies have not only an ADDRESS but also a DESTINATION TAG. (comment/memo/tag)
/billing/withdraw
Request:
curl --request POST \
--url 'https://crp.is:8182/billing/withdraw' \
--data 'cur=crp&amount=1.01&to=25AF52D024749A053E4105B2AC5C2B10FC623D5DA14DE102BA6114213722248C&pin=&destination_tag=10000' \
--cookie 'auth_token=132353c8-f49e-4a1c-9c17-cc348b0421c5'
Response:
{
"success": true,
"result": {
"updated_balance": 198.512171,
"status": "pending",
"payment_id": 93830
}
}
Withdraw
Parameters:
Parameter | Requirements | Type | Description |
---|---|---|---|
cur | required | string | Currency |
amount | required | float | Amount |
to | required | string | Address |
pin | optional | integer | 2fa PIN |
destination_tag | optional | string | Memo / Comment / Destination tag |
For some currencies, the STATUS and TXID/HASH will need to be checked against history or use /billing/withdraw/check request.
/billing/withdraw/check
Request:
curl --request GET \
--url 'https://crp.is:8182/billing/withdraw/check?payment_id=93830' \
--cookie auth_token=b4819319-4556-4dab-1acb-88232c5f99ba
Response:
{
"success": true,
"result": {
"payment_id": 93830,
"user_id": "39ce1d98-b4f9-4a7a-a03f-62131cdf9951",
"hash": "2BD0B85C5BE657C3DA56B6DFCA0CB7A20E4475A894DD07E8492F989585714E01",
"status": "success",
"created_at": "2024-08-15T09:29:28.655423Z",
"updated_at": "2024-08-15T09:29:35.339252Z"
}
}
Сhecking withdrawal
Parameters:
Parameter | Requirements | Type | Description |
---|---|---|---|
payment_id | required | integer | Payment ID |
auth_token | required | uuid | Session ID |
For some currencies, the STATUS and TXID/HASH