UNPKG

@coinset/bitmart

Version:

Universal BitMart API client

22 lines (21 loc) 880 B
import { SuccessResponse } from "./_utils.js"; export declare type CurrenciesResponse = SuccessResponse<{ currencies: { /** Currency abbreviation, such as `BTC` */ id: string; /** Currency full name, such as `Bitcoin` */ name: string; /** Whether this currency can be withdrawn on the platform, true-can; false-no */ withdraw_enabled: boolean; /** Whether this currency can be deposited on the platform, true-can; false-not */ deposit_enabled: boolean; }[]; }>; /** 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 declare function fetchCurrencies(init?: RequestInit): Promise<CurrenciesResponse>;