본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트37k · #7535

okx-market

하는 일

이 스킬은 OKX 거래소에서 암호화폐 가격과 시장 정보를 가져옵니다. 계정을 만들지 않고 현재 또는 과거의 암호화폐 데이터를 원하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓OKX에서 코인의 최신 가격이나 24시간 변동률을 알고 싶을 때.
  • ✓현물, 스왑, 선물 시장의 캔들 이력이 필요할 때.
  • ✓암호화폐 계약의 펀딩 비율이나 미결제약정을 확인하고 싶은 경우.

스킬 링크

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/okx-market/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/okx-market/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“OKX에서 ETH의 현재 가격과 24시간 변동률이 어떻게 되나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 OKX의 공개 시장 데이터 API에 요청을 보내며, 이 과정에 로그인은 필요하지 않습니다. 받은 응답을 읽거나 분석하기 쉬운 표로 바꿉니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

OKX Market

Overview

The OKX V5 REST API provides comprehensive cryptocurrency market data covering spot, perpetual swaps, delivery futures, options, and more. All market-data endpoints are public and can be called directly without authentication. The data comes from OKX, the world's second-largest cryptocurrency exchange.

Quick Start

  • Install a Python runtime (Python 3.9+ recommended) and the required requests dependency.
pip install requests pandas
  • No account registration or token configuration is required. Market-data endpoints are fully open.
  • Review the endpoint documentation below and locate the interface you need.
  • Use Python code to retrieve data according to the documentation. Example for the spot ticker endpoint:
import requests
import pandas as pd

BASE_URL = "https://www.okx.com/api/v5"

# Get the latest BTC-USDT market quote
resp = requests.get(f"{BASE_URL}/market/ticker", params={"instId": "BTC-USDT"})
data = resp.json()["data"][0]
print(f"BTC last price: {data['last']}  24h change: {float(data['last'])/float(data['open24h'])*100-100:.2f}%")

Parameter Format Reference

  • Instrument format (instId):
    • Spot: BTC-USDT, ETH-USDT
    • Perpetual swap: BTC-USDT-SWAP, ETH-USDT-SWAP
    • Delivery futures: BTC-USDT-250328 (expiry date in YYMMDD)
    • Options: BTC-USD-250328-95000-C (expiry-strike-C/P)
    • Index: BTC-USD, ETH-USD
  • Candlestick interval (bar): 1m, 3m, 5m, 15m, 30m, 1H, 2H, 4H, 6H, 12H, 1D, 1W, 1M
  • Instrument type (instType): SPOT (spot), SWAP (perpetual), FUTURES (delivery), OPTION (option)
  • Timestamp: millisecond Unix timestamp (for example 1773763200000)
  • Response format: JSON. code=0 indicates success, and data is returned in the data field

Link convention: every link to references/ in this document is written relative to this document (for example references/...) — the form GitHub resolves when someone opens the file in a browser. The read_file tool resolves the same string against the skill that owns it, so the agent and a human reader reach one file. When adding new skill docs, always use the relative form, and keep reference paths unique across skills: a path two skills both carry is reported as ambiguous rather than guessed.

Python Script Examples

Market Data Endpoint List

ID Endpoint Path Title (Detailed Documentation) Category Description
1 /market/ticker Single Ticker Spot Market Retrieve the latest market data for a single trading instrument, including last price, bid/ask, 24h volume, and more
2 /market/tickers Batch Tickers Spot Market Retrieve all market data for a given instrument class (SPOT/SWAP/FUTURES/OPTION) in batch
3 /market/candles Candlestick Data Spot Market Retrieve candlestick (OHLCV) data with multiple supported intervals
4 /market/trades Recent Trades Spot Market Retrieve recent trade-level details
5 /public/instruments Instrument List Spot Market Retrieve metadata for all tradable instruments, including minimum order size and price precision
6 /market/books Order Book Depth Spot Market Retrieve bid/ask order book depth data
7 /public/funding-rate Funding Rate Derivatives Market Retrieve current and historical funding rates for perpetual contracts
8 /public/funding-rate-history Historical Funding Rate Derivatives Market Retrieve historical funding-rate data for perpetual contracts
9 /public/mark-price Mark Price Derivatives Market Retrieve mark prices for derivatives, used for PnL and liquidation calculations
10 /public/open-interest Open Interest Derivatives Market Retrieve open-interest data for derivatives
11 /public/price-limit Price Limit Derivatives Market Retrieve the curre
자주 묻는 질문

OKX 계정이 필요한가요?

필요하지 않습니다. 시장 데이터 엔드포인트는 공개되어 있어 계정이나 토큰이 필요 없습니다.

거래쌍 이름은 어떻게 쓰나요?

현물은 BTC-USDT, 영구 계약은 BTC-USDT-SWAP처럼 쓰고, 선물과 옵션은 비슷한 코드 형식을 사용합니다.

특별한 Python 패키지가 필요한가요?

requests와 pandas가 필요하며, 둘 다 흔히 쓰이는 Python 라이브러리입니다.

상세 정보

작성자의 원본 설명

OKX cryptocurrency market data interface. Uses the OKX V5 REST API to retrieve spot, derivatives, index, and other crypto market data, including real-time prices, candlesticks, funding rates, open interest, and more. No authentication required, free to use.

repo: HKUDS/Vibe-Trading

인기도

GitHub 스타
37k
순위
#7535
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