tardis-dev
Version:
Convenient access to tick-level historical and real-time cryptocurrency market data via Node.js
13 lines • 445 B
JavaScript
import { getJSON } from "./handy.js";
import { getOptions } from "./options.js";
export async function getApiKeyAccessInfo(apiKey) {
const options = getOptions();
const apiKeyToCheck = apiKey || options.apiKey;
const { data } = await getJSON(`${options.endpoint}/api-key-info`, {
headers: {
Authorization: `Bearer ${apiKeyToCheck}`
}
});
return data;
}
//# sourceMappingURL=apikeyaccessinfo.js.map