massive-cli 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +5 -5
  2. package/dist/cli.js +15 -30
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -9,7 +9,7 @@ A CLI tool for accessing [Massive(Polygon)](https://massive.com) financial data
9
9
  Run commands directly without installing:
10
10
 
11
11
  ```bash
12
- npx --yes massive <command> [options]
12
+ npx -y massive-cli <command> [options]
13
13
  ```
14
14
 
15
15
  ### Local Installation
@@ -43,20 +43,20 @@ bun dist/cli.js <command> [options]
43
43
 
44
44
  **Stocks:**
45
45
  ```bash
46
- npx --yes massive stocks-aggs --ticker AAPL --from 2023-01-01 --to 2023-01-31
46
+ npx -y massive-cli stocks-aggs --ticker AAPL --from 2023-01-01 --to 2023-01-31
47
47
  ```
48
48
 
49
49
  **Crypto:**
50
50
  ```bash
51
- npx --yes massive crypto-snapshot --ticker X:BTCUSD
51
+ npx -y massive-cli crypto-snapshot --ticker X:BTCUSD
52
52
  ```
53
53
 
54
54
  **Market Status:**
55
55
  ```bash
56
- npx --yes massive market-status
56
+ npx -y massive-cli market-status
57
57
  ```
58
58
 
59
59
  Use `--help` to see all available commands:
60
60
  ```bash
61
- npx --yes massive --help
61
+ npx -y massive-cli --help
62
62
  ```
package/dist/cli.js CHANGED
@@ -21362,23 +21362,19 @@ function createStocksCommand() {
21362
21362
  };
21363
21363
  await output(api.getStocksMACD(params));
21364
21364
  });
21365
- return stocks;
21366
- }
21367
- function createLastTradeCommand() {
21368
- return new Command("last-trade").description("Last stock trade").requiredOption("-t, --ticker <ticker>", "Stock ticker").action(async (options) => {
21365
+ stocks.command("last-trade").description("Last stock trade").requiredOption("-t, --ticker <ticker>", "Stock ticker").action(async (options) => {
21369
21366
  const params = {
21370
21367
  stocksTicker: options.ticker
21371
21368
  };
21372
21369
  await output(api.getLastStocksTrade(params));
21373
21370
  });
21374
- }
21375
- function createLastQuoteCommand() {
21376
- return new Command("last-quote").description("Last stock quote").requiredOption("-t, --ticker <ticker>", "Stock ticker").action(async (options) => {
21371
+ stocks.command("last-quote").description("Last stock quote").requiredOption("-t, --ticker <ticker>", "Stock ticker").action(async (options) => {
21377
21372
  const params = {
21378
21373
  stocksTicker: options.ticker
21379
21374
  };
21380
21375
  await output(api.getLastStocksQuote(params));
21381
21376
  });
21377
+ return stocks;
21382
21378
  }
21383
21379
 
21384
21380
  // src/commands/crypto.ts
@@ -21517,16 +21513,14 @@ function createCryptoCommand() {
21517
21513
  };
21518
21514
  await output(api.getCryptoMACD(params));
21519
21515
  });
21520
- return crypto2;
21521
- }
21522
- function createLastCryptoTradeCommand() {
21523
- return new Command("last-crypto-trade").description("Last crypto trade").requiredOption("-f, --from <from>", "From currency (e.g., BTC)").requiredOption("-t, --to <to>", "To currency (e.g., USD)").action(async (options) => {
21516
+ crypto2.command("last-trade").description("Last crypto trade").requiredOption("-f, --from <from>", "From currency (e.g., BTC)").requiredOption("-t, --to <to>", "To currency (e.g., USD)").action(async (options) => {
21524
21517
  const params = {
21525
21518
  from: options.from,
21526
21519
  to: options.to
21527
21520
  };
21528
21521
  await output(api.getLastCryptoTrade(params));
21529
21522
  });
21523
+ return crypto2;
21530
21524
  }
21531
21525
 
21532
21526
  // src/commands/forex.ts
@@ -21653,6 +21647,13 @@ function createForexCommand() {
21653
21647
  };
21654
21648
  await output(api.getForexMACD(params));
21655
21649
  });
21650
+ forex.command("last-quote").description("Last forex quote").requiredOption("-f, --from <from>", "From currency (e.g., EUR)").requiredOption("-t, --to <to>", "To currency (e.g., USD)").action(async (options) => {
21651
+ const params = {
21652
+ from: options.from,
21653
+ to: options.to
21654
+ };
21655
+ await output(api.getLastCurrencyQuote(params));
21656
+ });
21656
21657
  return forex;
21657
21658
  }
21658
21659
  function createCurrencyConversionCommand() {
@@ -21666,15 +21667,6 @@ function createCurrencyConversionCommand() {
21666
21667
  await output(api.getCurrencyConversion(params));
21667
21668
  });
21668
21669
  }
21669
- function createLastForexQuoteCommand() {
21670
- return new Command("last-forex-quote").description("Last forex quote").requiredOption("-f, --from <from>", "From currency (e.g., EUR)").requiredOption("-t, --to <to>", "To currency (e.g., USD)").action(async (options) => {
21671
- const params = {
21672
- from: options.from,
21673
- to: options.to
21674
- };
21675
- await output(api.getLastCurrencyQuote(params));
21676
- });
21677
- }
21678
21670
 
21679
21671
  // src/commands/indices.ts
21680
21672
  function createIndicesCommand() {
@@ -21907,15 +21899,13 @@ function createOptionsCommand() {
21907
21899
  };
21908
21900
  await output(api.getOptionsMACD(params));
21909
21901
  });
21910
- return options;
21911
- }
21912
- function createLastOptionsTradeCommand() {
21913
- return new Command("last-options-trade").description("Last options trade").requiredOption("-t, --ticker <ticker>", "Options ticker").action(async (opts) => {
21902
+ options.command("last-trade").description("Last options trade").requiredOption("-t, --ticker <ticker>", "Options ticker").action(async (opts) => {
21914
21903
  const params = {
21915
21904
  optionsTicker: opts.ticker
21916
21905
  };
21917
21906
  await output(api.getLastOptionsTrade(params));
21918
21907
  });
21908
+ return options;
21919
21909
  }
21920
21910
 
21921
21911
  // src/commands/reference.ts
@@ -22087,18 +22077,13 @@ function createNewsCommand() {
22087
22077
 
22088
22078
  // src/cli.ts
22089
22079
  var program2 = new Command;
22090
- program2.name("massive").description("Massive Market Data CLI").version("0.0.3");
22080
+ program2.name("massive").description("Massive Market Data CLI").version("0.0.4");
22091
22081
  program2.addCommand(createStocksCommand());
22092
- program2.addCommand(createLastTradeCommand());
22093
- program2.addCommand(createLastQuoteCommand());
22094
22082
  program2.addCommand(createCryptoCommand());
22095
- program2.addCommand(createLastCryptoTradeCommand());
22096
22083
  program2.addCommand(createForexCommand());
22097
22084
  program2.addCommand(createCurrencyConversionCommand());
22098
- program2.addCommand(createLastForexQuoteCommand());
22099
22085
  program2.addCommand(createIndicesCommand());
22100
22086
  program2.addCommand(createOptionsCommand());
22101
- program2.addCommand(createLastOptionsTradeCommand());
22102
22087
  program2.addCommand(createTickersCommand());
22103
22088
  program2.addCommand(createTickerDetailsCommand());
22104
22089
  program2.addCommand(createTickerTypesCommand());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "massive-cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Polygon/Massive Market Data CLI",
5
5
  "module": "index.ts",
6
6
  "type": "module",