공개 데이터 API
이 페이지들의 데이터는 JSON으로 열려 있어요. 키도 가입도 필요 없어요. 응답은 10분 동안 캐시돼요. 한도는 IP 주소당 분당 60회 요청이에요.
이 데이터를 보여 줄 때는 Lipi를 출처로 밝히고 https://lipi.com.np/tools 로 링크해 주세요.
기본 URL
https://api.lipi.com.np/api/v1/public엔드포인트
GET /exchange-rates
기준 통화의 모든 환율.
curl "https://api.lipi.com.np/api/v1/public/exchange-rates?base=USD"GET /exchange-rates/convert
가진 데이터 중 가장 최근 날짜로 금액을 환산해요.
curl "https://api.lipi.com.np/api/v1/public/exchange-rates/convert?amount=10&from=USD&to=NPR"GET /exchange-rates/history
환율 추이. range(7d, 1m, 3m, 1y, 5y) 또는 start와 end를 쓰세요.
curl "https://api.lipi.com.np/api/v1/public/exchange-rates/history?from=USD&to=NPR&range=1m"GET /exchange-rates/currencies
지원하는 통화(기호와 소수 자릿수 포함).
curl "https://api.lipi.com.np/api/v1/public/exchange-rates/currencies"GET /metal-prices
금과 은의 현물 가격. unit(oz, gram, kg, tola)과 currency를 붙일 수 있어요.
curl "https://api.lipi.com.np/api/v1/public/metal-prices?currency=EUR&unit=gram"GET /metal-prices/history
금 또는 은 가격 추이. range는 1m, 3m, 1y, 5y, max.
curl "https://api.lipi.com.np/api/v1/public/metal-prices/history?metal=gold¤cy=USD&unit=oz&range=1y"