jpskill.com
🛠️ 開発・MCP コミュニティ

fiat

Binanceで法定通貨(日本円など)を使った暗号資産の売買、入出金、為替レート、利用可能な決済方法、過去の取引履歴などを、ユーザーからの質問に応じてAPIで調べ、最適な情報を提供するSkill。

📜 元の英語説明(参考)

Query Binance fiat payment capabilities — supported countries, currencies, payment methods, limits, and crypto prices — via public APIs, plus authenticated order/payment history lookup. Use whenever users ask about buying or selling crypto with fiat, depositing or withdrawing fiat, fiat-crypto exchange rates, payment options in a specific country, or their fiat order history — even if they don't explicitly mention Binance APIs.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Binanceで法定通貨(日本円など)を使った暗号資産の売買、入出金、為替レート、利用可能な決済方法、過去の取引履歴などを、ユーザーからの質問に応じてAPIで調べ、最適な情報を提供するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o fiat.zip https://jpskill.com/download/23628.zip && unzip -o fiat.zip && rm fiat.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/23628.zip -OutFile "$d\fiat.zip"; Expand-Archive "$d\fiat.zip" -DestinationPath $d -Force; ri "$d\fiat.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して fiat.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → fiat フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
4

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Binance Fiat Skill

公開API(認証不要)を使用して、Binanceの法定通貨決済機能、利用可能な決済方法、価格設定、およびサポートされている通貨/国を照会します。注文履歴と支払い履歴については、認証済みエンドポイントをご覧ください。

ベースURL

https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent

利用可能なAPI

1. get_capabilities

国でサポートされている法定通貨、仮想通貨、およびビジネスタイプを照会します。

curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-capabilities?country={COUNTRY_CODE}"

オプション: businessType (BUY, SELL, DEPOSIT, WITHDRAW) でフィルタリングできます。

レスポンス: data.supportedBusinessTypesdata.fiatCurrencies[] ( codenamesupportedBusinessTypes を含む)、data.cryptoCurrencies[]

2. get_buy_and_sell_payment_methods

curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-buy-and-sell-payment-methods?businessType={BUY|SELL}&fiatCurrency={FIAT}&cryptoCurrency={CRYPTO}&country={COUNTRY_CODE}"

4つのパラメータすべてが必須です。

レスポンス: data.paymentMethods[]data.p2pPaymentMethods[]。それぞれに codepaymentMethodNamefiatMinLimitfiatMaxLimitcryptoMinLimitcryptoMaxLimitquotationsuspended が含まれます。

3. get_deposit_and_withdraw_payment_methods

curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-deposit-and-withdraw-payment-methods?businessType={DEPOSIT|WITHDRAW}&fiatCurrency={FIAT}&country={COUNTRY_CODE}"

3つのパラメータすべてが必須です。cryptoCurrencyquotation、P2Pメソッドはありません。

レスポンス: data.paymentMethods[] ( codepaymentMethodNamefiatMinLimitfiatMaxLimitsuspended を含む)

4. get_price

curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-price?fiatCurrency={FIAT}&cryptoCurrency={CRYPTO}&country={COUNTRY_CODE}"

オプション: businessType (BUY または SELL、デフォルトは BUY)。

レスポンス: data.bestPrice — 参考価格であり、実際の約定価格とは異なる場合があります。

推奨されるワークフロー

  1. get_capabilities を最初に呼び出す — 他の呼び出しを行う前に、何がサポートされているかを確認します。
  2. 決済方法API — BUY/SELL の場合は get_buy_and_sell_payment_methods、DEPOSIT/WITHDRAW の場合は get_deposit_and_withdraw_payment_methods を使用します。
  3. get_price — ユーザーが為替レート情報を必要とする場合に追加します。

簡単な価格照会(例: 「USDでのBTCはいくらですか?」)の場合は、ステップ1をスキップします。

APIの呼び出し

WebFetch または Bash (curl) を使用します。すべてのレスポンスは以下の形式に従います。

{ "code": "000000", "message": null, "data": { ... }, "success": true }

code: "000000" は成功を意味します。それ以外の場合は message を確認してください。

アクションリンク

APIの結果を提示した後、ユーザーがBinanceで直接手続きを進められるように、関連するアクションリンクを常に含めてください。会話のコンテキストから法定通貨、仮想通貨、ビジネスタイプに基づいてURLを動的に構築します。

URLテンプレート

ビジネスタイプ URLテンプレート
BUY https://www.binance.com/en/crypto/buy/{FIAT}/{CRYPTO} USDでBTCを購入
SELL https://www.binance.com/en/crypto/sell/{FIAT}/{CRYPTO} BTCをUSDで売却
DEPOSIT https://www.binance.com/en/fiat/deposit/{FIAT} USDを入金
WITHDRAW https://www.binance.com/en/fiat/withdraw/{FIAT} USDを出金

言語対応URL

ユーザーの言語に合わせて、/en/ のロケールセグメントを置き換えてください。サポートされているロケールは以下の通りです。

