market-data
Skill4 starsChanged 8 months agoMITView on GitHub
Fetch market data from GRVT exchange — tickers, orderbooks, trades, candlesticks, funding rates. Use when the user wants price info, charts, or market analysis data.
- Reads credentials
- Installs packages
10 other projects use a version of this.
Adopted by
Most recently taken up by
- from68/claude-portfolio-management-skillstheir own version, first seen Nov 1, 2026
- TermiX-official/cryptoclawtheir own version, first seen Oct 8, 2026
- IngAs8/ClaudeSkilltheir own version, first seen Sep 28, 2026
- davidromeo/tradeblocks-skillstheir own version, first seen Sep 28, 2026
- tradeblocks-org/tradeblocks-skillstheir own version, first seen Sep 28, 2026
- qunyou-agent/finance-skillstheir own version, first seen Jul 6, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- TermiX-official/cryptoclaw★ 100same name
- rebyteai-template/rebyte-skills★ 17same name
- qunyou-agent/finance-skills★ 4same name
- davidromeo/tradeblocks-skills★ 3same name
- tradeblocks-org/tradeblocks-skills★ 3same name
- kohoj/skills★ 1same name
- TimurTsedik/ru-market-analyst★ 1same name
- from68/claude-portfolio-management-skills★ 0same name
- IngAs8/ClaudeSkill★ 0same name
- Yahmez3/Claude-Skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- account-managementSkill
- investmentSkill
- perpetual-tradingSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when the user wants to:
- Distinctive: line 11
Check current prices, bid/ask spreads
- Very specific: line 169
Use GrvtEnv.PRODUCTION for real market data, GrvtEnv.TESTNET for testing
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GRVT Market Data
When to Use
Use this skill when the user wants to:
- Check current prices, bid/ask spreads
- View orderbook depth
- Get recent trades
- Fetch candlestick/OHLCV data for analysis
- Check funding rates
- Discover available trading instruments
Prerequisites
pip install grvt-pysdkMarket data endpoints are public — no API key is needed for read-only data. However, if the user already has credentials configured, reuse their existing GrvtCcxt instance.
export GRVT_ENV="testnet" # or "prod"SDK Setup
import os
from pathlib import Path
from pysdk.grvt_ccxt import GrvtCcxt
from pysdk.grvt_ccxt_env import GrvtEnv
# Load .env file if present
env_file = Path(".env")
if env_file.exists():
for line in env_file.read_text().splitlines():
line = line.strip()
if line and not line.startswith("#") and "=" in line:
key, _, value = line.partition("=")
os.environ.setdefault(key.strip(), value.strip())
env = os.getenv("GRVT_ENV", "testnet")
# For public market data only (no credentials needed)
api = GrvtCcxt(env=GrvtEnv.TESTNET if env == "testnet" else GrvtEnv.PRODUCTION)
# Or reuse authenticated instance if availableSymbol Format
Perpetual symbols: {BASE}_{QUOTE}_Perp (e.g., BTC_USDT_Perp, ETH_USDT_Perp)
Instrument Discovery
# List all available instruments
markets = api.fetch_all_markets()
# Filter for perpetuals
perps = [m for m in markets if m["kind"] == "PERPETUAL"]
for p in perps:
print(p["instrument"]) # e.g. "BTC_USDT_Perp"
# Get details for a specific instrument
market = api.fetch_market("BTC_USDT_Perp")
# Returns: instrument, base, quote, kind, tick_size, min_size, base_decimals, quote_decimals, etc.Tickers (Current Prices)
# Mini ticker — mark price, index price, last price, best bid/ask
ticker = api.fetch_mini_ticker("BTC_USDT_Perp")
print(f"Last: {ticker['last_price']}, Bid: {ticker['best_bid_price']}, Ask: {ticker['best_ask_price']}")
print(f"Mark: {ticker['mark_price']}, Index: {ticker['index_price']}")
# Full ticker — includes volume, open interest, funding rate, 24h stats
ticker = api.fetch_ticker("BTC_USDT_Perp")
print(f"24h Buy Volume: {ticker['buy_volume_24h_b']} (base), {ticker['buy_volume_24h_q']} (quote)")
print(f"24h High: {ticker['high_price']}, Low: {ticker['low_price']}")
print(f"Funding Rate: {ticker['funding_rate']}")
print(f"Open Interest: {ticker['open_interest']}")
print(f"Long/Short Ratio: {ticker['long_short_ratio']}")Orderbook
# Fetch orderbook with depth
book = api.fetch_order_book("BTC_USDT_Perp", limit=10)
# book["bids"] and book["asks"] are lists of dicts with price, size, num_orders
for bid in book["bids"][:5]:
print(f"Bid: {bid['price']} x {bid['size']} ({bid['num_orders']} orders)")
for ask in book["asks"][:5]:
print(f"Ask: {ask['price']} x {ask['size']} ({ask['num_orders']} orders)")Available depth levels: 10, 50, 100, 500.
Recent Trades
trades = api.fetch_recent_trades("BTC_USDT_Perp", limit=20)
for t in trades:
side = "buy" if t["is_taker_buyer"] else "sell"
print(f"{side} {t['size']} @ {t['price']} (mark: {t['mark_price']})")Candlestick / OHLCV Data
# Fetch candlestick data — returns {"result": [...], "next": cursor}
data = api.fetch_ohlcv(
symbol="BTC_USDT_Perp",
timeframe="1h", # 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 2w, 4w
limit=100,
params={"candle_type": "TRADE"}, # TRADE (default), MARK, INDEX, MID
)
# Each candle has: open_time, close_time, open, close, high, low, volume_b, volume_q, trades
for candle in data["result"][-5:]:
print(f"O:{candle['open']} H:{candle['high']} L:{candle['low']} C:{candle['close']} V:{candle['volume_b']}")Candle types:
TRADE— Based on actual trade prices (default)MARK— Based on mark priceINDEX— Based on index priceMID— Based on mid price
Funding Rates
# Returns {"result": [...], "next": cursor}
data = api.fetch_funding_rate_history(
symbol="BTC_USDT_Perp",
limit=24, # Last 24 entries
)
for f in data["result"]:
print(f"Rate: {f['funding_rate']} at {f['funding_time']} (mark: {f['mark_price']})")Working with DataFrames
For analysis tasks, convert to pandas:
import pandas as pd
# OHLCV to DataFrame
data = api.fetch_ohlcv("BTC_USDT_Perp", timeframe="1h", limit=200)
df = pd.DataFrame(data["result"])
df["open_time"] = pd.to_datetime(df["open_time"].astype(float) / 1e9, unit="s")
df.set_index("open_time", inplace=True)
# Columns: open, close, high, low, volume_b, volume_q, tradesImportant Notes
- Market data has ~3 months of historical retention
- Pagination is cursor-based and reverse chronological
- Use
GrvtEnv.PRODUCTIONfor real market data,GrvtEnv.TESTNETfor testing - Mini ticker is lighter weight than full ticker — use it when you only need price
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

