File size: 414 Bytes
a02c304
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();