Get currency list
POST getCurrencies
Get enabled currencies
note
Cripto InterCambio can disable and enable any currency at any time and the response list will reflect the change.
HTTP request
https://api.criptointercambio.com/v2/#getCurrencies
Request
- Request
- Payload
- cURL
Header parameters
Name | Type | Required | Description |
---|---|---|---|
X-Api-Key | string | true | Your API key (SHA256 from Public Key) |
X-Api-Signature | string | true | The query's serialized body signed by your private key according to the RSA-SHA256 method. |
Body parameters
Name | Type | Required | Description |
---|---|---|---|
jsonrpc | string | true | JSON-RPC version. |
id | string | true | Client's custom ID. |
method | string | true | API method name. |
params | object | false | Request parameters. |
application/json
{
"jsonrpc": "2.0",
"id": "test",
"method": "getCurrencies",
"params": {}
}
curl --location --request POST 'https://api.criptointercambio.com/v2' \
--header 'X-Api-Key: {{apiKey}}' \
--header 'X-Api-Signature: {{sign}}' \
--data-raw '{
"id": "test",
"jsonrpc": "2.0",
"method": "getCurrencies",
"params": {}
}'
Response
- Example
- Success
- Errors
Sample response
application/json
{
"jsonrpc": "2.0",
"id": "test",
"result": [
"btc",
"ltc",
"eth",
"xrp",
"xem",
"lsk",
"xmr",
"zec"
]
}
Response params
Name | Type | Description |
---|---|---|
jsonrpc | string | JSON-RPC version. |
id | string | Client's custom ID. |
result | array of strings | Currency tickers. |
Error schema
Name | Type | Description |
---|---|---|
jsonrpc | string | JSON-RPC version. |
id | string | Client's custom ID. |
error | object | Possible errors. |
»code | integer | Error code. |
»message | string | Error message. |
Error codes
Code | Message | Description |
---|---|---|
-32600 | Error: You reached requests limit {limit} rps | You have been sending more than 10 requests per second. |
-32603 | Internal Error or Error | Most likely, the problem is on our side. Further investigation is required. |