Finding Alpha in the Kimchi Premium: Trading the Gap as a Signal with the DataMaxi+ API
Reframe the Kimchi Premium as a quantitative signal instead of arbitrage. Three branches of alpha — cross-sectional outliers, premium velocity, and mean reversion — with runnable Python on the DataMaxi+ Premium API.
Audience: retail quants and algo traders who work with data in Python Tools: DataMaxi+ Premium API (
/api/v1/premium), Python SDK Format: a single long-form piece
Intro: from a number you watch to data you use
Anyone who follows the Korean market watches the Kimchi Premium (the "kimp"). How much pricier Upbit/Bithumb are versus Binance is plastered across every community widget. But most people consume the kimp as a mood gauge you eyeball — "there's a 3% kimp right now" — and stop there.
This article starts from a different premise. The kimp is a quantifiable time series, it has a cross-sectional distribution across tokens, and it has a term structure (5 minutes ago → 24 hours ago). In other words, it is raw material you can refine into a signal. Here we pull the kimp from the DataMaxi+ Premium API and lay out three concrete ways to use it not for direct arbitrage but as a signal — with code.
First, let's clear up the most common misconception.
1. The "kimp = free arbitrage" myth
The first time you see the kimp, everyone thinks the same thing: just buy cheap on Binance and sell dear on Upbit, right?
Reality says otherwise. There are structural barriers that block direct kimp arbitrage in Korea.
- Capital controls and FX regulation: the path to move KRW out of the country and back in is institutionally narrow.
- Exchange deposit/withdrawal KYC and the Travel Rule: KRW-market deposits and withdrawals must clear real-name accounts and Travel Rule checks, and coin transfers themselves are often restricted.
- Non-transferable tokens: tokens whose deposits/withdrawals are blocked outright (transferable=false) cannot have their kimp closed at all.
So a 5% surface kimp is rarely a 5% profit opportunity. Approaches that try to capture the surface spread mostly fail. The moment you accept that limit, the real usefulness of the kimp comes into view.
The key reframe The alpha in the kimp is not in "closing the spread directly" but in using it as a signal that measures Korean retail demand and sentiment. A widening kimp means Korean buying pressure has grown stronger relative to global — and that carries information about short-term price moves.
2. The data we'll use: the Premium endpoint in one pass
DataMaxi+'s /api/v1/premium endpoint returns the price difference for each exchange pair in a unified format. Distilling to just the core fields we use for kimp analysis:
| Field | Meaning |
|---|---|
sb |
Base token on the source exchange (e.g. BTC) |
se / te |
Source / target exchange name (e.g. upbit / binance) |
sp / tp |
Current price on the source / target exchange (in the requested currency) |
pdp |
Current kimp (source-vs-target price diff, as a ratio) |
pdp5m ~ pdp24h |
The kimp as of 5m / 15m / 30m / 1h / 4h / 24h ago |
sv / tv |
24h traded value on the source / target exchange |
sad2p / tbd2p |
±2% order-book depth on the source/target (actually fillable size) |
t |
Transferable or not |
The
pdpfamily comes back as a ratio — i.e.0.02means a 2% kimp. Just keep that in mind when working with thresholds.
What stands out here is pdp5m ~ pdp24h. A single call carries the entire term structure of the kimp. You can compute "current kimp vs. the kimp 30 minutes ago" right away without warehousing any history yourself — and that is the starting point for turning it into a signal.
3. Setup
pip install datamaxi pandas requests
Get an API key at datamaxiplus.com/my/maxi (login required). Don't hardcode the key — keep it in an environment variable.
import os
import requests
import pandas as pd
API_KEY = os.environ["DATAMAXI_API_KEY"]
BASE = "https://api.datamaxiplus.com"
HEADERS = {"X-DTMX-APIKEY": API_KEY}
/api/v1/premium responds per token as {"detail": {...}} and returns up to 100 rows (limit) per call. To control the exchange/currency filters precisely via query parameters and to collect every token, we add a small helper that calls the REST endpoint directly.
def fetch_premium(source_exchange, target_exchange, premium_type="spot-spot",
currency="USD", key="pdp", sort="desc", max_pages=10):
"""Collect all premium tokens via pagination into a flat DataFrame.
Each response item nests under `detail`; we flatten it into columns
(sb, pdp, pdp30m, sv ...)."""
rows, page = [], 1
while page <= max_pages:
resp = requests.get(f"{BASE}/api/v1/premium", headers=HEADERS, params={
"source_exchange": source_exchange,
"target_exchange": target_exchange,
"premium_type": premium_type,
"currency": currency,
"key": key,
"sort": sort,
"page": page,
"limit": 100,
})
resp.raise_for_status()
batch = resp.json().get("data", [])
if not batch:
break
rows.extend(item["detail"] for item in batch)
if len(batch) < 100:
break
page += 1
return pd.DataFrame(rows)
For other endpoints like forex and funding, the Python SDK (
from datamaxi import Datamaxi) is more convenient. We use the SDK to pull the FX rate in Section 8.
4. Pulling a kimp snapshot in one shot
Fetch the Upbit (KRW) ↔ Binance (USDT) spot-spot kimp across every token.
df = fetch_premium("upbit", "binance", premium_type="spot-spot")
print(df[["sb", "pdp", "pdp30m", "pdp24h", "sv", "t"]].head(10))
This single query already contains both the cross-section (which token has the highest kimp) and the term structure (how far each token has widened versus some time ago). Now we refine it into signals.
5. Signal 1: cross-sectional anomalous kimp (Z-score)
The idea is simple. If one token's kimp has widened abnormally relative to the whole market, Korean retail demand is concentrating on that token. It often leads short-term momentum.
First, strip out the noise. Tokens with too little traded value and non-transferable tokens carry low signal confidence.
# Liquidity filter: a floor on source traded value
# (queried with currency="USD", so the unit is USD)
liquid = df[df["sv"] > 1_000_000].copy()
# Z-score off the median/std (the mean is swayed by extremes, so use median)
med = liquid["pdp"].median()
std = liquid["pdp"].std()
liquid["prem_z"] = (liquid["pdp"] - med) / std
# Tokens whose kimp is abnormally high versus the whole market
signal = liquid.sort_values("prem_z", ascending=False)
print(signal[["sb", "pdp", "prem_z", "sv"]].head(10))
How to read it:
prem_z≥ +2 → localized overheating detached from the broader market. A short-term momentum candidate, but also a mean-reversion (Signal 3) candidate at the same time. Velocity decides the direction (see below).- If the whole distribution of
prem_zis skewed upward → read it not as a single-token story but as a market-wide risk-on signal.
6. Signal 2: premium velocity
The same +3% kimp means something entirely different when it's "3% built up slowly over 30 minutes" versus "3% that just blew out in 5 minutes." Use the term-structure fields (pdp5m ~ pdp24h) to measure how fast the kimp is widening.
# Change in kimp over recent windows = now - past
df["vel_5m"] = df["pdp"] - df["pdp5m"]
df["vel_30m"] = df["pdp"] - df["pdp30m"]
df["vel_1h"] = df["pdp"] - df["pdp1h"]
# Tokens widening sharply in a short window (FOMO / accelerating inflow candidates)
accelerating = df.sort_values("vel_30m", ascending=False)
print(accelerating[["sb", "pdp", "vel_5m", "vel_30m", "vel_1h"]].head(10))
Combine this velocity measure with Signal 1 and the read sharpens.
- High
prem_z+ high positive velocity → the kimp is still widening right now. An entry candidate from a trend-following (momentum) view. - High
prem_z+ negative velocity → the kimp has peaked and is cooling. A candidate from a mean-reversion (fade) view.
So the z-score tells you how extreme, and velocity tells you which way it's going. You have to look at both together.
7. Signal 3: mean reversion
The kimp doesn't widen forever. For tokens with deposits/withdrawals even partially open, the arbitrage incentive pulls it back; for blocked tokens, Korean retail profit-taking does. Use the kimp 24 hours ago as a baseline and look at how far current sits from it.
# Deviation of the current kimp from the 24h baseline
df["dev_24h"] = df["pdp"] - df["pdp24h"]
# Large upward deviation + velocity rolling over = reversion (short/stand-aside) candidate
fade_candidates = df[(df["dev_24h"] > 0) & (df["vel_30m"] < 0)]
fade_candidates = fade_candidates.sort_values("dev_24h", ascending=False)
print(fade_candidates[["sb", "pdp", "pdp24h", "dev_24h", "vel_30m"]].head(10))
⚠️ Mean reversion is a probabilistic tendency, not a guarantee of reverting. In regimes where the kimp jumps to a new level — a fresh listing, a major catalyst — the reversion assumption breaks. That's why you need Signal 2 (velocity) alongside it to confirm whether the peak has passed.
8. The reality variables you must check too
Before you move these signals into a backtest or live trading, you have to inspect the traps the surface kimp hides. Skip this part and you'll keep getting burned by the fact that "the kimp you see" and "the kimp you can catch" are different.
Transferability (t)
For t=false tokens, direct arbitrage is structurally impossible. Use them as signal only, and drop any expectation of arbitrage.
df["t"] = df["t"].fillna(False)
transferable = df[df["t"] == True]
Order-book depth (sad2p, tbd2p)
Even with a 5% kimp on screen, if the ±2% order-book size is thin, the kimp you can actually fill is far smaller. Screen tokens by fillable kimp — depth-adjusted — rather than the surface pdp.
# Only tokens with minimum fillable size on both sides
# (unit follows the requested currency)
executable = df[(df["sad2p"] > 5_000) & (df["tbd2p"] > 5_000)]
FX noise (USD-KRW)
Upbit prices are KRW-native. So the observed kimp blends not just token demand but also USD-KRW exchange-rate moves. The Premium API normalizes currency via the currency/conversion_base parameters, but you should be explicit about which currency frame you're analyzing in. To isolate the FX effect, pull USD-KRW from the forex endpoint and decompose.
from datamaxi import Datamaxi
maxi = Datamaxi(api_key=API_KEY)
fx = maxi.forex(symbol="USD-KRW")
# A starting point for decomposing the kimp series into an FX component and a token-demand component
print(fx)
Fees and funding
If your strategy hedges with futures, on top of both trading fees you also take funding (sfr, tfr, with settlement intervals sfri/tfri) into the P&L. Since these fields ship in the Premium response, you can evaluate the kimp signal and the funding cost on one screen.
9. Going one step further: new KRW listings and kimp spikes
The most dramatic kimp shows up right after a new KRW listing. As Korean demand piles in the instant of listing, the kimp jumps sharply in a short window and the gap to global blows out. This regime should be read as a regime jump, not mean reversion, and velocity (Signal 2) carries especially strong information here.
This topic deserves its own depth, so here we just mark the entry point. The real-time stream that catches listing events to the millisecond, and the analysis of listing alpha itself, are covered in a follow-up piece.
Wrap-up
See the kimp as "free arbitrage" and you'll keep hitting the wall of Korea's institutional barriers. But redefine it as a quantitative signal that measures Korean retail demand, and three branches of analyzable alpha open up: cross-sectional outliers, velocity, and mean reversion. The DataMaxi+ Premium API delivers, in a single call, the term-structure fields (pdp5m~`pdp24h`) that make all three possible, alongside the depth and transferability fields that reflect execution reality.
The code in this article is written to run as-is. Swap in your own liquidity thresholds, z-score cutoffs, and reversion assumptions, and refine it into a signal that fits your strategy.
- API docs: https://docs.datamaxiplus.com/rest/premium
- Python SDK: https://python.datamaxiplus.com
- Get an API key: https://datamaxiplus.com/my/maxi
Disclaimer: This article is for informational purposes only and does not constitute financial, investment, legal, or tax advice. Trading cryptocurrencies carries high risk and can lead to the total loss of your capital. DataMaxi+ does not warrant the accuracy or completeness of the information provided and accepts no liability for any loss arising from its use. Make all investment and trading decisions based on your own research and independent professional advice.
- crypto
- kimchi-premium
- premium
- signal
- python
- datamaxi
- korea


