UNPKG

@coinset/bitmart

Version:

Universal BitMart API client

14 lines 489 B
import { jsonFetch } from "./_utils.js"; import { BASE_URL } from "./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 */ export function fetchSymbols(init) { const url = new URL("spot/v1/symbols", BASE_URL); return jsonFetch(url, init); } //# sourceMappingURL=symbols.js.map