@sigrex/client 2.1.4 → 2.1.6

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
@@ -3965,7 +3965,7 @@ interface paths {
3965
3965
  patch?: never;
3966
3966
  trace?: never;
3967
3967
  };
3968
- "/api/v2/bot/signal/prediction/market/{slug}": {
3968
+ "/api/v2/bot/signal/prediction/market/{exchange}/{slug}": {
3969
3969
  parameters: {
3970
3970
  query?: never;
3971
3971
  header?: never;
@@ -3978,6 +3978,8 @@ interface paths {
3978
3978
  query?: never;
3979
3979
  header?: never;
3980
3980
  path: {
3981
+ /** @description Prediction market exchange */
3982
+ exchange: string;
3981
3983
  slug: string;
3982
3984
  };
3983
3985
  cookie?: never;
@@ -8195,15 +8197,20 @@ interface components {
8195
8197
  */
8196
8198
  folder_id?: number;
8197
8199
  /**
8198
- * @description The id of the bot hook where signal will be sent
8200
+ * @description Set true to enable signal generation
8201
+ * @example true
8202
+ */
8203
+ send_signal?: boolean;
8204
+ /**
8205
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8199
8206
  * @example 12
8200
8207
  */
8201
- webhook_id: number;
8208
+ webhook_id?: number;
8202
8209
  /**
8203
- * @description The signal symbol or symbols of the strategy separated by comma
8210
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8204
8211
  * @example BTCUSDT,ETHUSDT
8205
8212
  */
8206
- symbol: string;
8213
+ symbol?: string;
8207
8214
  /**
8208
8215
  * @description The JavaScript code of the strategy
8209
8216
  * @example (()=>{ $.Strategy.action($.Action.LONG); })();
@@ -8237,15 +8244,20 @@ interface components {
8237
8244
  */
8238
8245
  folder_id?: number;
8239
8246
  /**
8240
- * @description The id of the bot hook where signal will be sent
8247
+ * @description Set true to enable signal generation
8248
+ * @example true
8249
+ */
8250
+ send_signal?: boolean;
8251
+ /**
8252
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8241
8253
  * @example 12
8242
8254
  */
8243
- webhook_id: number;
8255
+ webhook_id?: number;
8244
8256
  /**
8245
- * @description The signal symbol or symbols of the strategy separated by comma
8257
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8246
8258
  * @example BTCUSDT,ETHUSDT
8247
8259
  */
8248
- symbol: string;
8260
+ symbol?: string;
8249
8261
  /**
8250
8262
  * @description The JavaScript code of the strategy
8251
8263
  * @example (()=>{ $.Strategy.action($.Action.LONG); })();
@@ -8473,21 +8485,26 @@ interface components {
8473
8485
  * @example 12
8474
8486
  */
8475
8487
  folder_id?: number;
8476
- /**
8477
- * @description The id of the bot hook where signal will be sent
8478
- * @example 12
8479
- */
8480
- webhook_id: number;
8481
8488
  /**
8482
8489
  * @description The id of the data hook witch will be used to get data
8483
8490
  * @example 13
8484
8491
  */
8485
8492
  data_webhook_id: number;
8486
8493
  /**
8487
- * @description The signal symbol or symbols of the strategy separated by comma
8494
+ * @description Set true to enable signal generation
8495
+ * @example true
8496
+ */
8497
+ send_signal?: boolean;
8498
+ /**
8499
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8500
+ * @example 12
8501
+ */
8502
+ webhook_id?: number;
8503
+ /**
8504
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8488
8505
  * @example BTCUSDT,ETHUSDT
8489
8506
  */
8490
- symbol: string;
8507
+ symbol?: string;
8491
8508
  /**
8492
8509
  * @description Set how often the reaction will check for new signals. eg. 10 means 10 in 1 second
8493
8510
  * @example 10
@@ -8525,21 +8542,26 @@ interface components {
8525
8542
  * @example 12
8526
8543
  */
8527
8544
  folder_id?: number;
8528
- /**
8529
- * @description The id of the bot hook where signal will be sent
8530
- * @example 12
8531
- */
8532
- webhook_id: number;
8533
8545
  /**
8534
8546
  * @description The id of the data hook witch will be used to get data
8535
8547
  * @example 13
8536
8548
  */
8537
8549
  data_webhook_id: number;
8538
8550
  /**
8539
- * @description The signal symbol or symbols of the strategy separated by comma
8551
+ * @description Set true to enable signal generation
8552
+ * @example true
8553
+ */
8554
+ send_signal?: boolean;
8555
+ /**
8556
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8557
+ * @example 12
8558
+ */
8559
+ webhook_id?: number;
8560
+ /**
8561
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8540
8562
  * @example BTCUSDT,ETHUSDT
8541
8563
  */
8542
- symbol: string;
8564
+ symbol?: string;
8543
8565
  /**
8544
8566
  * @description Set how often the reaction will check for new signals. eg. 10 means 10 in 1 second
8545
8567
  * @example 10
@@ -9299,7 +9321,7 @@ declare class PredictionBotsService {
9299
9321
  /**
9300
9322
  * Get prediction market by slug
9301
9323
  */
9302
- getMarket(slug: string | number): Promise<paths['/api/v2/bot/signal/prediction/market/{slug}']['get']['responses']['200']['content']['application/json']>;
9324
+ getMarket(exchange: string, slug: string | number): Promise<paths['/api/v2/bot/signal/prediction/market/{exchange}/{slug}']['get']['responses']['200']['content']['application/json']>;
9303
9325
  /**
9304
9326
  * Get all prediction signal bots
9305
9327
  */
package/dist/index.d.ts CHANGED
@@ -3965,7 +3965,7 @@ interface paths {
3965
3965
  patch?: never;
3966
3966
  trace?: never;
3967
3967
  };
3968
- "/api/v2/bot/signal/prediction/market/{slug}": {
3968
+ "/api/v2/bot/signal/prediction/market/{exchange}/{slug}": {
3969
3969
  parameters: {
3970
3970
  query?: never;
3971
3971
  header?: never;
@@ -3978,6 +3978,8 @@ interface paths {
3978
3978
  query?: never;
3979
3979
  header?: never;
3980
3980
  path: {
3981
+ /** @description Prediction market exchange */
3982
+ exchange: string;
3981
3983
  slug: string;
3982
3984
  };
3983
3985
  cookie?: never;
@@ -8195,15 +8197,20 @@ interface components {
8195
8197
  */
8196
8198
  folder_id?: number;
8197
8199
  /**
8198
- * @description The id of the bot hook where signal will be sent
8200
+ * @description Set true to enable signal generation
8201
+ * @example true
8202
+ */
8203
+ send_signal?: boolean;
8204
+ /**
8205
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8199
8206
  * @example 12
8200
8207
  */
8201
- webhook_id: number;
8208
+ webhook_id?: number;
8202
8209
  /**
8203
- * @description The signal symbol or symbols of the strategy separated by comma
8210
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8204
8211
  * @example BTCUSDT,ETHUSDT
8205
8212
  */
8206
- symbol: string;
8213
+ symbol?: string;
8207
8214
  /**
8208
8215
  * @description The JavaScript code of the strategy
8209
8216
  * @example (()=>{ $.Strategy.action($.Action.LONG); })();
@@ -8237,15 +8244,20 @@ interface components {
8237
8244
  */
8238
8245
  folder_id?: number;
8239
8246
  /**
8240
- * @description The id of the bot hook where signal will be sent
8247
+ * @description Set true to enable signal generation
8248
+ * @example true
8249
+ */
8250
+ send_signal?: boolean;
8251
+ /**
8252
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8241
8253
  * @example 12
8242
8254
  */
8243
- webhook_id: number;
8255
+ webhook_id?: number;
8244
8256
  /**
8245
- * @description The signal symbol or symbols of the strategy separated by comma
8257
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8246
8258
  * @example BTCUSDT,ETHUSDT
8247
8259
  */
8248
- symbol: string;
8260
+ symbol?: string;
8249
8261
  /**
8250
8262
  * @description The JavaScript code of the strategy
8251
8263
  * @example (()=>{ $.Strategy.action($.Action.LONG); })();
@@ -8473,21 +8485,26 @@ interface components {
8473
8485
  * @example 12
8474
8486
  */
8475
8487
  folder_id?: number;
8476
- /**
8477
- * @description The id of the bot hook where signal will be sent
8478
- * @example 12
8479
- */
8480
- webhook_id: number;
8481
8488
  /**
8482
8489
  * @description The id of the data hook witch will be used to get data
8483
8490
  * @example 13
8484
8491
  */
8485
8492
  data_webhook_id: number;
8486
8493
  /**
8487
- * @description The signal symbol or symbols of the strategy separated by comma
8494
+ * @description Set true to enable signal generation
8495
+ * @example true
8496
+ */
8497
+ send_signal?: boolean;
8498
+ /**
8499
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8500
+ * @example 12
8501
+ */
8502
+ webhook_id?: number;
8503
+ /**
8504
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8488
8505
  * @example BTCUSDT,ETHUSDT
8489
8506
  */
8490
- symbol: string;
8507
+ symbol?: string;
8491
8508
  /**
8492
8509
  * @description Set how often the reaction will check for new signals. eg. 10 means 10 in 1 second
8493
8510
  * @example 10
@@ -8525,21 +8542,26 @@ interface components {
8525
8542
  * @example 12
8526
8543
  */
8527
8544
  folder_id?: number;
8528
- /**
8529
- * @description The id of the bot hook where signal will be sent
8530
- * @example 12
8531
- */
8532
- webhook_id: number;
8533
8545
  /**
8534
8546
  * @description The id of the data hook witch will be used to get data
8535
8547
  * @example 13
8536
8548
  */
8537
8549
  data_webhook_id: number;
8538
8550
  /**
8539
- * @description The signal symbol or symbols of the strategy separated by comma
8551
+ * @description Set true to enable signal generation
8552
+ * @example true
8553
+ */
8554
+ send_signal?: boolean;
8555
+ /**
8556
+ * @description The id of the bot hook where signal will be sent (required if send_signal is true)
8557
+ * @example 12
8558
+ */
8559
+ webhook_id?: number;
8560
+ /**
8561
+ * @description The signal symbol or symbols of the strategy separated by comma (required if send_signal is true)
8540
8562
  * @example BTCUSDT,ETHUSDT
8541
8563
  */
8542
- symbol: string;
8564
+ symbol?: string;
8543
8565
  /**
8544
8566
  * @description Set how often the reaction will check for new signals. eg. 10 means 10 in 1 second
8545
8567
  * @example 10
@@ -9299,7 +9321,7 @@ declare class PredictionBotsService {
9299
9321
  /**
9300
9322
  * Get prediction market by slug
9301
9323
  */
9302
- getMarket(slug: string | number): Promise<paths['/api/v2/bot/signal/prediction/market/{slug}']['get']['responses']['200']['content']['application/json']>;
9324
+ getMarket(exchange: string, slug: string | number): Promise<paths['/api/v2/bot/signal/prediction/market/{exchange}/{slug}']['get']['responses']['200']['content']['application/json']>;
9303
9325
  /**
9304
9326
  * Get all prediction signal bots
9305
9327
  */
package/dist/index.js CHANGED
@@ -921,10 +921,10 @@ var PredictionBotsService = class {
921
921
  /**
922
922
  * Get prediction market by slug
923
923
  */
924
- async getMarket(slug) {
924
+ async getMarket(exchange, slug) {
925
925
  return this.client.request({
926
926
  method: "GET",
927
- path: `/api/v2/bot/signal/prediction/market/${slug}`
927
+ path: `/api/v2/bot/signal/prediction/market/${exchange}/${slug}`
928
928
  });
929
929
  }
930
930
  /**
package/dist/index.mjs CHANGED
@@ -869,10 +869,10 @@ var PredictionBotsService = class {
869
869
  /**
870
870
  * Get prediction market by slug
871
871
  */
872
- async getMarket(slug) {
872
+ async getMarket(exchange, slug) {
873
873
  return this.client.request({
874
874
  method: "GET",
875
- path: `/api/v2/bot/signal/prediction/market/${slug}`
875
+ path: `/api/v2/bot/signal/prediction/market/${exchange}/${slug}`
876
876
  });
877
877
  }
878
878
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigrex/client",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
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",