@okx-dex/okx-dex-sdk
Version:
OKX DEX SDK
16 lines (15 loc) • 531 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("../../index");
require("dotenv/config");
const client = new index_1.OKXDexClient({
apiKey: process.env.OKX_API_KEY,
secretKey: process.env.OKX_SECRET_KEY,
apiPassphrase: process.env.OKX_API_PASSPHRASE,
projectId: process.env.OKX_PROJECT_ID
});
async function main() {
const liquidity = await client.dex.getLiquidity("607");
console.log('Liquidity sources:', JSON.stringify(liquidity, null, 2));
}
main();