polygon.io
Version:
Isomorphic Javascript client for Polygon.io Stocks, Forex, and Crypto APIs
15 lines (11 loc) • 383 B
text/typescript
//CF: https://polygon.io/docs/#!/Crypto/get_v1_meta_crypto_exchanges
import { get } from "../transport/request";
export interface ICryptoExchanges {
id: number;
type: string;
market: string;
name: string;
url: string;
}
export const cryptoExchanges = (apiKey: string, apiBase: string): Promise<ICryptoExchanges[]> =>
get(`/v1/meta/crypto-exchanges`, apiKey, apiBase);