@coinset/bitmart
Version:
Universal BitMart API client
28 lines • 1.12 kB
JavaScript
(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.fetchSymbols = void 0;
const _utils_js_1 = require("./_utils.js");
const constants_js_1 = require("./constants.js");
/** Get a list of all trading pairs on the platform.
* ```ts
* import { fetchSymbols } from "https://deno.land/x/bitmart@$VERSION/mod.ts"
* await fetchSymbols()
* ```
* @see https://developer-pro.bitmart.com/en/spot/basic/symbols.html
*/
function fetchSymbols(init) {
const url = new URL("spot/v1/symbols", constants_js_1.BASE_URL);
return (0, _utils_js_1.jsonFetch)(url, init);
}
exports.fetchSymbols = fetchSymbols;
});
//# sourceMappingURL=symbols.js.map