NOLAND / examples /demo.js
piccassol's picture
Create examples/demo.js
a02c304 verified
Raw History Blame Contribute Delete
414 Bytes
import { NolandAI } from "../index.js";
const bot = new NolandAI({ baseUrl: "http://localhost:8000" });
async function run() {
try {
const call = await bot.getTradingCall();
console.log("Trading Call:", call);
const data = await bot.getMarketData("So11111111111111111111111111111111111111112");
console.log("Market Data:", data);
} catch (err) {
console.error(err.message);
}
}
run();