UNPKG

@coinset/bitmart

Version:

Universal BitMart API client

28 lines 1.15 kB
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "./_utils.js", "./constants.js"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchCurrencies = void 0; const _utils_js_1 = require("./_utils.js"); const constants_js_1 = require("./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 */ function fetchCurrencies(init) { const url = new URL("spot/v1/currencies", constants_js_1.BASE_URL); return (0, _utils_js_1.jsonFetch)(url, init); } exports.fetchCurrencies = fetchCurrencies; }); //# sourceMappingURL=currencies.js.map