LeoYeAI/agent-master-skills / skills/arbiscan-skill
arbiscan
VerifiedComprehensive crypto market scanner across Binance, OKX, Bybit, and Bitget. 12 scan types covering arbitrage (funding rate, basis, spot spread, futures spread), market monitoring (open interest, price movers, volume anomaly, stablecoin depeg, funding extreme), and trading signals (funding trend, long/short ratio, new listing detection). Read-only — no trading, no API keys needed.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 5.7 KB |
| README_CN.md | markdown | 5.5 KB |
| SKILL.md | skill md | 18.5 KB |
| _meta.json | config | 278 B |
| examples/sample_output.md | markdown | 5.3 KB |
| scripts/basis_arb.py | script | 2.2 KB |
| scripts/config.py | script | 3.3 KB |
| scripts/fetcher.py | script | 17.3 KB |
| scripts/formatter.py | script | 1.5 KB |
| scripts/funding_arb.py | script | 2.2 KB |
| scripts/funding_extreme.py | script | 1.9 KB |
| scripts/funding_history.py | script | 2.5 KB |
| scripts/futures_spread.py | script | 2.1 KB |
| scripts/long_short_ratio.py | script | 2.3 KB |
| scripts/new_listing.py | script | 2.3 KB |
| scripts/open_interest.py | script | 1.9 KB |
| scripts/price_movers.py | script | 2.2 KB |
| scripts/requirements.txt | manifest | 33 B |
| scripts/scanner.py | script | 4.9 KB |
| scripts/spot_spread.py | script | 2.8 KB |
| scripts/stablecoin_depeg.py | script | 3.3 KB |
| scripts/volume_anomaly.py | script | 2.5 KB |
scripts/stablecoin_depeg.py
View on GitHub"""稳定币脱锚监控 — 监测 USDC/DAI 等偏离 $1 的情况"""
from fetcher import _get
from formatter import format_output
# 稳定币监控对,path 用点号分隔访问嵌套 JSON
DEPEG_PAIRS = {
"USDC": [
{"exchange": "Binance", "url": "https://api.binance.com/api/v3/ticker/price", "params": {"symbol": "USDCUSDT"}, "path": "price"},
{"exchange": "OKX", "url": "https://www.okx.com/api/v5/market/ticker", "params": {"instId": "USDC-USDT"}, "path": "data.0.last"},
{"exchange": "Bybit", "url": "https://api.bybit.com/v5/market/tickers", "params": {"category": "spot", "symbol": "USDCUSDT"}, "path": "result.list.0.lastPrice"},
],
"DAI": [
{"exchange": "Binance", "url": "https://api.binance.com/api/v3/ticker/price", "params": {"symbol": "DAIUSDT"}, "path": "price"},
],
"FDUSD": [
{"exchange": "Binance", "url": "https://api.binance.com/api/v3/ticker/price", "params": {"symbol": "FDUSDUSDT"}, "path": "price"},
],
"TUSD": [
{"exchange": "Binance", "url": "https://api.binance.com/api/v3/ticker/price", "params": {"symbol": "TUSDUSDT"}, "path": "price"},
],
}
def _extract_price(data, path: str) -> float:
"""从嵌套 JSON 中按点号路径提取价格"""
keys = path.split(".")
val = data
for k in keys:
if val is None:
print(f" [WARN] 路径解析失败: {path},在 key={k} 处为 None")
return 0.0
if isinstance(val, list):
val = val[int(k)]
elif isinstance(val, dict):
val = val.get(k)
else:
print(f" [WARN] 路径解析失败: {path},在 key={k} 处类型异常: {type(val)}")
return 0.0
return float(val) if val else 0.0
def scan_stablecoin_depeg(threshold_pct: float = 0.1) -> tuple:
"""
扫描稳定币脱锚情况
threshold_pct: 偏离阈值百分比(默认 0.1%)
返回 (rows, headers)
"""
headers = ["Stablecoin", "Exchange", "Price (USDT)", "Depeg%", "Status"]
rows = []
print(f"[Stablecoin Depeg] 扫描稳定币脱锚...")
for coin, sources in DEPEG_PAIRS.items():
for src in sources:
data = _get(src["url"], src["params"])
if data is None:
continue
price = _extract_price(data, src["path"])
if price <= 0:
continue
depeg_pct = (price - 1.0) * 100
if abs(depeg_pct) >= threshold_pct:
status = "DEPEGGED" if abs(depeg_pct) > 0.5 else "WATCH"
else:
status = "STABLE"
rows.append([
coin,
src["exchange"],
f"${price:.6f}",
f"{depeg_pct:+.4f}%",
status,
])
rows.sort(key=lambda r: abs(float(r[3].rstrip('%'))), reverse=True)
return rows, headers
def main():
import argparse
parser = argparse.ArgumentParser(description="Stablecoin Depeg Monitor")
parser.add_argument("--format", choices=["table", "markdown", "json"], default="table")
args = parser.parse_args()
rows, headers = scan_stablecoin_depeg()
print(f"\n{'='*80}")
print(" Stablecoin Depeg Monitor")
print(f"{'='*80}")
print(format_output(rows, headers, args.format))
print(f"\nMonitoring {len(rows)} stablecoin pairs")
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |