{"_id":"@alpaca-open-api/core","_rev":"8-1dd97db00114c1c0ee11582302925f40","name":"@alpaca-open-api/core","dist-tags":{"rc":"0.1.0-rc.0","latest":"1.2.2"},"versions":{"0.1.0-rc.0":{"name":"@alpaca-open-api/core","version":"0.1.0-rc.0","keywords":["alpaca","alpaca-markets","trading","api","typescript","openapi"],"author":{"name":"Yago"},"license":"MIT","_id":"@alpaca-open-api/core@0.1.0-rc.0","maintainers":[{"name":"yagop","email":"yagoperezs@gmail.com"}],"homepage":"https://github.com/yagop/alpaca-api-ts#readme","bugs":{"url":"https://github.com/yagop/alpaca-api-ts/issues"},"dist":{"shasum":"e9025fb207f8482ee8164aff07b3a4cecac907a1","tarball":"https://registry.npmjs.org/@alpaca-open-api/core/-/core-0.1.0-rc.0.tgz","fileCount":1013,"integrity":"sha512-M1EX02CLDLCt9HT8iwuMV4Rz9J7xX77leBn8mj9cOOBeHy05MaqVdXzeR8wQGwrnnm1TgjAX4FM3t6+CfEvdaA==","signatures":[{"sig":"MEUCICKBP0g2gW3C4c0sCel/6njq4AwqnY6ErZ24N/cS4KTwAiEAt61ooonGMHszB/ukESsIcqy1MZqTeEJKovTT5QSFGW4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1536677},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"}},"gitHead":"f7fcf1749af5aad97a75089aba94ba5aba2ed3da","scripts":{"build":"bun build src/index.ts --outfile dist/index.js --target node --format esm && tsc -p tsconfig.build.json && bun scripts/fix-dts-extensions.ts && tsc -p tsconfig.dts-check.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"yagop","email":"yagoperezs@gmail.com"},"repository":{"url":"git+https://github.com/yagop/alpaca-api-ts.git","type":"git","directory":"packages/core"},"_npmVersion":"11.13.0","description":"Typed fetch clients and types for the Alpaca Markets API, generated from the official OpenAPI specifications with Orval","directories":{},"_nodeVersion":"24.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0-rc.0_1781951730535_0.9182320548761553","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@alpaca-open-api/core","version":"1.0.0","keywords":["alpaca","alpaca-markets","trading","api","typescript","openapi"],"author":{"name":"Yago"},"license":"MIT","_id":"@alpaca-open-api/core@1.0.0","maintainers":[{"name":"yagop","email":"yagoperezs@gmail.com"}],"homepage":"https://github.com/yagop/alpaca-open-api#readme","bugs":{"url":"https://github.com/yagop/alpaca-open-api/issues"},"dist":{"shasum":"91f5f49facdfd942c11622eecbfaa462c6ebaf43","tarball":"https://registry.npmjs.org/@alpaca-open-api/core/-/core-1.0.0.tgz","fileCount":1013,"integrity":"sha512-UZMOCJUBGKq++hjNyM/7OqSI6vhB1SKFZZGq2R+dLWGgfTXB/vqOXejj+34DXhRGnJUcmzQ77ujVZzpjMwNuYg==","signatures":[{"sig":"MEUCIGwhl247iLeH7/3GoP+YUAPBKgf7ahzYCp328UC0O4hvAiEA0OCX1wwnGkOV3jPKnSqNUPLOsgKzN0ymElto84AC/go=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1536678},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"}},"gitHead":"ad30020c061033f6942d0940bf0b5369e623bf85","scripts":{"build":"bun build src/index.ts --outfile dist/index.js --target node --format esm && tsc -p tsconfig.build.json && bun scripts/fix-dts-extensions.ts && tsc -p tsconfig.dts-check.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"yagop","email":"yagoperezs@gmail.com"},"repository":{"url":"git+https://github.com/yagop/alpaca-open-api.git","type":"git","directory":"packages/core"},"_npmVersion":"11.13.0","description":"Typed fetch clients and types for the Alpaca Markets API, generated from the official OpenAPI specifications with Orval","directories":{},"_nodeVersion":"24.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_1.0.0_1781965920210_0.4016607274853463","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@alpaca-open-api/core","version":"1.0.1","keywords":["alpaca","alpaca-markets","trading","api","typescript","openapi"],"author":{"name":"Yago"},"license":"MIT","_id":"@alpaca-open-api/core@1.0.1","maintainers":[{"name":"yagop","email":"yagoperezs@gmail.com"}],"homepage":"https://github.com/yagop/alpaca-open-api#readme","bugs":{"url":"https://github.com/yagop/alpaca-open-api/issues"},"dist":{"shasum":"8d2a2ca5b93c39c3766ac91e1d8450f5b790609f","tarball":"https://registry.npmjs.org/@alpaca-open-api/core/-/core-1.0.1.tgz","fileCount":1013,"integrity":"sha512-PEbHkDWlpjHNg2xMspfmCGhW8Gw794R/Uyl7hnO2fa/wung3Lti1PqbjaZI8OQepXqRjikY9gkDw8+DUcw1sbA==","signatures":[{"sig":"MEUCIQCJFr1+kiCfrTBH+w6BY+67muZw9P8mN/u9r4bBJRTwoQIgVYPy6I9DSh51WVh3NCzYe0PYPPMWHLtATK/mrSIGBms=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alpaca-open-api%2fcore@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1539148},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"}},"gitHead":"9bbc00538635b6b71704a653b189b5fe109f8517","scripts":{"build":"bun build src/index.ts --outfile dist/index.js --target node --format esm && tsc -p tsconfig.build.json && bun scripts/fix-dts-extensions.ts && tsc -p tsconfig.dts-check.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"yagop","email":"yagoperezs@gmail.com"},"repository":{"url":"git+https://github.com/yagop/alpaca-open-api.git","type":"git","directory":"packages/core"},"_npmVersion":"11.13.0","description":"Typed fetch clients and types for the Alpaca Markets API, generated from the official OpenAPI specifications with Orval","directories":{},"_nodeVersion":"24.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_1.0.1_1781968428918_0.9509691382335472","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@alpaca-open-api/core","version":"1.0.2","keywords":["alpaca","alpaca-markets","trading","api","typescript","openapi"],"author":{"name":"Yago"},"license":"MIT","_id":"@alpaca-open-api/core@1.0.2","maintainers":[{"name":"yagop","email":"yagoperezs@gmail.com"}],"homepage":"https://github.com/yagop/alpaca-open-api#readme","bugs":{"url":"https://github.com/yagop/alpaca-open-api/issues"},"dist":{"shasum":"1cdf56461a3f8017e8c41884960fd28007db9873","tarball":"https://registry.npmjs.org/@alpaca-open-api/core/-/core-1.0.2.tgz","fileCount":1028,"integrity":"sha512-N/z2eK5dTOMka+1YLUeYbKpykP0uenNhyqJOvqwdm2/gGkEdmnrmqy8fYB94pQbawkcgYk0vAjTp09CBCRR4pg==","signatures":[{"sig":"MEQCIHZTfFVCc1nEp/6EUCWPY25mfBE2HtQUNCQOGvPP8tt5AiArk2XKvWsZrJ+ZCLmov29PDD9AAc5q5HYLVetG7SKccg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alpaca-open-api%2fcore@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1561229},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"}},"gitHead":"4361136098a4827a21e5870df1b4c5cd4596107e","scripts":{"build":"bun build src/index.ts --outfile dist/index.js --target node --format esm && tsc -p tsconfig.build.json && bun scripts/fix-dts-extensions.ts && tsc -p tsconfig.dts-check.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"yagop","email":"yagoperezs@gmail.com"},"repository":{"url":"git+https://github.com/yagop/alpaca-open-api.git","type":"git","directory":"packages/core"},"_npmVersion":"11.16.0","description":"Typed fetch clients and types for the Alpaca Markets API, generated from the official OpenAPI specifications with Orval","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_1.0.2_1783112278665_0.07377735825808118","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@alpaca-open-api/core","version":"1.1.0","keywords":["alpaca","alpaca-markets","trading","api","typescript","openapi"],"author":{"name":"Yago"},"license":"MIT","_id":"@alpaca-open-api/core@1.1.0","maintainers":[{"name":"yagop","email":"yagoperezs@gmail.com"}],"homepage":"https://github.com/yagop/alpaca-open-api#readme","bugs":{"url":"https://github.com/yagop/alpaca-open-api/issues"},"dist":{"shasum":"6fd0bcda6e98b7142c1ca038f2809a1c697756eb","tarball":"https://registry.npmjs.org/@alpaca-open-api/core/-/core-1.1.0.tgz","fileCount":1067,"integrity":"sha512-wsc5QgTaMJrIP5eVd4fasLSVFi3APj+S++sMyjJ0I1DmHB9Q6yCJq9fENH3X2I+Ttp7wxiS8CDqjBiQNAWH/Bw==","signatures":[{"sig":"MEYCIQDQPMmWcL7MiBOw6cIhAjUANumQawC5vkQdD1ZZxssl6gIhAPa4tg866Yqru+iSQh9/qFNyP2UQUc4OLyAhor4rS8pj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alpaca-open-api%2fcore@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1609991},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"}},"gitHead":"d81671fce8b26c0a5a08a9dc41e777e1df82ea9e","scripts":{"build":"bun build src/index.ts --outfile dist/index.js --target node --format esm && tsc -p tsconfig.build.json && bun scripts/fix-dts-extensions.ts && tsc -p tsconfig.dts-check.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"yagop","email":"yagoperezs@gmail.com"},"repository":{"url":"git+https://github.com/yagop/alpaca-open-api.git","type":"git","directory":"packages/core"},"_npmVersion":"11.17.0","description":"Typed fetch clients and types for the Alpaca Markets API, generated from the official OpenAPI specifications with Orval","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_1.1.0_1787403196531_0.23637097799427975","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@alpaca-open-api/core","version":"1.2.0","keywords":["alpaca","alpaca-markets","trading","api","typescript","openapi"],"author":{"name":"Yago"},"license":"MIT","_id":"@alpaca-open-api/core@1.2.0","maintainers":[{"name":"yagop","email":"yagoperezs@gmail.com"}],"homepage":"https://github.com/yagop/alpaca-open-api#readme","bugs":{"url":"https://github.com/yagop/alpaca-open-api/issues"},"dist":{"shasum":"a395e7ca63b8e2ee988dd9f7462b59a79e699696","tarball":"https://registry.npmjs.org/@alpaca-open-api/core/-/core-1.2.0.tgz","fileCount":1067,"integrity":"sha512-LM47hw+5o3jMLzK00YrTVkU6Gt/kin2qA/fstUGfDq+XufQEJN3txdnKMRrJaVS/pq8+rw0PziDBjAzUWxmIKg==","signatures":[{"sig":"MEQCIC0RPcGXvidbqZwFGLmQgTMQbGQkYHaLa3kCkhhGK4BhAiBuOzpM6xk8xfmmV6I+gD7MCbTMEgzaOP5W7yoTpU4Qmw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alpaca-open-api%2fcore@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1609991},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"}},"gitHead":"728c5875cf453428dff67da1a2da9fcf24eab2c5","scripts":{"build":"bun build src/index.ts --outfile dist/index.js --target node --format esm && tsc -p tsconfig.build.json && bun scripts/fix-dts-extensions.ts && tsc -p tsconfig.dts-check.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"yagop","email":"yagoperezs@gmail.com"},"repository":{"url":"git+https://github.com/yagop/alpaca-open-api.git","type":"git","directory":"packages/core"},"_npmVersion":"11.17.0","description":"Typed fetch clients and types for the Alpaca Markets API, generated from the official OpenAPI specifications with Orval","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_1.2.0_1787418153145_0.1467544309045663","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@alpaca-open-api/core","version":"1.2.1","keywords":["alpaca","alpaca-markets","trading","api","typescript","openapi"],"author":{"name":"Yago"},"license":"MIT","_id":"@alpaca-open-api/core@1.2.1","maintainers":[{"name":"yagop","email":"yagoperezs@gmail.com"}],"homepage":"https://github.com/yagop/alpaca-open-api#readme","bugs":{"url":"https://github.com/yagop/alpaca-open-api/issues"},"dist":{"shasum":"47968e5452024d9d9d8732951e1038924329126b","tarball":"https://registry.npmjs.org/@alpaca-open-api/core/-/core-1.2.1.tgz","fileCount":1067,"integrity":"sha512-ZyBqGWydAJyzV/XxSzQ26VNpw/qvQ+gs+oku+sODPQFJQQTdxjaVQ0XrsDFs3ixGb7HFMefY4zPmXxvDKGZmBA==","signatures":[{"sig":"MEUCIQDNxkQ9hrGzFMVT9UrKVa5xyONN2p4DpvK05k8a62lnHgIgamF3qONbzJ0sOvPpz79ZRUhx+FoBK/29HeVZWU+ep5g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alpaca-open-api%2fcore@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1601545},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"}},"gitHead":"88e7f927ea48c5c5b2bd70f2ac0d24a070a7ed37","scripts":{"build":"bun build src/index.ts --outfile dist/index.js --target node --format esm && tsc -p tsconfig.build.json && bun scripts/fix-dts-extensions.ts && tsc -p tsconfig.dts-check.json","prepublishOnly":"npm run build"},"_npmUser":{"name":"yagop","email":"yagoperezs@gmail.com"},"repository":{"url":"git+https://github.com/yagop/alpaca-open-api.git","type":"git","directory":"packages/core"},"_npmVersion":"11.17.0","description":"Typed fetch clients and types for the Alpaca Markets API, generated from the official OpenAPI specifications with Orval","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/core_1.2.1_1787436468979_0.1503237592136093","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@alpaca-open-api/core","version":"1.2.2","description":"Typed fetch clients and types for the Alpaca Markets API, generated from the official OpenAPI specifications with Orval","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"source":"./src/index.ts","bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"build":"bun build src/index.ts --outfile dist/index.js --target node --format esm && tsc -p tsconfig.build.json && bun scripts/fix-dts-extensions.ts && tsc -p tsconfig.dts-check.json","prepublishOnly":"npm run build"},"keywords":["alpaca","alpaca-markets","trading","api","typescript","openapi"],"author":{"name":"Yago"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/yagop/alpaca-open-api.git","directory":"packages/core"},"homepage":"https://github.com/yagop/alpaca-open-api#readme","bugs":{"url":"https://github.com/yagop/alpaca-open-api/issues"},"publishConfig":{"access":"public"},"engines":{"node":">=18.0.0"},"gitHead":"e77592074afacdeb0b2be3c48351215973c3cea6","_id":"@alpaca-open-api/core@1.2.2","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-X03I9YvHUtLwV3k73C9f1jLRNqzwKf9ZfXO40H/1/vGuPkspDYUkUNjqryyIN/Dc7yZYx61rXy7KzaEnK4S9QA==","shasum":"23fa61592454da9b61cb97ce8677ce84278f414f","tarball":"https://registry.npmjs.org/@alpaca-open-api/core/-/core-1.2.2.tgz","fileCount":1067,"unpackedSize":1613401,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alpaca-open-api%2fcore@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDswUdHi8phNro2+c6Dj8Mm5BHvudLzGIbJT+8IKanWEwIhAOlVhZg2UT7o9/JGxCgc9E90hYrvmLFVhd6qI5yx5Whb"}]},"_npmUser":{"name":"yagop","email":"yagoperezs@gmail.com"},"directories":{},"maintainers":[{"name":"yagop","email":"yagoperezs@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_1.2.2_1787492283917_0.5890852296955118"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-20T10:35:30.332Z","modified":"2026-08-23T13:38:04.431Z","0.1.0-rc.0":"2026-06-20T10:35:30.714Z","1.0.0":"2026-06-20T14:32:00.384Z","1.0.1":"2026-06-20T15:13:49.079Z","1.0.2":"2026-07-03T20:57:58.864Z","1.1.0":"2026-08-22T12:53:16.691Z","1.2.0":"2026-08-22T17:02:33.366Z","1.2.1":"2026-08-22T22:07:49.120Z","1.2.2":"2026-08-23T13:38:04.096Z"},"bugs":{"url":"https://github.com/yagop/alpaca-open-api/issues"},"author":{"name":"Yago"},"license":"MIT","homepage":"https://github.com/yagop/alpaca-open-api#readme","keywords":["alpaca","alpaca-markets","trading","api","typescript","openapi"],"repository":{"type":"git","url":"git+https://github.com/yagop/alpaca-open-api.git","directory":"packages/core"},"description":"Typed fetch clients and types for the Alpaca Markets API, generated from the official OpenAPI specifications with Orval","maintainers":[{"name":"yagop","email":"yagoperezs@gmail.com"}],"readme":"<h1 align=\"center\">🦙 @alpaca-open-api/core</h1>\n\n<p align=\"center\">Typed TypeScript fetch clients + model types for the <a href=\"https://alpaca.markets/\">Alpaca Markets</a> API (Trading, Market Data, Broker, AuthX), generated from the official OpenAPI specs with <a href=\"https://orval.dev/\">Orval</a>.</p>\n\n<p align=\"center\">\n<a href=\"https://www.npmjs.com/package/@alpaca-open-api/core\"><img src=\"https://img.shields.io/npm/v/@alpaca-open-api/core?logo=npm&color=CB3837\" alt=\"npm\"></a>\n<a href=\"https://github.com/yagop/alpaca-open-api/blob/main/LICENSE\"><img src=\"https://img.shields.io/badge/license-MIT-blue\" alt=\"license: MIT\"></a>\n</p>\n\n- ⚡ Fully typed request/response types straight from the specs.\n- 🛰️ One namespace per API: `tradingApi`, `dataApi`, `brokerApi`, `authxApi`.\n- 🔒 Every call routes through one small shared mutator that resolves host + auth per API.\n\n## Install\n\n```bash\nnpm install @alpaca-open-api/core\n```\n\n## Usage\n\nCredentials and environment come from env vars (`ALPACA_API_KEY`, `ALPACA_API_SECRET`, `ALPACA_ENV`; **live by default**), read by the shared mutator.\n\n```ts\nimport { tradingApi, dataApi, tradingModel } from '@alpaca-open-api/core';\n\n// Each call returns { data, status, headers }; `data` is typed from the spec.\nconst { data: account } = await tradingApi.getAccount();\nconsole.log(account?.cash);\n\nconst { data: quote } = await dataApi.stockLatestQuoteSingle('AAPL', { feed: 'iex' });\nconsole.log(quote?.quote?.ap);\n\n// Place an order (uses the live account unless ALPACA_ENV=paper):\nawait tradingApi.postOrder({ symbol: 'AAPL', side: 'buy', qty: '1', type: 'market', time_in_force: 'day' });\n\n// Schema types are exported per API as `*Model` namespaces:\ntype Account = tradingModel.Account;\n```\n\nClient namespaces: `tradingApi`, `dataApi`, `brokerApi`, `authxApi`; matching model (schema) types: `tradingModel`, `dataModel`, `brokerModel`, `authxModel`. `makeMutator` and `API_ROUTING` are also exported if you need to customize routing.\n\n## Configuration\n\n| Variable | Required | Default | Purpose |\n| --- | :---: | --- | --- |\n| `ALPACA_API_KEY` | ✅ | — | API key (live and paper keys are different) |\n| `ALPACA_API_SECRET` | ✅ | — | API secret |\n| `ALPACA_ENV` | | `live` | `paper` or `live`. Selects paper/live (trading) and sandbox/production (broker, authx). |\n\n> ⚠️ Defaults to **`live`** (real money/orders). Set `ALPACA_ENV=paper` (with your paper keys) to test safely.\n\n## Documentation\n\nFull docs, the MCP server ([`@alpaca-open-api/mcp`](https://www.npmjs.com/package/@alpaca-open-api/mcp)), and source:\n**https://github.com/yagop/alpaca-open-api**\n\n## Disclaimer\n\nUnofficial and **not affiliated with, endorsed by, or sponsored by Alpaca**. Provided \"as is\", without warranty of any kind. Nothing here is financial, investment, or trading advice. Trading involves substantial risk of loss — always test with paper trading (`ALPACA_ENV=paper`) first.\n\n## License\n\n[MIT](https://github.com/yagop/alpaca-open-api/blob/main/LICENSE)\n","readmeFilename":"README.md"}