A CLI tool for accessing Massive(Massive) financial data (Stocks, Crypto, Forex, Options, Indices) using Bun.
Run commands directly without installing:
npx -y massive-cli <command> [options]-
Install Dependencies:
bun install
-
Configure API Key:
export MASSIVE_API_KEY=your_api_key_hereor create a .env file in the root directory:
MASSIVE_API_KEY=your_api_key_here -
Build:
bun run build
This generates the bundled CLI in
dist/cli.js. Run commands using the built CLI:
bun dist/cli.js <command> [options]Stocks:
npx -y massive-cli stocks-aggs --ticker AAPL --from 2023-01-01 --to 2023-01-31Crypto:
npx -y massive-cli crypto-snapshot --ticker X:BTCUSDMarket Status:
npx -y massive-cli market-statusUse --help to see all available commands:
npx -y massive-cli --help