import { MainClient, type Kline as BinanceRestKline, CoinMClient, USDMClient } from "binance";

const usdMClient = new USDMClient();
const coinMClient = new CoinMClient();

console.log(await usdMClient.getKlines({
    symbol: 'BTCUSDT',
    interval: "1m",
    startTime: 0,
    limit: 2,
}));

// console.log(await coinMClient.getKlines({
//     symbol: 'BTCUSD_PERP',
//     interval: "1d",
//     startTime: 0,
//     limit: 2,
// }));

// const data = await coinMClient.getExchangeInfo();

// for (const item of data.symbols) {
//     if (item.pair !== 'BTCUSD') {
//         continue;
//     }
//     console.log(item);
// }