en, zh-CN, zh-TC, ru, es, es-LA, fr, vi, en-TR, it, pl, id, uk-UA, ar,
en-AU, pt-BR, en-IN, en-NG, ro, bg, cs, lv, sv, pt, es-MX, el, sk, sl,
es-AR, fr-AF, en-KZ, en-ZA, en-NZ, en-BH, ar-BH, ru-UA, de, kk-KZ,
ru-KZ, ja, da-DK, en-AE, en-JP, hu, lo-LA, si-LK, az-AZ, uz-UZ, pt-AO

一般的なマッピング例:

ユーザー言語 ロケール 例URL
英語 en https://www.binance.com/en/crypto/buy/USD/BTC
简体中文 zh-CN https://www.binance.com/zh-CN/crypto/buy/CNY/BTC
Português (BR) pt-BR https://www.binance.com/pt-BR/crypto/buy/BRL/BTC
Türkçe en-TR https://www.binance.com/en-TR/crypto/buy/TRY/BTC

地域別の英語バリアント(en-AU、en-IN、en-NG、en-AE、en-NZなど)の場合、単なる en ではなく、特定の地域ロケールを使用してください。これにより、ユーザーは地域に適したコンテンツを見ることができます。

ユーザーの言語が不明な場合は、デフォルトで en を使用してください。

会話に特定の法定通貨/仮想通貨ペアまたはビジネスタイプが含まれる場合は、常に少なくとも1つのアクションリンクを含めてください。一般的な質問の場合は、get_capabilities から関連するすべてのリンクを含めてください。「購入準備はできましたか?BinanceでUSDでBTCを購入」のように、行動を促す形式で提示してください。

結果の提示

  • 決済方法はテーブル形式で(名称、制限、価格)。停止中の方法はフラグを立ててください。
  • 価格は参考価格であることを明記してください。
  • ユーザーの言語で応答してください。
  • 常に最後に関連するアクションリンクを含めてください。

価格の並べ替えとベストバリューロジック

価格の方向はビジネスタイプによって異なります。常に正しい比較を適用してください。

ビジネスタイプ より良い価格の方向 根拠
BUY 価格が低い方が良い 仮想通貨1単位あたりに支払う法定通貨が少なくなる — 同じ法定通貨でより多くの仮想通貨を購入できる
SELL 価格が高い方が良い 売却した仮想通貨1単位あたりに受け取る法定通貨が多くなる

要約する際は、BUYの場合は最も低い quotation を強調し、SELLの場合は最も高い quotation を強調してください。例(BUY USD/BTC): $70,236 は $74,291 よりも優れています — 1ドルあたりにより多くのBTCが得られます。

ウォレット決済方法 (BUY)

BUYのレスポンスに codeWALLET (大文字小文字を区別しない) を含む決済方法が含まれている場合、それはユーザーのBinance法定通貨ウォレット残高を使用した仮想通貨の購入を表します。

この場合、積極的に次のように言及してください。

「利用可能な決済方法の1つは、お客様のBinance法定通貨ウォレット残高です。もしお客様のウォレット残高が...」

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Binance Fiat Skill

Query Binance fiat payment capabilities, available payment methods, pricing, and supported currencies/countries using public APIs (no authentication required). For order and payment history, see Authenticated Endpoints.

Base URL

https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent

Available APIs

1. get_capabilities

Query supported fiat currencies, cryptos, and business types for a country.

curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-capabilities?country={COUNTRY_CODE}"

Optional: businessType (BUY, SELL, DEPOSIT, WITHDRAW) to filter.

Response: data.supportedBusinessTypes, data.fiatCurrencies[] (with code, name, supportedBusinessTypes), data.cryptoCurrencies[]

2. get_buy_and_sell_payment_methods

curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-buy-and-sell-payment-methods?businessType={BUY|SELL}&fiatCurrency={FIAT}&cryptoCurrency={CRYPTO}&country={COUNTRY_CODE}"

All 4 parameters required.

Response: data.paymentMethods[] and data.p2pPaymentMethods[], each with code, paymentMethodName, fiatMinLimit, fiatMaxLimit, cryptoMinLimit, cryptoMaxLimit, quotation, suspended

3. get_deposit_and_withdraw_payment_methods

curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-deposit-and-withdraw-payment-methods?businessType={DEPOSIT|WITHDRAW}&fiatCurrency={FIAT}&country={COUNTRY_CODE}"

All 3 parameters required. No cryptoCurrency, no quotation, no P2P methods.

Response: data.paymentMethods[] with code, paymentMethodName, fiatMinLimit, fiatMaxLimit, suspended

4. get_price

curl "https://www.binance.com/bapi/fiat/v1/public/fiatpayment/agent/get-price?fiatCurrency={FIAT}&cryptoCurrency={CRYPTO}&country={COUNTRY_CODE}"

Optional: businessType (BUY or SELL, defaults to BUY).

Response: data.bestPrice — indicative reference price, may differ from execution price

