@sigrex/client 2.1.3 → 2.1.5

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/README.md CHANGED
@@ -17,7 +17,17 @@ A fully-typed, isomorphic, zero-dependency TypeScript API client for the **Sigre
17
17
  ## Installation
18
18
 
19
19
  ```bash
20
+ # npm
20
21
  npm install @sigrex/client
22
+
23
+ # Deno
24
+ deno add @sigrex/client
25
+ ```
26
+
27
+ When using Deno, import directly from the JSR scope:
28
+
29
+ ```typescript
30
+ import { SigrexClient } from "jsr:@sigrex/client";
21
31
  ```
22
32
 
23
33
  ---
package/dist/index.d.mts CHANGED
@@ -8009,10 +8009,15 @@ interface components {
8009
8009
  */
8010
8010
  api_id: number;
8011
8011
  /**
8012
- * @description The market url
8012
+ * @description Set to true to specify a market slug dynamically within the signal payload.
8013
+ * @example true
8014
+ */
8015
+ slug_from_signal: boolean;
8016
+ /**
8017
+ * @description The market url (required if slug_from_signal is false)
8013
8018
  * @example https://polymarket.com/event/elon-musk-of-tweets-april-21-april-28/elon-musk-of-tweets-april-21-april-28-180-199#xpkQ2pz
8014
8019
  */
8015
- url: string;
8020
+ url?: string;
8016
8021
  /**
8017
8022
  * @description Set if amount is coming from signal
8018
8023
  * @example false
@@ -8051,10 +8056,15 @@ interface components {
8051
8056
  */
8052
8057
  api_id: number;
8053
8058
  /**
8054
- * @description The market url
8059
+ * @description Set to true to specify a market slug dynamically within the signal payload.
8060
+ * @example true
8061
+ */
8062
+ slug_from_signal: boolean;
8063
+ /**
8064
+ * @description The market url (required if slug_from_signal is false)
8055
8065
  * @example https://polymarket.com/event/elon-musk-of-tweets-april-21-april-28/elon-musk-of-tweets-april-21-april-28-180-199#xpkQ2pz
8056
8066
  */
8057
- url: string;
8067
+ url?: string;
8058
8068
  /**
8059
8069
  * @description Set if amount is coming from signal
8060
8070
  * @example false
@@ -8185,15 +8195,20 @@ interface components {
8185
8195
  */
8186
8196
  folder_id?: number;
8187
8197
  /**
8188
- * @description The id of the bot hook where signal will be sent
8198
+ * @description Set true to enable signal generation
8199
+ * @example true
8200
+ */
8201
+ send_signal?: boolean;
8202
+ /**
8203
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8189
8204
  * @example 12
8190
8205
  */
8191
- webhook_id: number;
8206
+ webhook_id?: number;
8192
8207
  /**
8193
- * @description The signal symbol or symbols of the strategy separated by comma
8208
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8194
8209
  * @example BTCUSDT,ETHUSDT
8195
8210
  */
8196
- symbol: string;
8211
+ symbol?: string;
8197
8212
  /**
8198
8213
  * @description The JavaScript code of the strategy
8199
8214
  * @example (()=>{ $.Strategy.action($.Action.LONG); })();
@@ -8227,15 +8242,20 @@ interface components {
8227
8242
  */
8228
8243
  folder_id?: number;
8229
8244
  /**
8230
- * @description The id of the bot hook where signal will be sent
8245
+ * @description Set true to enable signal generation
8246
+ * @example true
8247
+ */
8248
+ send_signal?: boolean;
8249
+ /**
8250
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8231
8251
  * @example 12
8232
8252
  */
8233
- webhook_id: number;
8253
+ webhook_id?: number;
8234
8254
  /**
8235
- * @description The signal symbol or symbols of the strategy separated by comma
8255
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8236
8256
  * @example BTCUSDT,ETHUSDT
8237
8257
  */
8238
- symbol: string;
8258
+ symbol?: string;
8239
8259
  /**
8240
8260
  * @description The JavaScript code of the strategy
8241
8261
  * @example (()=>{ $.Strategy.action($.Action.LONG); })();
@@ -8463,21 +8483,26 @@ interface components {
8463
8483
  * @example 12
8464
8484
  */
8465
8485
  folder_id?: number;
8466
- /**
8467
- * @description The id of the bot hook where signal will be sent
8468
- * @example 12
8469
- */
8470
- webhook_id: number;
8471
8486
  /**
8472
8487
  * @description The id of the data hook witch will be used to get data
8473
8488
  * @example 13
8474
8489
  */
8475
8490
  data_webhook_id: number;
8476
8491
  /**
8477
- * @description The signal symbol or symbols of the strategy separated by comma
8492
+ * @description Set true to enable signal generation
8493
+ * @example true
8494
+ */
8495
+ send_signal?: boolean;
8496
+ /**
8497
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8498
+ * @example 12
8499
+ */
8500
+ webhook_id?: number;
8501
+ /**
8502
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8478
8503
  * @example BTCUSDT,ETHUSDT
8479
8504
  */
8480
- symbol: string;
8505
+ symbol?: string;
8481
8506
  /**
8482
8507
  * @description Set how often the reaction will check for new signals. eg. 10 means 10 in 1 second
8483
8508
  * @example 10
@@ -8515,21 +8540,26 @@ interface components {
8515
8540
  * @example 12
8516
8541
  */
8517
8542
  folder_id?: number;
8518
- /**
8519
- * @description The id of the bot hook where signal will be sent
8520
- * @example 12
8521
- */
8522
- webhook_id: number;
8523
8543
  /**
8524
8544
  * @description The id of the data hook witch will be used to get data
8525
8545
  * @example 13
8526
8546
  */
8527
8547
  data_webhook_id: number;
8528
8548
  /**
8529
- * @description The signal symbol or symbols of the strategy separated by comma
8549
+ * @description Set true to enable signal generation
8550
+ * @example true
8551
+ */
8552
+ send_signal?: boolean;
8553
+ /**
8554
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8555
+ * @example 12
8556
+ */
8557
+ webhook_id?: number;
8558
+ /**
8559
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8530
8560
  * @example BTCUSDT,ETHUSDT
8531
8561
  */
8532
- symbol: string;
8562
+ symbol?: string;
8533
8563
  /**
8534
8564
  * @description Set how often the reaction will check for new signals. eg. 10 means 10 in 1 second
8535
8565
  * @example 10
package/dist/index.d.ts CHANGED
@@ -8009,10 +8009,15 @@ interface components {
8009
8009
  */
8010
8010
  api_id: number;
8011
8011
  /**
8012
- * @description The market url
8012
+ * @description Set to true to specify a market slug dynamically within the signal payload.
8013
+ * @example true
8014
+ */
8015
+ slug_from_signal: boolean;
8016
+ /**
8017
+ * @description The market url (required if slug_from_signal is false)
8013
8018
  * @example https://polymarket.com/event/elon-musk-of-tweets-april-21-april-28/elon-musk-of-tweets-april-21-april-28-180-199#xpkQ2pz
8014
8019
  */
8015
- url: string;
8020
+ url?: string;
8016
8021
  /**
8017
8022
  * @description Set if amount is coming from signal
8018
8023
  * @example false
@@ -8051,10 +8056,15 @@ interface components {
8051
8056
  */
8052
8057
  api_id: number;
8053
8058
  /**
8054
- * @description The market url
8059
+ * @description Set to true to specify a market slug dynamically within the signal payload.
8060
+ * @example true
8061
+ */
8062
+ slug_from_signal: boolean;
8063
+ /**
8064
+ * @description The market url (required if slug_from_signal is false)
8055
8065
  * @example https://polymarket.com/event/elon-musk-of-tweets-april-21-april-28/elon-musk-of-tweets-april-21-april-28-180-199#xpkQ2pz
8056
8066
  */
8057
- url: string;
8067
+ url?: string;
8058
8068
  /**
8059
8069
  * @description Set if amount is coming from signal
8060
8070
  * @example false
@@ -8185,15 +8195,20 @@ interface components {
8185
8195
  */
8186
8196
  folder_id?: number;
8187
8197
  /**
8188
- * @description The id of the bot hook where signal will be sent
8198
+ * @description Set true to enable signal generation
8199
+ * @example true
8200
+ */
8201
+ send_signal?: boolean;
8202
+ /**
8203
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8189
8204
  * @example 12
8190
8205
  */
8191
- webhook_id: number;
8206
+ webhook_id?: number;
8192
8207
  /**
8193
- * @description The signal symbol or symbols of the strategy separated by comma
8208
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8194
8209
  * @example BTCUSDT,ETHUSDT
8195
8210
  */
8196
- symbol: string;
8211
+ symbol?: string;
8197
8212
  /**
8198
8213
  * @description The JavaScript code of the strategy
8199
8214
  * @example (()=>{ $.Strategy.action($.Action.LONG); })();
@@ -8227,15 +8242,20 @@ interface components {
8227
8242
  */
8228
8243
  folder_id?: number;
8229
8244
  /**
8230
- * @description The id of the bot hook where signal will be sent
8245
+ * @description Set true to enable signal generation
8246
+ * @example true
8247
+ */
8248
+ send_signal?: boolean;
8249
+ /**
8250
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8231
8251
  * @example 12
8232
8252
  */
8233
- webhook_id: number;
8253
+ webhook_id?: number;
8234
8254
  /**
8235
- * @description The signal symbol or symbols of the strategy separated by comma
8255
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8236
8256
  * @example BTCUSDT,ETHUSDT
8237
8257
  */
8238
- symbol: string;
8258
+ symbol?: string;
8239
8259
  /**
8240
8260
  * @description The JavaScript code of the strategy
8241
8261
  * @example (()=>{ $.Strategy.action($.Action.LONG); })();
@@ -8463,21 +8483,26 @@ interface components {
8463
8483
  * @example 12
8464
8484
  */
8465
8485
  folder_id?: number;
8466
- /**
8467
- * @description The id of the bot hook where signal will be sent
8468
- * @example 12
8469
- */
8470
- webhook_id: number;
8471
8486
  /**
8472
8487
  * @description The id of the data hook witch will be used to get data
8473
8488
  * @example 13
8474
8489
  */
8475
8490
  data_webhook_id: number;
8476
8491
  /**
8477
- * @description The signal symbol or symbols of the strategy separated by comma
8492
+ * @description Set true to enable signal generation
8493
+ * @example true
8494
+ */
8495
+ send_signal?: boolean;
8496
+ /**
8497
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8498
+ * @example 12
8499
+ */
8500
+ webhook_id?: number;
8501
+ /**
8502
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8478
8503
  * @example BTCUSDT,ETHUSDT
8479
8504
  */
8480
- symbol: string;
8505
+ symbol?: string;
8481
8506
  /**
8482
8507
  * @description Set how often the reaction will check for new signals. eg. 10 means 10 in 1 second
8483
8508
  * @example 10
@@ -8515,21 +8540,26 @@ interface components {
8515
8540
  * @example 12
8516
8541
  */
8517
8542
  folder_id?: number;
8518
- /**
8519
- * @description The id of the bot hook where signal will be sent
8520
- * @example 12
8521
- */
8522
- webhook_id: number;
8523
8543
  /**
8524
8544
  * @description The id of the data hook witch will be used to get data
8525
8545
  * @example 13
8526
8546
  */
8527
8547
  data_webhook_id: number;
8528
8548
  /**
8529
- * @description The signal symbol or symbols of the strategy separated by comma
8549
+ * @description Set true to enable signal generation
8550
+ * @example true
8551
+ */
8552
+ send_signal?: boolean;
8553
+ /**
8554
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8555
+ * @example 12
8556
+ */
8557
+ webhook_id?: number;
8558
+ /**
8559
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8530
8560
  * @example BTCUSDT,ETHUSDT
8531
8561
  */
8532
- symbol: string;
8562
+ symbol?: string;
8533
8563
  /**
8534
8564
  * @description Set how often the reaction will check for new signals. eg. 10 means 10 in 1 second
8535
8565
  * @example 10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigrex/client",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "TypeScript API Client for Sigrex with automatic HMAC-SHA256 request signing and support for ML-DSA44",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",