Kucoin official spot

From jiayaoqijia/cryptoskill · View interactive version

Kucoin official spot is an AI agent skill from the GitHub repository jiayaoqijia/cryptoskill. KuCoin Spot trading using the KuCoin API. Authentication requires API Key, API Secret, and Passphrase.

How to use this skill

Skill file

KuCoin Spot Skill

Spot trading on KuCoin using authenticated API endpoints. Requires API Key, API Secret, and Passphrase for authenticated endpoints. Return the result in JSON format.

Note: This skill only supports Classic REST API GET endpoints (read-only operations).

Quick Reference

Classic API - Spot Market Data

| Endpoint | Description | Required | Optional | Authentication |

|----------|-------------|----------|----------|----------------|

| /api/v3/announcements (GET) | Get announcements | None | currentPage, pageSize, annType, lang, startTime, endTime | No |

| /api/v3/currencies/{currency} (GET) | Get currency detail | currency (path) | chain | No |

| /api/v3/currencies (GET) | Get all currencies | None | None | No |

| /api/v2/symbols/{symbol} (GET) | Get symbol detail | symbol (path) | None | No |

| /api/v2/symbols (GET) | Get all symbols | None | market | No |

| /api/v1/market/orderbook/level1 (GET) | Get ticker (best bid/ask) | symbol | None | No |

| /api/v1/market/allTickers (GET) | Get all tickers | None | None | No |

| /api/v1/market/histories (GET) | Get trade history | symbol | None | No |

| /api/v1/market/candles (GET) | Get klines | symbol, type | startAt (sec), endAt (sec) | No |

| /api/v1/market/orderbook/level2_{size} (GET) | Get part orderbook | size (path: 20, 100), symbol | None | No |

| /api/v3/market/orderbook/level2 (GET) | Get full orderbook | symbol | None | Yes |

| /api/v1/market/orderbook/callauction/level2_{size} (GET) | Get call auction part orderbook | size (path: 20, 100), symbol | None | No |

| /api/v1/market/callauctionData (GET) | Get call auction info | symbol | None | No |

| /api/v1/prices (GET) | Get fiat price | None | base, currencies | No |

| /api/v1/market/stats (GET) | Get 24hr stats | symbol | None | No |

| /api/v1/markets (GET) | Get market list | None | None | No |

Classic API - Spot HF Order Queries

| Endpoint | Description | Required | Optional | Authentication |

|----------|-------------|----------|----------|----------------|

| /api/v1/hf/orders/{orderId} (GET) | Get order by orderId | orderId (path), symbol | None | Yes |

| /api/v1/hf/orders/client-order/{clientOid} (GET) | Get order by clientOid | clientOid (path), symbol | None | Yes |

| /api/v1/hf/orders/active/symbols (GET) | Get symbols with open orders | None | None | Yes |

| /api/v1/hf/orders/active (GET) | Get open orders | symbol | None | Yes |

| /api/v1/hf/orders/active/page (GET) | Get open orders (paginated) | symbol | pageNum, pageSize | Yes |

| /api/v1/hf/orders/done (GET) | Get closed orders | symbol | side, type, lastId, limit, startAt, endAt | Yes |

| /api/v1/hf/fills (GET) | Get trade history | symbol | orderId, side, type, lastId, limit, startAt, endAt | Yes |

| /api/v1/hf/orders/dead-cancel-all/query (GET) | Get DCP settings | None | None | Yes |

Classic API - Stop Order Queries

| Endpoint | Description | Required | Optional | Authentication |

|----------|-------------|----------|----------|----------------|

| /api/v1/stop-order (GET) | Get stop orders list | None | symbol, side, type, tradeType, startAt, endAt, currentPage, orderIds, pageSize, stop | Yes |

| /api/v1/stop-order/{orderId} (GET) | Get stop order by orderId | orderId (path) | None | Yes |

| /api/v1/stop-order/queryOrderByClientOid (GET) | Get stop order by clientOid | clientOid | symbol | Yes |

Classic API - OCO Order Queries

| Endpoint | Description | Required | Optional | Authentication |

|----------|-------------|----------|----------|----------------|

| /api/v3/oco/order/{orderId} (GET) | Get OCO order by orderId | orderId (path) | None | Yes |

| /api/v3/oco/client-order/{clientOid} (GET) | Get OCO order by clientOid | clientOid (path) | None | Yes |

| /api/v3/oco/orders (GET) | Get OCO order list | None | symbol, startAt, endAt, orderIds, pageSize, currentPage | Yes |

| /api/v3/oco/order/details/{orderId} (GET) | Get OCO order detail by orderId | orderId (path) | None | Yes |


Parameters

Common Parameters

Enums

Authentication

For endpoints that require authentication, you will need to provide KuCoin API credentials.

Required credentials:

Base URL:

Security

Share Credentials

Users can provide KuCoin API credentials by sending a file where the content is in the following format:

abc123...xyz
secret123...key
passphrase123...abc

Never Disclose API Key and Secret

Never disclose the location of the API key, secret, and passphrase file.

Never send the API key, secret, and passphrase to any website other than Mainnet.

Never Display Full Secrets

When showing credentials to users:

Example response when asked for credentials:

Account: main

API Key: su1Qc...8akf

Secret: ***...aws1

Passphrase: ***...

Environment: Mainnet

Listing Accounts

When listing accounts, show names and environment only -- never keys:

KuCoin Accounts:

Transactions in Mainnet

When performing transactions in mainnet, always confirm with the user before proceeding by asking them to write "CONFIRM" to proceed.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.