Download examples/demo.js from piccassol/NOLAND: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/piccassol/NOLAND/resolve/main/examples/demo.js
- Command line
-
hf download hf://piccassol/NOLAND/examples/demo.js
-
curl -L -o demo.js https://huggingface.co/piccassol/NOLAND/resolve/main/examples/demo.js
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(); | |