Universal BitMart API client
🚸 This is not official
A request for an entry point that does not require authentication.
Get the latest market quotations of the contract. Docs
example:
import { fetchContract } from "https://deno.land/x/bitmart@$VERSION/mod.ts";
await fetchContract();
parameters:
type ContractOptions = {
contractSymbol: string;
};
returns:
type ContractResponse = {
code: 1000;
trace: string;
message: "OK";
data: {
tickers: {
contract_symbol: string;
last_price: number;
index_price: number;
last_funding_rate: number;
price_change_percent_24h: number;
volume_24h: number;
url: string;
high_price: number;
low_price: number;
legal_coin_price: number;
}[];
};
};
Get a list of all cryptocurrencies on the platform. Docs
example:
import { fetchCurrencies } from "https://deno.land/x/bitmart@$VERSION/mod.ts";
await fetchCurrencies();
returns:
type CurrenciesResponse = {
code: 1000;
trace: string;
message: "OK";
data: {
currencies: {
id: string;
name: string;
withdraw_enabled: boolean;
deposit_enabled: boolean;
}[];
};
};