Set your API key, then run an example with tsx:
export CHARTQUERY_API_KEY="YOUR_API_KEY"
npx tsx examples/json.tsjson.ts— call the featured endpoint and print the JSON result.binary.ts— save a binary response to a file.request.ts— call any path withrequest()and handle API errors.wait-for-job.ts— start an async job and wait for its result.