@pionex/pionex-ai-kit 0.2.38 → 0.2.39

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.
package/dist/index.js CHANGED
@@ -2531,19 +2531,19 @@ Groups:
2531
2531
  Examples:
2532
2532
  pionex-trade-cli market depth BTC_USDT --limit 5
2533
2533
  pionex-trade-cli market tickers --symbol BTC_USDT
2534
- pionex-trade-cli market book-tickers --symbol BTC_USDT
2534
+ pionex-trade-cli market book_tickers --symbol BTC_USDT
2535
2535
  pionex-trade-cli market symbols --symbols BTC_USDT
2536
2536
  pionex-trade-cli account balance
2537
2537
  pionex-trade-cli orders new --symbol BTC_USDT --side BUY --type MARKET --amount 10
2538
2538
  pionex-trade-cli orders cancel --symbol BTC_USDT --order-id 123
2539
- pionex-trade-cli orders fills-by-order-id --symbol BTC_USDT --order-id 123
2539
+ pionex-trade-cli orders fills_by_order_id --symbol BTC_USDT --order-id 123
2540
2540
  pionex-trade-cli bot futures_grid get --bu-order-id <id>
2541
2541
  pionex-trade-cli bot futures_grid create --base BTC --quote USDT --bu-order-data-json '{"top":"110000","bottom":"90000","row":100,"grid_type":"arithmetic","trend":"long","leverage":5,"quoteInvestment":"100"}'
2542
2542
  pionex-trade-cli earn dual symbols --base BTC
2543
- pionex-trade-cli earn dual open-products --base BTC --quote USDXO --type DUAL_BASE --currency USDT
2543
+ pionex-trade-cli earn dual open_products --base BTC --quote USDXO --type DUAL_BASE --currency USDT
2544
2544
  pionex-trade-cli earn dual prices --base BTC --quote USDXO --product-ids BTC-USDXO-260402-68000-P-USDT
2545
2545
  pionex-trade-cli earn dual invest --base BTC --product-id BTC-USDXO-260402-68000-P-USDT --currency-amount 100 --profit 0.0039
2546
- pionex-trade-cli earn dual revoke-invest --base BTC --client-dual-id my-order-001 --dry-run
2546
+ pionex-trade-cli earn dual revoke_invest --base BTC --client-dual-id my-order-001 --dry-run
2547
2547
  pionex-trade-cli earn dual collect --base BTC --client-dual-id my-order-001 --dry-run
2548
2548
 
2549
2549
  Global flags:
@@ -2637,7 +2637,7 @@ async function runPionexCommand(argv) {
2637
2637
  process.stdout.write(JSON.stringify(out.data, null, 2) + "\n");
2638
2638
  return;
2639
2639
  }
2640
- if (command === "book-tickers" || command === "bookTickers") {
2640
+ if (command === "book_tickers" || command === "bookTickers") {
2641
2641
  const symbol = typeof flags.symbol === "string" ? flags.symbol : void 0;
2642
2642
  const type = typeof flags.type === "string" ? flags.type : void 0;
2643
2643
  const out = await runTool("pionex_market_get_book_tickers", { symbol, type });
@@ -2716,7 +2716,7 @@ async function runPionexCommand(argv) {
2716
2716
  process.stdout.write(JSON.stringify(out.data, null, 2) + "\n");
2717
2717
  return;
2718
2718
  }
2719
- if (command === "fills-by-order-id" || command === "fillsByOrderId") {
2719
+ if (command === "fills_by_order_id" || command === "fillsByOrderId") {
2720
2720
  const symbol = typeof flags.symbol === "string" ? flags.symbol : void 0;
2721
2721
  const orderId = flags["order-id"] != null ? Number(flags["order-id"]) : void 0;
2722
2722
  if (!symbol || orderId == null) throw new Error("Missing required flags: --symbol --order-id");