Upbit Skill
Use the
CLI binary for all Upbit REST API interactions.
Language Behavior
Detect the user's language and respond accordingly:
- Korean user: respond in Korean, use Korean terminology from (e.g., 주문, 매수, 잔고, 체결, 호가)
- English user: respond in English, use English terminology from the same glossary
- Mixed/ambiguous: follow the language of the most recent message
When explaining API fields or command output, always translate field names into the user's language using the glossary. For example, if the user asks in Korean, explain
as "매수",
as "매도",
as "보유 잔고".
Load
when translating terminology or explaining response fields.
Setup
If
is not installed or credentials are not configured, load
and follow the steps there.
Authentication
Private endpoints require credentials. Configure via the CLI (recommended):
Credentials are saved to
and automatically used for all CLI commands.
Alternatively, set via environment variables:
bash
export UPBIT_ACCESS_KEY=<your-access-key>
export UPBIT_SECRET_KEY=<your-secret-key>
Or pass inline per command:
bash
upbit <resource> <command> --access-key <key> --secret-key <secret>
Private (require auth):
,
,
,
,
,
Public (no auth):
,
,
,
,
,
Safety Rule — Write Operations
Before executing any write operation, show the full command and ask the user to type
.
Write operations:
- , , , ,
withdraws create-withdrawal
, withdraws create-krw-withdrawal
, withdraws cancel-withdrawal
- ,
deposits create-coin-address
travel-rule verify-deposit-by-txid
, travel-rule verify-deposit-by-uuid
is a dry-run — no CONFIRM needed.
Upbit Domain Concepts
Market Pair Format
- Field name:
- Format: — quote currency first, base asset second
- Delimiter: hyphen (), not slash ()
- Always uppercase
- Quote currencies: , ,
- Not or — Upbit reverses the conventional order used by most exchanges
| Market | Meaning |
|---|
| BTC priced in KRW; Upbit uses , not or |
| ETH priced in KRW |
| XRP priced in KRW |
| ETH priced in BTC |
| XRP priced in USDT |
Account Balance Fields
| Field | Description |
|---|
| Asset code (e.g., , , ) |
| Available balance (not in any open order) |
| Balance currently locked in open orders or withdrawals |
| Average purchase price (decimal string) |
| Currency is denominated in (e.g., , ) |
Order Types ()
| Description | Required | Must NOT set |
|---|
| Limit order at specified price | , | — |
| Market buy — spend a fixed quote amount | | |
| Market sell — sell a fixed base amount | | |
| Best available price (see rules below) | see below | see below |
- must be or (NOT )
- If (buy): requires , must omit
- If (sell): requires , must omit
+ conflict: these two are mutually exclusive — do not set both.
Side Values
Order States
| State | Meaning |
|---|
| Pending execution |
| Pending reservation (stop order) |
| Fully executed |
| Cancelled |
Order Fee Fields
| Field | Description |
|---|
| Total fee reserved when order was placed |
| Fee already charged (for partial fills) |
| |
| Amount locked for this order (quote currency for buys, base asset for sells) |
First-Time Order Placement
Before placing an order on an unfamiliar market, run
to confirm:
- Minimum order amount (, )
- Supported order types (, )
- Fee rates (, , , )
bash
upbit orders retrieve-chance --market "KRW-BTC"
Withdrawal — Multi-Chain Assets
For assets available on multiple networks (e.g., USDT),
is required to specify the blockchain. Use
withdraws list-coin-addresses
to see supported networks and addresses before withdrawing:
bash
upbit withdraws list-coin-addresses --currency "USDT"
Withdrawal — Secondary Address
Some assets require a secondary address (Destination Tag, Memo, etc.) in addition to the main address. Always check the registered address via
withdraws list-coin-addresses
to see if
is present before sending.
Withdrawal — Address Not Registered (withdraw_address_not_registered
)
When
withdraws create-withdrawal
returns a 400 error with
name: withdraw_address_not_registered
, the address has not been registered in the Upbit Open API withdrawal allowlist.
To register a withdrawal address, visit the allowlist management page for your environment:
After registering, run
withdraws list-coin-addresses
to confirm the address appears before retrying.
Deposit / Withdraw States
| State | Meaning |
|---|
| In progress |
| Completed |
| Cancelled |
| Rejected |
| Awaiting Travel Rule verification |
| Refund in progress |
| Refund completed |
When a deposit is in
state, use
commands to verify.
Wallet Status
returns per-asset network status:
| Meaning |
|---|
| Both deposits and withdrawals available |
| Deposits suspended |
| Withdrawals suspended |
| Both suspended |
| Not supported |
Candle Units & Limits
- Minute candles: supported units are
1, 3, 5, 10, 15, 30, 60, 240
only
- Second candles: data retention is 3 months maximum (older queries return empty array)
- : default 1, max 200 per request
Trade Pagination
- : max 500 per request
- : pass from last result to page forward
- : integer 1–7 (UTC-based day offset)
Ticker Key Fields
| Field | Description |
|---|
| Current (last) price |
| 24-hour accumulated trade value |
| 24-hour accumulated trade volume |
| , , or vs. previous day close |
| Signed absolute change (negative if falling) |
| / | 52-week range |
Price Direction Enum (, )
| value | Meaning |
|---|
| Price higher than previous close |
| Same as previous close |
| Price lower than previous close |
| value | Meaning |
|---|
| Trade initiated by a sell order |
| Trade initiated by a buy order |
Units & Formats
| Value | Unit | Format |
|---|
| Base asset quantity | Decimal string (e.g., ) |
| (limit) | Per-unit price in quote currency | Decimal string (e.g., ) |
| (market buy) | Total quote amount to spend | Decimal string (e.g., ) |
| Fee fields | Quote currency amount | Decimal string |
| Milliseconds since epoch | Integer |
| / | ISO 8601 with KST offset | String (e.g., 2024-01-01T09:00:00+09:00
) |
| UTC date | String |
| UTC time | String (24-hour) |
| Fee rates | Decimal (0.05% = ) | Decimal string |
Day boundaries (opening_price, acc_trade_price, etc.) are based on UTC 00:00, not KST.
Command Reference
When you need detailed flag information for a resource, read the corresponding reference file.
| Resource | Subcommands | Reference |
|---|
| create, test-create, retrieve, list-open, list-closed, list-by-uuids, cancel, cancel-and-new, cancel-by-uuids, cancel-open, retrieve-chance | |
| list-by-quote-currencies, list-by-trading-pairs | |
| list-minutes, list-days, list-weeks, list-months, list-years, list-seconds | |
| list, list-instruments | |
| list | |
| list | references/trading-pairs.md
|
| retrieve, list, cancel-withdrawal, create-withdrawal, create-krw-withdrawal, list-coin-addresses, retrieve-chance | |
| retrieve, list, create-coin-address, deposit-krw, list-coin-addresses, retrieve-chance, retrieve-coin-address | |
| list-vasps, verify-deposit-by-txid, verify-deposit-by-uuid | references/travel-rule.md
|
| / / | list | |
| Output & Filtering | --format, --transform, GJSON, debug, auto-paging | |
| Korean ↔ English Glossary | Term translations, field name Korean ↔ English mapping | |
| CLI Setup & Credentials | Installation, environment selection, API key setup, config set | |
For flags not listed in reference files, run:
upbit <resource> <command> --help
Environment
bash
upbit accounts list # kr (default)
upbit accounts list --environment sg # sg | id | th
upbit accounts list --base-url <url> # custom base URL