मुख्य सामग्री पर जाएँ
Skillpedia
एनालिसिस और स्प्रेडशीट37k · #7535

okx-market

यह क्या करती है

यह स्किल OKX एक्सचेंज से क्रिप्टो कीमतें और बाज़ार की जानकारी लाती है। यह उन सभी के लिए है जिन्हें खाता सेट किए बिना मौजूदा या बीता क्रिप्टो डेटा चाहिए।

कब इस्तेमाल करें

  • ✓जब आप OKX पर किसी सिक्के की ताज़ा कीमत या 24 घंटे का बदलाव चाहें।
  • ✓जब आपको स्पॉट, स्वैप या फ़्यूचर्स बाज़ार का कैंडल इतिहास चाहिए।
  • ✓जब आप किसी क्रिप्टो कॉन्ट्रैक्ट के फ़ंडिंग रेट या ओपन इंटरेस्ट जाँचना चाहें।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/okx-market/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“OKX पर ETH की मौजूदा कीमत और 24 घंटे का बदलाव क्या है?”

हर हफ़्ते 5 नई skills, 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
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

vibe-trading

37k

यह आपके एजेंट को वित्त शोध का पूरा टूलकिट देती है, जिसमें बैकटेस्ट, फ़ैक्टर एनालिसिस, ऑप्शन प्राइसिंग और कई बाज़ारों का डेटा शामिल है।

डेटाएनालिसिस और स्प्रेडशीट

adr-hshare

37k

यह आपके एजेंट को दिखाती है कि कई बाज़ारों में लिस्टेड एक चीनी कंपनी के भाव की तुलना कैसे करें, जैसे अमेरिकी ADR और हॉन्गकॉन्ग शेयर।

डेटाएनालिसिस और स्प्रेडशीट

akshare

37k

यह आपके एजेंट को चीनी और वैश्विक शेयरों, फ़्यूचर्स, फ़ॉरेक्स और आर्थिक संकेतकों का मुफ़्त बाज़ार डेटा लेने देती है, बिना API key के।

डेटाएनालिसिस और स्प्रेडशीट

alpha-zoo

37k

यह आपके एजेंट को बने-बनाए स्टॉक फ़ैक्टरों की लाइब्रेरी देखने और चुने हुए बाज़ार पर उनके पूरे समूह के रिटर्न की भविष्यवाणी की क्षमता जाँचने देती है।

डेटाएनालिसिस और स्प्रेडशीट

मिलती-जुलती skills