Recommended Workflow

  1. get_capabilities first — confirms what's supported before making other calls
  2. Payment methods API — BUY/SELL → get_buy_and_sell_payment_methods; DEPOSIT/WITHDRAW → get_deposit_and_withdraw_payment_methods
  3. get_price — add if the user wants exchange rate info

Skip step 1 for simple price queries (e.g., "What's BTC in USD?").

Calling APIs

Use WebFetch or Bash (curl). All responses follow:

{ "code": "000000", "message": null, "data": { ... }, "success": true }

code: "000000" = success; otherwise check message.

Action Links

After presenting API results, always include a relevant action link so the user can proceed directly on Binance. Build the URL dynamically based on the fiat currency, crypto currency, and business type from the conversation context.

URL Templates

Business Type URL Template Example
BUY https://www.binance.com/en/crypto/buy/{FIAT}/{CRYPTO} Buy BTC with USD
SELL https://www.binance.com/en/crypto/sell/{FIAT}/{CRYPTO} Sell BTC for USD
DEPOSIT https://www.binance.com/en/fiat/deposit/{FIAT} Deposit USD
WITHDRAW https://www.binance.com/en/fiat/withdraw/{FIAT} Withdraw USD

Language-aware URL

Replace the /en/ locale segment to match the user's language. Supported locales:

en, zh-CN, zh-TC, ru, es, es-LA, fr, vi, en-TR, it, pl, id, uk-UA, ar,
en-AU, pt-BR, en-IN, en-NG, ro, bg, cs, lv, sv, pt, es-MX, el, sk, sl,
es-AR, fr-AF, en-KZ, en-ZA, en-NZ, en-BH, ar-BH, ru-UA, de, kk-KZ,
ru-KZ, ja, da-DK, en-AE, en-JP, hu, lo-LA, si-LK, az-AZ, uz-UZ, pt-AO

Common mapping examples:

User language Locale Example URL
English en https://www.binance.com/en/crypto/buy/USD/BTC
简体中文 zh-CN https://www.binance.com/zh-CN/crypto/buy/CNY/BTC
Português (BR) pt-BR https://www.binance.com/pt-BR/crypto/buy/BRL/BTC
Türkçe en-TR https://www.binance.com/en-TR/crypto/buy/TRY/BTC

For regional English variants (en-AU, en-IN, en-NG, en-AE, en-NZ, etc.), use the specific regional locale rather than plain en — this ensures the user sees region-appropriate content.

Default to en if the user's language is unclear.

Always include at least one action link when the conversation involves a specific fiat/crypto pair or business type. For general questions, include all relevant links from get_capabilities. Format as a call-to-action, e.g.: "Ready to buy? Buy BTC with USD on Binance"

Presenting Results

  • Table format for payment methods (names, limits, pricing); flag suspended methods
  • Note that prices are indicative/reference prices
  • Respond in the user's language
  • Always end with the relevant action link(s)

Price Sorting and Best Value Logic

Price direction depends on the business type — always apply the correct comparison:

Business Type Better price direction Rationale
BUY Lower price is better You pay less fiat per unit of crypto — same fiat buys more crypto
SELL Higher price is better You receive more fiat per unit of crypto sold

When summarizing: for BUY highlight the lowest quotation; for SELL highlight the highest quotation. Example (BUY USD/BTC): $70,236 beats $74,291 — more BTC per dollar.

Wallet Payment Method (BUY)

If the BUY response includes a payment method with code containing WALLET (case-insensitive), it represents buying crypto using the user's Binance fiat wallet balance.

When this occurs, proactively mention:

"One of the available payment methods is your Binance fiat wallet balance. If your wallet doesn't have sufficient funds, you'll need to deposit fiat first. Would you like me to look up the available deposit methods for you?"

If the user confirms, call get_deposit_and_withdraw_payment_methods with businessType=DEPOSIT using the same fiat currency and country, and present the results along with the Deposit action link.

Order & Payment History (Authenticated)

See references/sapi-endpoints.md for authenticated endpoints (order/payment history, deposit/withdraw records). Requires Binance API key and secret.

Country Code Reference

Use ISO 3166-1 alpha-2 codes: BR, GB, DE, FR, JP, KR, AU, etc. Never use US as the country parameter — US users are not supported by Binance fiat payment APIs.

Country Inference Rules

Determine the country parameter using this priority order:

  1. Explicit context — If the country is already known from the conversation (user stated it, or inferred in a prior turn), reuse it without re-inferring.

  2. Fiat currency → country mapping — Map directly from currency. Examples:

    • SGDSG, BRLBR, JPYJP, KRWKR, AUDAU, GBPGB, CADCA, INRIN, TRYTR, MXNMX, NGNNG
    • EURFR (since the user did not specify a country, use FR as the default for EUR)
    • USDSG (since the user did not specify a country, use SG as the default for USD)

    MANDATORY: US MUST NEVER be used as the country parameter under any circumstances.

  3. Empty results — If the API returns no payment methods or an unsupported combination, ask: "No results found for your current settings. Would you like to try a different country? If so, please tell me which country." Then use the country the user provides.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。