# Kimchi Premium Tracker (`bronzed_noise/kimchi-premium-tracker`) Actor

Track crypto price differences between Korean exchanges (Upbit, Bithumb) and Binance. Calculate Kimchi Premium percentage in real-time.

- **URL**: https://apify.com/bronzed\_noise/kimchi-premium-tracker.md
- **Developed by:** [Hojun Lee](https://apify.com/bronzed_noise) (community)
- **Categories:** E-commerce, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Kimchi Premium Tracker

Track the **Kimchi Premium** — the price difference between Korean crypto exchanges (Upbit, Bithumb) and global exchanges (Binance) — in real time.

### What is the Kimchi Premium?

The Kimchi Premium refers to the phenomenon where cryptocurrency prices on South Korean exchanges trade at a premium (or sometimes discount) compared to global exchanges. This premium is driven by capital controls, high domestic demand, and limited arbitrage pathways.

### Features

- **200+ tokens tracked** — auto-detects all KRW-listed coins on Upbit
- **Real-time price comparison** across Upbit, Bithumb, and Binance
- **Premium calculation** with automatic USD/KRW exchange rate conversion
- **Reverse premium detection** — alerts when Korean prices dip below global prices
- **Upbit-Bithumb spread** — compare prices between Korean exchanges
- **Threshold filtering** — only show tokens above a certain premium %
- **Sorting options** — by premium (high/low) or alphabetically
- **Fallback price sources** — CoinGecko backup if Binance is unavailable

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `autoDetectAll` | boolean | `true` | Track all KRW-listed coins on Upbit (~240 tokens) |
| `symbols` | string[] | `[]` | Specific tokens to track (only used when autoDetectAll is off) |
| `includeUpbit` | boolean | `true` | Include Upbit exchange |
| `includeBithumb` | boolean | `true` | Include Bithumb exchange |
| `premiumThreshold` | number | `0` | Minimum absolute premium % to include |
| `sortBy` | string | `premium_desc` | Sort: `premium_desc`, `premium_asc`, `symbol_asc` |

### Output

Each result in the dataset contains:

| Field | Description |
|-------|-------------|
| `symbol` | Token symbol (e.g., BTC) |
| `binance_usdt` | Binance USDT price |
| `binance_krw_equivalent` | Binance price converted to KRW |
| `upbit_krw` | Upbit KRW price |
| `upbit_premium_pct` | Upbit premium percentage |
| `bithumb_krw` | Bithumb KRW price |
| `bithumb_premium_pct` | Bithumb premium percentage |
| `upbit_bithumb_spread_pct` | Price difference between Upbit and Bithumb |
| `usd_krw_rate` | Exchange rate used |
| `timestamp` | UTC timestamp |

A **SUMMARY** key-value record is also saved with aggregate stats (average premium, top tokens, etc.).

### Pricing

This Actor uses Pay-Per-Event (PPE) pricing:
- **$0.003 per token tracked** (e.g., default full scan of ~200 tokens ≈ $0.60 per run)

### Use Cases

- **Arbitrage monitoring** — spot premium spikes for arbitrage opportunities
- **Market sentiment** — Kimchi Premium is a popular indicator of Korean retail FOMO
- **Research & analytics** — track historical premium trends
- **Trading signals** — combine with other indicators for entry/exit decisions

### Example Output

```json
{
    "symbol": "BTC",
    "binance_usdt": 67500.00,
    "binance_krw_equivalent": 92340000,
    "upbit_krw": 95200000,
    "upbit_premium_pct": 3.10,
    "upbit_is_reverse": false,
    "bithumb_krw": 95050000,
    "bithumb_premium_pct": 2.94,
    "bithumb_is_reverse": false,
    "upbit_bithumb_spread_pct": 0.16,
    "usd_krw_rate": 1368.0,
    "timestamp": "2026-03-28T23:00:00+00:00"
}
````

### Notes

- All exchange APIs are public (no API key required)
- Exchange rate sourced from open.er-api.com with fallback to exchangerate-api.com
- Rate limits are respected automatically
- Prices are snapshot at the time of the run (not streaming)
- Bithumb may be unavailable during maintenance hours (KST 01:00-08:00)
- Tokens with unrealistic premiums (>15%) are filtered as likely symbol mismatches

### Disclaimer

This Actor is unofficial and not affiliated with Upbit, Bithumb, or Binance. Data is provided as-is for informational purposes.

# Actor input Schema

## `autoDetectAll` (type: `boolean`):

Automatically detect and track all KRW-listed coins on Upbit (~240 tokens). Overrides the symbols list below.

## `symbols` (type: `array`):

Specific token symbols to track (e.g., BTC, ETH, XRP). Only used when 'Track All Coins' is off.

## `includeUpbit` (type: `boolean`):

Include Upbit exchange in comparison.

## `includeBithumb` (type: `boolean`):

Include Bithumb exchange in comparison.

## `premiumThreshold` (type: `number`):

Only include tokens with absolute premium above this threshold. Set to 0 to include all.

## `sortBy` (type: `string`):

Sort results by premium percentage.

## Actor input object example

```json
{
  "autoDetectAll": true,
  "symbols": [
    "BTC",
    "ETH",
    "XRP",
    "SOL",
    "DOGE"
  ],
  "includeUpbit": true,
  "includeBithumb": true,
  "premiumThreshold": 0,
  "sortBy": "premium_desc"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "symbols": [
        "BTC",
        "ETH",
        "XRP",
        "SOL",
        "DOGE"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bronzed_noise/kimchi-premium-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "symbols": [
        "BTC",
        "ETH",
        "XRP",
        "SOL",
        "DOGE",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("bronzed_noise/kimchi-premium-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "symbols": [
    "BTC",
    "ETH",
    "XRP",
    "SOL",
    "DOGE"
  ]
}' |
apify call bronzed_noise/kimchi-premium-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=bronzed_noise/kimchi-premium-tracker",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Kimchi Premium Tracker",
        "description": "Track crypto price differences between Korean exchanges (Upbit, Bithumb) and Binance. Calculate Kimchi Premium percentage in real-time.",
        "version": "0.1",
        "x-build-id": "0GFinMbhSs52F9elp"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/bronzed_noise~kimchi-premium-tracker/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-bronzed_noise-kimchi-premium-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/bronzed_noise~kimchi-premium-tracker/runs": {
            "post": {
                "operationId": "runs-sync-bronzed_noise-kimchi-premium-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/bronzed_noise~kimchi-premium-tracker/run-sync": {
            "post": {
                "operationId": "run-sync-bronzed_noise-kimchi-premium-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "autoDetectAll": {
                        "title": "Track All Coins",
                        "type": "boolean",
                        "description": "Automatically detect and track all KRW-listed coins on Upbit (~240 tokens). Overrides the symbols list below.",
                        "default": true
                    },
                    "symbols": {
                        "title": "Token Symbols (if Track All Coins is off)",
                        "type": "array",
                        "description": "Specific token symbols to track (e.g., BTC, ETH, XRP). Only used when 'Track All Coins' is off.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeUpbit": {
                        "title": "Include Upbit",
                        "type": "boolean",
                        "description": "Include Upbit exchange in comparison.",
                        "default": true
                    },
                    "includeBithumb": {
                        "title": "Include Bithumb",
                        "type": "boolean",
                        "description": "Include Bithumb exchange in comparison.",
                        "default": true
                    },
                    "premiumThreshold": {
                        "title": "Premium Threshold (%)",
                        "minimum": 0,
                        "maximum": 100,
                        "type": "number",
                        "description": "Only include tokens with absolute premium above this threshold. Set to 0 to include all.",
                        "default": 0
                    },
                    "sortBy": {
                        "title": "Sort By",
                        "enum": [
                            "premium_desc",
                            "premium_asc",
                            "symbol_asc"
                        ],
                        "type": "string",
                        "description": "Sort results by premium percentage.",
                        "default": "premium_desc"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
