D-Wallet Rate API

LTC / JPY Rate

外部レートAPIを利用者側で直接組み込まず、D-Wallet APIからLTC/JPYを取得できます。

GET /v1/rates/ltc-jpy

必要Scope: rate:read

D-Wallet内部のLTC/JPYレートサービスをPublic APIから取得します。ApplicationはD-Wallet APIだけでDLTC/JPYとLTC/JPYを扱えます。

TERMINAL
curl -H "Authorization: Bearer $DWALLET_API_KEY" \
  https://dwallet-api.nikoroyal.com/v1/rates/ltc-jpy
JSON
{
  "ok": true,
  "rate": {
    "asset": "LTC",
    "currency": "JPY",
    "rate_jpy": "12345.67"
  }
}
PYTHON
import aiohttp

async def get_ltc_jpy(api_key: str):
    headers = {"Authorization": f"Bearer {api_key}"}
    async with aiohttp.ClientSession(headers=headers) as session:
        async with session.get("https://dwallet-api.nikoroyal.com/v1/rates/ltc-jpy") as r:
            r.raise_for_status()
            data = await r.json()
            return data["rate"]["rate_jpy"]

Developer Dashboard

Application、API Key、Scope、Webhook、Usage、Audit、Payment履歴はDeveloper Dashboardから管理できます。