starchild-ai-agent/official-skills16 files

Upbit

|

Specification
Skill ID
starchild-ai-agent/official-skills/upbit
Publisher
starchild-ai-agent
Repository
official-skills
Installs
0
Files
16
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

starchild-ai-agent/official-skills/upbitInstalls these files
  • LICENSE.md
  • SKILL.md
  • logo.png
  • references/account.md
  • references/candles.md
  • references/deposits.md
  • references/glossary.md
  • references/orderbooks.md
  • references/orders.md
  • references/output.md
  • references/setup.md
  • references/tickers.md
  • references/trades.md
  • references/trading-pairs.md
  • references/travel-rule.md
  • references/withdraws.md

What this skill tells the agent

Upbit Skill

Use the upbit CLI binary for all Upbit REST API interactions.

⚠️ Onboarding — when credentials are missing

When UPBIT_ACCESS_KEY / UPBIT_SECRET_KEY are not set, or an authenticated command returns 401:

In a single turn, do ALL of the following in this exact order:

  1. Call bash("curl -s https://api.ipify.org") to get the outbound IP.
  2. Write the setup instructions below in your reply text (substitute <ip> with the real IP from step 1):

Step 1 — Allowlist this IP on Upbit

Upbit only accepts API calls from IP addresses you explicitly allow. Add this IP:

<ip>

Step 2 — Create an API key

  1. Log in to upbit.com → profile → API 관리 (API Management)
  2. Click API 키 발급 (Issue API Key)
  3. When prompted for an IP, paste <ip>
  4. Enable scopes:
  • 자산조회 (View assets) — always required
  • 주문조회 (View orders) — required
  • 주문생성 (Place orders) — required to trade
  • 출금 (Withdraw) — only if you want withdrawal support
  1. Complete 2FA + email verification, then copy your Access Key and Secret Key

Step 3 — Enter your keys

Enter your Access Key and Secret Key in the secure input card below.


Language Behavior

Detect the user's language and respond accordingly:

  • Korean user: respond in Korean, use Korean terminology from references/glossary.md (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 bid as "매수", ask as "매도", balance as "보유 잔고".

Load references/glossary.md when translating terminology or explaining response fields.

Setup

If upbit is not installed or credentials are not configured, load references/setup.md and follow the steps there.

Check if upbit is available:

upbit --version

Authentication

Private endpoints require credentials. Configure via the CLI (recommended):

upbit config set

Credentials are saved to ~/.upbit/config and automatically used for all CLI commands.

Alternatively, set via environment variables:

export UPBIT_ACCESS_KEY=<your-access-key>
export UPBIT_SECRET_KEY=<your-secret-key>

Or pass inline per command:

upbit <resource> <command> --access-key <key> --secret-key <secret>

Private (require auth): accounts, api-keys, orders, withdraws, deposits, travel-rule, wallet-status Public (no auth): tickers, orderbooks, trades, candles, trading-pairs

Safety Rule — Write Operations

Before executing any write operation, show the full command and ask the user to type CONFIRM.

Write operations:

  • orders create, orders cancel, orders cancel-and-new, orders cancel-by-uuids, orders cancel-open
  • withdraws create-withdrawal, withdraws create-krw-withdrawal, withdraws cancel-withdrawal
  • deposits deposit-krw, deposits create-coin-address
  • travel-rule verify-deposit-by-txid, travel-rule verify-deposit-by-uuid

orders test-create is a dry-run — no CONFIRM needed.

Upbit Domain Concepts

Market Pair Format

  • Field name: market
  • Format: {QUOTE}-{BASE} — quote currency first, base asset second
  • Delimiter: hyphen (-), not slash (/)
  • Always uppercase
  • Quote currencies: KRW, BTC, USDT
  • Not {BASE}-{QUOTE} or {BASE}/{QUOTE} — Upbit reverses the conventional order used by most exchanges
MarketMeaning
KRW-BTCBTC priced in KRW; Upbit uses KRW-BTC, not BTC/KRW or BTC-KRW
KRW-ETHETH priced in KRW
KRW-XRPXRP priced in KRW
BTC-ETHETH priced in BTC
USDT-XRPXRP priced in USDT

Account Balance Fields

Each entry from accounts list:

FieldDescription
currencyAsset code (e.g., KRW, BTC, ETH)
balanceAvailable balance (not in any open order)
lockedBalance currently locked in open orders or withdrawals
avg_buy_priceAverage purchase price (decimal string)
unit_currencyCurrency avg_buy_price is denominated in (e.g., KRW, BTC)

Total holdings = balance + locked

Order Types (ord_type)

ord_typeDescriptionRequiredMust NOT set
limitLimit order at specified priceprice, volume—
priceMarket buy — spend a fixed quote amountpricevolume
marketMarket sell — sell a fixed base amountvolumeprice
bestBest available price (see rules below)see belowsee below

`best` order rules:

  • time_in_force must be ioc or fok (NOT post_only)
  • If side=bid (buy): requires price, must omit volume
  • If side=ask (sell): requires volume, must omit price

`post_only` + `smp_type` conflict: these two are mutually exclusive — do not set both.

Side Values

sideMeaning
bidBuy
askSell

Order States

StateMeaning
waitPending execution
watchPending reservation (stop order)
doneFully executed
cancelCancelled

Order Fee Fields

FieldDescription
reserved_feeTotal fee reserved when order was placed
paid_feeFee already charged (for partial fills)
remaining_feereserved_fee - paid_fee
lockedAmount 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 orders retrieve-chance to confirm:

  • Minimum order amount (bid.min_total, ask.min_total)
  • Supported order types (bid_types, ask_types)
  • Fee rates (bid_fee, ask_fee, maker_bid_fee, maker_ask_fee)
upbit orders retrieve-chance --market "KRW-BTC"

Withdrawal — Multi-Chain Assets

For assets available on multiple networks (e.g., USDT), net_type is required to specify the blockchain. Use withdraws list-coin-addresses to see supported networks and addresses before withdrawing:

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 secondary_address 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:

EnvironmentURL
KRhttps://www.upbit.com/mypage/open_api_management/withdraw_access_register
SGhttps://sg.upbit.com/mypage/open_api_management/withdraw_access_register
IDhttps://id.upbit.com/mypage/open_api_management/withdraw_access_register
THhttps://th.upbit.com/mypage/open_api_management/withdraw_access_register

After registering, run withdraws list-coin-addresses to confirm the address appears before retrying.

Deposit / Withdraw States

StateMeaning
PROCESSINGIn progress
ACCEPTEDCompleted
CANCELLEDCancelled
REJECTEDRejected
TRAVEL_RULE_SUSPECTEDAwaiting Travel Rule verification
REFUNDINGRefund in progress
REFUNDEDRefund completed

When a deposit is in TRAVEL_RULE_SUSPECTED state, use travel-rule commands to verify.

Wallet Status

wallet-status list returns per-asset network status:

wallet_stateMeaning
workingBoth deposits and withdrawals available

Use this skill in a project

Open any RiverX project, search the Skills panel for starchild-ai-agent/official-skills/upbit, and install it in one click.

Use this skill