UNPKG

@coinset/bitmart

Version:

Universal BitMart API client

14 lines 510 B
import { jsonFetch } from "./_utils.js"; import { BASE_URL } from "./constants.js"; /** Get a list of all cryptocurrencies on the platform. * ```ts * import { fetchCurrencies } from "https://deno.land/x/bitmart@$VERSION/mod.ts" * await fetchCurrencies() * ``` * @see https://developer-pro.bitmart.com/en/spot/basic/currencies.html */ export function fetchCurrencies(init) { const url = new URL("spot/v1/currencies", BASE_URL); return jsonFetch(url, init); } //# sourceMappingURL=currencies.js.map