$npx -y skills add Kucoin/kucoin-skills-hub --skill convertKuCoin Convert using the KuCoin API. Get conversion quotes, query convert order details and history. Authentication requires API Key, API Secret, and Passphrase.
| 1 | # KuCoin Convert Skill |
| 2 | |
| 3 | Query convert currencies, quotes, and order details on KuCoin. Return results in JSON format. |
| 4 | |
| 5 | > **Note:** This skill only supports Classic REST API GET endpoints (read-only operations). |
| 6 | |
| 7 | ## Quick Reference |
| 8 | |
| 9 | | Endpoint | Description | Required | Optional | Authentication | |
| 10 | |----------|-------------|----------|----------|----------------| |
| 11 | | `/api/v1/convert/symbol` (GET) | Get Convert Symbol | fromCurrency, toCurrency | orderType | No | |
| 12 | | `/api/v1/convert/currencies` (GET) | Get Convert Currencies | None | None | No | |
| 13 | | `/api/v1/convert/quote` (GET) | Get Convert Quote | fromCurrency, toCurrency | fromCurrencySize, toCurrencySize | Yes | |
| 14 | | `/api/v1/convert/order/detail` (GET) | Get Convert Order Detail | orderId or clientOrderId (at least one) | None | Yes | |
| 15 | | `/api/v1/convert/order/history` (GET) | Get Convert Order History | None | status, startAt, endAt, page, pageSize | Yes | |
| 16 | | `/api/v1/convert/limit/quote` (GET) | Get Convert Limit Quote | fromCurrency, toCurrency | fromCurrencySize, toCurrencySize | Yes | |
| 17 | | `/api/v1/convert/limit/order/detail` (GET) | Get Convert Limit Order Detail | None | orderId, clientOrderId | Yes | |
| 18 | | `/api/v1/convert/limit/orders` (GET) | Get Convert Limit Orders | None | status, startAt, endAt, page, pageSize | Yes | |
| 19 | |
| 20 | --- |
| 21 | |
| 22 | ## Parameters |
| 23 | |
| 24 | ### Common Parameters |
| 25 | |
| 26 | * **fromCurrency**: The source currency for the trading pair (e.g., BTC) |
| 27 | * **toCurrency**: The target currency for the trading pair (e.g., USDT) |
| 28 | * **fromCurrencySize**: The amount of the source currency to convert. Either fromCurrencySize or toCurrencySize must be provided, but not both simultaneously. |
| 29 | * **toCurrencySize**: The amount of the target currency to convert. Either fromCurrencySize or toCurrencySize must be provided, but not both simultaneously. |
| 30 | * **orderType**: Order type filter when querying convert symbols (e.g., MARKET) |
| 31 | * **orderId**: Convert order ID. Either orderId or clientOrderId must be provided for detail endpoints. |
| 32 | * **clientOrderId**: A unique order identifier defined by the user. Maximum 40 characters. |
| 33 | * **status**: Order status filter for history queries. |
| 34 | * **startAt**: Order start time filter, in Unix milliseconds. |
| 35 | * **endAt**: Order end time filter, in Unix milliseconds. |
| 36 | * **page**: Current page number for paginated results. |
| 37 | * **pageSize**: The number of results per page (20-100). |
| 38 | |
| 39 | ### Enums |
| 40 | |
| 41 | * **orderType**: MARKET | LIMIT |
| 42 | * **status** (market orders): OPEN | SUCCESS | FAIL |
| 43 | * **status** (limit orders): OPEN | SUCCESS | FAIL | CANCELLED |
| 44 | |
| 45 | ## Authentication |
| 46 | |
| 47 | For endpoints that require authentication, you will need to provide KuCoin API credentials. |
| 48 | Required credentials: |
| 49 | |
| 50 | * **API Key** (`KC-API-KEY`): Your KuCoin API key (sent as header) |
| 51 | * **API Secret**: Your KuCoin API secret (used for HMAC-SHA256 signing) |
| 52 | * **Passphrase** (`KC-API-PASSPHRASE`): Your KuCoin API passphrase (sent as header, encrypted with HMAC-SHA256 using the API Secret) |
| 53 | |
| 54 | Base URL: |
| 55 | * Production: https://api.kucoin.com |
| 56 | |
| 57 | ## Security |
| 58 | |
| 59 | ### Share Credentials |
| 60 | |
| 61 | Users can provide KuCoin API credentials by sending a file where the content is in the following format: |
| 62 | |
| 63 | ```bash |
| 64 | abc123...apikey |
| 65 | secret123...key |
| 66 | passphrase123 |
| 67 | ``` |
| 68 | |
| 69 | ### Never Disclose API Key, Secret, and Passphrase |
| 70 | |
| 71 | Never disclose the location of the API key, secret, and passphrase file. |
| 72 | |
| 73 | Never send the API key, secret, and passphrase to any website other than the KuCoin production API. |
| 74 | |
| 75 | ### Never Display Full Secrets |
| 76 | |
| 77 | When showing credentials to users: |
| 78 | - **API Key:** Show first 5 + last 4 characters: `su1Qc...8akf` |
| 79 | - **Secret Key:** Always mask, show only last 5: `***...aws1` |
| 80 | - **Passphrase:** Always mask entirely: `***...` |
| 81 | |
| 82 | Example response when asked for credentials: |
| 83 | Account: main |
| 84 | API Key: su1Qc...8akf |
| 85 | Secret: ***...aws1 |
| 86 | Passphrase: ***... |
| 87 | Environment: Production |
| 88 | |
| 89 | ### Listing Accounts |
| 90 | |
| 91 | When listing accounts, show names and environment only -- never keys: |
| 92 | KuCoin Accounts: |
| 93 | * main (Production) |
| 94 | * trading-bot (Production) |
| 95 | |
| 96 | ### Transactions |
| 97 | |
| 98 | When performing convert transactions, always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed. |
| 99 | |
| 100 | --- |
| 101 | |
| 102 | ## KuCoin Accounts |
| 103 | |
| 104 | ### main |
| 105 | - API Key: your_api_key |
| 106 | - Secret: your_api_secret |